Documentation ¶
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type Provider
- func (p *Provider) CreateEntrypoint(m *model.Entrypoint, action *core.Action) error
- func (p *Provider) CreateEntrypointListener(m *model.EntrypointListener) error
- func (p *Provider) CreateKube(m *model.Kube, action *core.Action) error
- func (p *Provider) CreateNode(m *model.Node, action *core.Action) error
- func (p *Provider) CreateVolume(m *model.Volume, action *core.Action) error
- func (p *Provider) DeleteEntrypoint(m *model.Entrypoint) error
- func (p *Provider) DeleteEntrypointListener(m *model.EntrypointListener) error
- func (p *Provider) DeleteKube(m *model.Kube) error
- func (p *Provider) DeleteNode(m *model.Node) error
- func (p *Provider) DeleteVolume(m *model.Volume) error
- func (p *Provider) KubernetesVolumeDefinition(m *model.Volume) *kubernetes.Volume
- func (p *Provider) ResizeVolume(m *model.Volume, action *core.Action) error
- func (p *Provider) ValidateAccount(m *model.CloudAccount) error
- func (p *Provider) WaitForVolumeAvailable(m *model.Volume, action *core.Action) error
- type TokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
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 ¶
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 ¶
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 MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type Provider ¶
Provider Holds DO account info.
func (*Provider) CreateEntrypoint ¶
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 ¶
CreateKube creates a new DO kubernetes cluster.
func (*Provider) CreateNode ¶
CreateNode creates a new minion on DO kubernetes cluster.
func (*Provider) CreateVolume ¶
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 ¶
DeleteKube deletes a DO kubernetes cluster.
func (*Provider) DeleteNode ¶
DeleteNode deletes a minsion on a DO kubernetes cluster.
func (*Provider) DeleteVolume ¶
DeleteVolume deletes a DO volume.
func (*Provider) KubernetesVolumeDefinition ¶
func (p *Provider) KubernetesVolumeDefinition(m *model.Volume) *kubernetes.Volume
func (*Provider) ResizeVolume ¶
ResizeVolume re-sizes volume on DO kubernetes cluster.
func (*Provider) ValidateAccount ¶
func (p *Provider) ValidateAccount(m *model.CloudAccount) error
ValidateAccount Valitades DO account info.
type TokenSource ¶
type TokenSource struct {
AccessToken string
}