Documentation ¶
Index ¶
- Constants
- type Provider
- func (cp *Provider) Clusters() (cloudprovider.Clusters, bool)
- func (cp *Provider) HasClusterID() bool
- func (cp *Provider) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
- func (cp *Provider) Instances() (cloudprovider.Instances, bool)
- func (cp *Provider) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (cp *Provider) ProviderName() string
- func (cp *Provider) Routes() (cloudprovider.Routes, bool)
- func (cp *Provider) Zones() (cloudprovider.Zones, bool)
Constants ¶
View Source
const ( // ProviderName is the name of the cloud provider registered with // Kubernetes. ProviderName string = "example-cloud-provider" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is an implementation of cloud provider Interface
func (*Provider) Clusters ¶
func (cp *Provider) Clusters() (cloudprovider.Clusters, bool)
Clusters returns a clusters interface. Also returns true if the interface is supported, false otherwise.
func (*Provider) HasClusterID ¶
HasClusterID returns true if a ClusterID is required and set/
func (*Provider) Initialize ¶
func (cp *Provider) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
Initialize initializes the cloud provider.
func (*Provider) Instances ¶
func (cp *Provider) Instances() (cloudprovider.Instances, bool)
Instances returns an instances interface. Also returns true if the interface is supported, false otherwise.
func (*Provider) LoadBalancer ¶
func (cp *Provider) LoadBalancer() (cloudprovider.LoadBalancer, bool)
LoadBalancer returns a balancer interface. Also returns true if the interface is supported, false otherwise.
func (*Provider) ProviderName ¶
ProviderName returns the cloud provider ID.
Click to show internal directories.
Click to hide internal directories.