{"modulePath":"github.com/swisstxt/cloudstack-cloud-controller-manager","version":"v0.0.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cloudstack\n\n## Constants\n\n```go\nconst ProviderName = \"external-cloudstack\"\n```\nProviderName is the name of this cloud provider.\n\n```go\nconst ServiceAnnotationLoadBalancerProxyProtocol = \"service.beta.kubernetes.io/cloudstack-load-balancer-proxy-protocol\"\n```\nServiceAnnotationLoadBalancerProxyProtocol is the annotation used on the service to enable the proxy protocol on a CloudStack load balancer. The value of this annotation is ignored, even if it is seemingly boolean. Simple presence of the annotation will enable it. Note that this protocol only applies to TCP service ports and CloudStack 4.6 is required for it to work.\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) (status *v1.LoadBalancerStatus, err 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 retrieves the name of the LoadBalancer.\n\n```go\nfunc (cs *CSCloud) GetZone(ctx context.Context) (cloudprovider.Zone, error)\n```\nGetZone returns the Zone containing the region that the program is running in.\n\n```go\nfunc (cs *CSCloud) GetZoneByNodeName(ctx context.Context, nodeName types.NodeName) (cloudprovider.Zone, error)\n```\nGetZoneByNodeName returns the Zone, found by using the node name.\n\n```go\nfunc (cs *CSCloud) GetZoneByProviderID(ctx context.Context, providerID string) (cloudprovider.Zone, error)\n```\nGetZoneByProviderID returns the Zone, found by using the provider ID.\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 in safe state to detach volumes\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) 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 struct {\n\t\tAPIURL      string `gcfg:\"api-url\"`\n\t\tAPIKey      string `gcfg:\"api-key\"`\n\t\tSecretKey   string `gcfg:\"secret-key\"`\n\t\tSSLNoVerify bool   `gcfg:\"ssl-no-verify\"`\n\t\tProjectID   string `gcfg:\"project-id\"`\n\t\tZone        string `gcfg:\"zone\"`\n\t}\n}\n```\nCSConfig wraps the config for the CloudStack cloud provider.\n\n","path":"github.com/swisstxt/cloudstack-cloud-controller-manager","name":"cloudstack","synopsis":"","isRedistributable":true}
