code: func (s *storageLeases) ListLeases() ([]string, error) {
  	ipInfoList := &corev1.EndpointsList{}
  	if err := s.storage.List(apirequest.NewDefaultContext(), s.baseKey, "0", storage.Everything, ipInfoList); err != nil {
  		return nil, err
  	}
  
  	ipList := make([]string, len(ipInfoList.Items))
  	for i, ip := range ipInfoList.Items {
  		ipList[i] = ip.Subsets[0].Addresses[0].IP
  	}
  
  	klog.V(6).Infof("Current master IPs listed in storage are %v", ipList)
  
  	return ipList, nil
  }
docs: // ListLeases retrieves a list of the current master IPs from storage