aws

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSMasterAMIs = map[string]string{
	"ap-northeast-1": "ami-907fa690",
	"ap-southeast-1": "ami-b4a79de6",
	"eu-central-1":   "ami-e8635bf5",
	"eu-west-1":      "ami-0fd0ae78",
	"sa-east-1":      "ami-f9f675e4",
	"us-east-1":      "ami-f57b8f9e",
	"us-west-1":      "ami-87b643c3",
	"cn-north-1":     "ami-3abf2203",
	"ap-southeast-2": "ami-1bb9c221",
	"us-west-2":      "ami-33566d03",
}

Functions

func Asset added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset added in v0.10.0

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 added in v0.10.0

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets added in v0.10.0

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type Provider

type Provider struct {
	Core        *core.Core
	Credentials map[string]string
}

func (*Provider) CreateEntrypoint

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

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

func (*Provider) CreateNode

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

func (*Provider) CreateVolume

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

func (*Provider) DeleteEntrypoint

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

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

func (*Provider) DeleteNode

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

func (*Provider) DeleteVolume

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

func (*Provider) KubernetesVolumeDefinition added in v0.10.0

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

func (*Provider) ResizeVolume

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

func (*Provider) ValidateAccount

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

func (*Provider) WaitForVolumeAvailable

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

Jump to

Keyboard shortcuts

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