example

package
v0.0.0-...-274bc40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func (cp *Provider) HasClusterID() bool

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

func (cp *Provider) ProviderName() string

ProviderName returns the cloud provider ID.

func (*Provider) Routes

func (cp *Provider) Routes() (cloudprovider.Routes, bool)

Routes returns a routes interface along with whether the interface is supported.

func (*Provider) Zones

func (cp *Provider) Zones() (cloudprovider.Zones, bool)

Zones returns a zones interface. Also returns true if the interface is supported, false otherwise.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL