repo_description: KubeOperator 是一个开源的轻量级 Kubernetes 发行版，专注于帮助企业规划、部署和运营生产级别的 K8s 集群。
repo_topics: ansible containers docker k8s kubeapps kubernetes kubernetes-installer lightweight openstack paas terraform vmware-vsphere
code: package cloud_provider
  
  import (
  	"fmt"
  	"testing"
  )
  
  func Test(t *testing.T) {
  	vars := make(map[string]interface{})
  	vars["provider"] = "FusionCompute"
  	vars["datacenter"] = "site"
  	vars["server"] = ""
  	vars["user"] = ""
  	vars["password"] = ""
  
  	client := NewCloudClient(vars)
  	ips, err := client.GetIpInUsed("")
  	if err != nil {
  		fmt.Println(err)
  		return
  	} else {
  		fmt.Println(ips)
  	}
  
  }
  