digitalocean

package
v0.0.0-...-fdd9da6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ProviderName = "digitalocean"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string `json:"token" yaml:"token"`
}

type DO

type DO struct {
	Config
	Client *godo.Client
}

func (*DO) AddSSHKeyToAllInstances

func (d *DO) AddSSHKeyToAllInstances(user string, keyData []byte) error

func (*DO) Clusters

func (d *DO) Clusters() (cloudprovider.Clusters, bool)

func (*DO) CurrentNodeName

func (d *DO) CurrentNodeName(hostname string) (types.NodeName, error)

func (*DO) ExternalID

func (d *DO) ExternalID(nodeName types.NodeName) (string, error)

func (*DO) GetZone

func (d *DO) GetZone() (cloudprovider.Zone, error)

func (*DO) Initialize

func (d *DO) Initialize(clientBuilder controller.ControllerClientBuilder)

func (*DO) InstanceID

func (d *DO) InstanceID(nodeName types.NodeName) (string, error)

func (*DO) InstanceType

func (d *DO) InstanceType(nodeName types.NodeName) (string, error)

func (*DO) InstanceTypeByProviderID

func (d *DO) InstanceTypeByProviderID(providerID string) (string, error)

func (*DO) Instances

func (d *DO) Instances() (cloudprovider.Instances, bool)

func (*DO) LoadBalancer

func (d *DO) LoadBalancer() (cloudprovider.LoadBalancer, bool)

func (*DO) NodeAddresses

func (d *DO) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error)

func (*DO) NodeAddressesByProviderID

func (d *DO) NodeAddressesByProviderID(providerID string) ([]v1.NodeAddress, error)

func (*DO) ProviderName

func (d *DO) ProviderName() string

func (*DO) Routes

func (d *DO) Routes() (cloudprovider.Routes, bool)

func (*DO) ScrubDNS

func (d *DO) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string)

func (*DO) Zones

func (d *DO) Zones() (cloudprovider.Zones, bool)

Jump to

Keyboard shortcuts

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