digitalocean

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type Provider

type Provider struct {
	Core  *core.Core
	Token string
}

Provider Holds DO account info.

func (*Provider) CreateEntrypoint

func (p *Provider) CreateEntrypoint(m *model.Entrypoint, action *core.Action) error

CreateEntrypoint creates a new Load Balancer for Kubernetes in DO

func (*Provider) CreateEntrypointListener added in v0.11.0

func (p *Provider) CreateEntrypointListener(m *model.EntrypointListener) error

func (*Provider) CreateKube

func (p *Provider) CreateKube(m *model.Kube, action *core.Action) error

CreateKube creates a new DO kubernetes cluster.

func (*Provider) CreateNode

func (p *Provider) CreateNode(m *model.Node, action *core.Action) error

CreateNode creates a new minion on DO kubernetes cluster.

func (*Provider) CreateVolume

func (p *Provider) CreateVolume(m *model.Volume, action *core.Action) error

CreateVolume createss a Volume on DO for Kubernetes

func (*Provider) DeleteEntrypoint

func (p *Provider) DeleteEntrypoint(m *model.Entrypoint) error

DeleteEntrypoint deletes load balancer from DO.

func (*Provider) DeleteEntrypointListener added in v0.11.0

func (p *Provider) DeleteEntrypointListener(m *model.EntrypointListener) error

func (*Provider) DeleteKube

func (p *Provider) DeleteKube(m *model.Kube) error

DeleteKube deletes a DO kubernetes cluster.

func (*Provider) DeleteNode

func (p *Provider) DeleteNode(m *model.Node) error

DeleteNode deletes a minsion on a DO kubernetes cluster.

func (*Provider) DeleteVolume

func (p *Provider) DeleteVolume(m *model.Volume) error

DeleteVolume deletes a DO volume.

func (*Provider) KubernetesVolumeDefinition

func (p *Provider) KubernetesVolumeDefinition(m *model.Volume) *kubernetes.Volume

func (*Provider) ResizeVolume

func (p *Provider) ResizeVolume(m *model.Volume, action *core.Action) error

ResizeVolume re-sizes volume on DO kubernetes cluster.

func (*Provider) ValidateAccount

func (p *Provider) ValidateAccount(m *model.CloudAccount) error

ValidateAccount Valitades DO account info.

func (*Provider) WaitForVolumeAvailable

func (p *Provider) WaitForVolumeAvailable(m *model.Volume, action *core.Action) error

WaitForVolumeAvailable waits for DO volume to become available.

type TokenSource

type TokenSource struct {
	AccessToken string
}

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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