{"modulePath":"github.com/tsuru/custom-cloudstack-ccm","version":"v0.0.0-20210526130804-976d991ace9d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cloudstack\n\n## Constants\n\n```go\nconst (\n\tCloudstackResourceIPAdress     = \"PublicIpAddress\"\n\tCloudstackResourceLoadBalancer = \"LoadBalancer\"\n)\n```\n\n```go\nconst ProviderName = \"custom-cloudstack\"\n```\nProviderName is the name of this cloud provider.\n\n## Variables\n\n```go\nvar ErrVMNotFound = errors.New(\"vm not found in cloudstack\")\n```\n\n## Types\n\n```go\ntype CSCloud struct {\n\t// contains filtered or unexported fields\n}\n```\nCSCloud is an implementation of Interface for CloudStack.\n\n```go\nfunc (cs *CSCloud) AddSSHKeyToAllInstances(ctx context.Context, user string, keyData []byte) error\n```\nAddSSHKeyToAllInstances is currently not implemented.\n\n```go\nfunc (cs *CSCloud) Clusters() (cloudprovider.Clusters, bool)\n```\nClusters returns an implementation of Clusters for CloudStack.\n\n```go\nfunc (cs *CSCloud) CurrentNodeName(ctx context.Context, hostname string) (types.NodeName, error)\n```\nCurrentNodeName returns the name of the node we are currently running on.\n\n```go\nfunc (cs *CSCloud) EnsureLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)\n```\nEnsureLoadBalancer creates a new load balancer, or updates the existing one. Returns the status of the balancer.\n\n```go\nfunc (cs *CSCloud) EnsureLoadBalancerDeleted(ctx context.Context, clusterName string, service *v1.Service) error\n```\nEnsureLoadBalancerDeleted deletes the specified load balancer if it exists, returning nil if the load balancer specified either didn't exist or was successfully deleted.\n\n```go\nfunc (cs *CSCloud) GetLoadBalancer(ctx context.Context, clusterName string, service *v1.Service) (*v1.LoadBalancerStatus, bool, error)\n```\nGetLoadBalancer returns whether the specified load balancer exists, and if so, what its status is.\n\n```go\nfunc (cs *CSCloud) GetLoadBalancerName(ctx context.Context, clusterName string, service *v1.Service) string\n```\nGetLoadBalancerName returns the name of the load balancer responsible for the service by looking at the service label. If not set, it fallsback to the concatanation of the service name and the environment load balancer domain for the environent\n\n```go\nfunc (cs *CSCloud) GetZone(ctx context.Context) (cloudprovider.Zone, error)\n```\nGetZone returns the Zone containing the current failure zone and locality region that the program is running in In most cases, this method is called from the kubelet querying a local metadata service to acquire its zone. For the case of external cloud providers, use GetZoneByProviderID or GetZoneByNodeName since GetZone can no longer be called from the kubelets.\n\n```go\nfunc (cs *CSCloud) GetZoneByNodeName(ctx context.Context, nodeName types.NodeName) (cloudprovider.Zone, error)\n```\nGetZoneByNodeName returns the Zone containing the current zone and locality region of the node specified by node name This method is particularly used in the context of external cloud providers where node initialization must be done outside the kubelets.\n\n```go\nfunc (cs *CSCloud) GetZoneByProviderID(ctx context.Context, providerID string) (cloudprovider.Zone, error)\n```\nGetZoneByProviderID returns the Zone containing the current zone and locality region of the node specified by providerId This method is particularly used in the context of external cloud providers where node initialization must be done outside the kubelets.\n\n```go\nfunc (cs *CSCloud) HasClusterID() bool\n```\nHasClusterID returns true if the cluster has a clusterID\n\n```go\nfunc (cs *CSCloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop \u003c-chan struct{})\n```\nInitialize passes a Kubernetes clientBuilder interface to the cloud provider\n\n```go\nfunc (cs *CSCloud) InstanceExistsByProviderID(ctx context.Context, providerID string) (bool, error)\n```\nInstanceExistsByProviderID returns if the instance still exists.\n\n```go\nfunc (cs *CSCloud) InstanceID(ctx context.Context, name types.NodeName) (string, error)\n```\nInstanceID returns the cloud provider ID of the specified instance.\n\n```go\nfunc (cs *CSCloud) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error)\n```\nInstanceShutdownByProviderID returns true if the instance is shutdown in cloudprovider\n\n```go\nfunc (cs *CSCloud) InstanceType(ctx context.Context, name types.NodeName) (string, error)\n```\nInstanceType returns the type of the specified instance.\n\n```go\nfunc (cs *CSCloud) InstanceTypeByProviderID(ctx context.Context, providerID string) (string, error)\n```\nInstanceTypeByProviderID returns the type of the specified instance.\n\n```go\nfunc (cs *CSCloud) Instances() (cloudprovider.Instances, bool)\n```\nInstances returns an implementation of Instances for CloudStack.\n\n```go\nfunc (cs *CSCloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)\n```\nLoadBalancer returns an implementation of LoadBalancer for CloudStack.\n\n```go\nfunc (cs *CSCloud) NodeAddresses(ctx context.Context, name types.NodeName) ([]v1.NodeAddress, error)\n```\nNodeAddresses returns the addresses of the specified instance.\n\n```go\nfunc (cs *CSCloud) NodeAddressesByProviderID(ctx context.Context, providerID string) ([]v1.NodeAddress, error)\n```\nNodeAddressesByProviderID returns the addresses of the specified instance.\n\n```go\nfunc (cs *CSCloud) ProviderName() string\n```\nProviderName returns the cloud provider ID.\n\n```go\nfunc (cs *CSCloud) Routes() (cloudprovider.Routes, bool)\n```\nRoutes returns an implementation of Routes for CloudStack.\n\n```go\nfunc (cs *CSCloud) SetInformers(informerFactory informers.SharedInformerFactory)\n```\n\n```go\nfunc (cs *CSCloud) UpdateLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) error\n```\nUpdateLoadBalancer updates hosts under the specified load balancer.\n\n```go\nfunc (cs *CSCloud) Zones() (cloudprovider.Zones, bool)\n```\nZones returns an implementation of Zones for CloudStack.\n\n```go\ntype CSConfig struct {\n\tGlobal      globalConfig                  `gcfg:\"global\"`\n\tEnvironment map[string]*environmentConfig `gcfg:\"environment\"`\n\tCommand     commandConfig                 `gcfg:\"custom-command\"`\n\tCommandArgs map[string]*commandArgsConfig `gcfg:\"custom-command-args\"`\n}\n```\nCSConfig wraps the config for the CloudStack cloud provider.\n\n```go\ntype CSEnvironment struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype IPNotFoundError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e IPNotFoundError) Error() string\n```\n\n```go\ntype UpdateGloboNetworkPoolResponse struct {\n\tJobID     string `json:\"jobid\"`\n\tJobstatus int    `json:\"jobstatus\"`\n}\n```\n\n","path":"github.com/tsuru/custom-cloudstack-ccm/cloudstack","name":"cloudstack","synopsis":"","isRedistributable":true}
