aws

package
v1.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 35 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 AwsCloud

type AwsCloud struct {
	DeploymentName        string
	Region, SettingBucket string
	Access, Secret, Token string
}

func (*AwsCloud) AppCreate

func (a *AwsCloud) AppCreate(name string, req *pb.AppCreateOptions) (*pb.App, error)

func (*AwsCloud) AppDelete

func (a *AwsCloud) AppDelete(name string) error

func (*AwsCloud) AppGet

func (a *AwsCloud) AppGet(name string) (*pb.App, error)

func (*AwsCloud) AppList

func (a *AwsCloud) AppList() (pb.Apps, error)

func (*AwsCloud) AppRestart

func (a *AwsCloud) AppRestart(app string) error

func (*AwsCloud) BuildCreate

func (a *AwsCloud) BuildCreate(app string, req *pb.CreateBuildOptions) (*pb.Build, error)

func (*AwsCloud) BuildDelete

func (a *AwsCloud) BuildDelete(app, id string) error

func (*AwsCloud) BuildGet

func (a *AwsCloud) BuildGet(app, id string) (*pb.Build, error)

func (*AwsCloud) BuildImport

func (a *AwsCloud) BuildImport(app, gzipPath string) (*pb.Build, error)

func (*AwsCloud) BuildList

func (a *AwsCloud) BuildList(app string, limit int) (pb.Builds, error)

func (*AwsCloud) BuildLogs

func (a *AwsCloud) BuildLogs(app, id string, index int) (int, []string, error)

func (*AwsCloud) BuildLogsStream

func (a *AwsCloud) BuildLogsStream(id string) (io.Reader, error)

func (*AwsCloud) BuildRelease

func (a *AwsCloud) BuildRelease(b *pb.Build) (*pb.Release, error)

func (*AwsCloud) EnvironmentGet

func (a *AwsCloud) EnvironmentGet(name string) (pb.Environment, error)

func (*AwsCloud) EnvironmentSet

func (a *AwsCloud) EnvironmentSet(name string, r io.Reader) error

func (*AwsCloud) GetRunningPods

func (g *AwsCloud) GetRunningPods(app string) (string, error)

func (*AwsCloud) K8sConfigPath

func (p *AwsCloud) K8sConfigPath() (string, error)

func (*AwsCloud) LogStream

func (a *AwsCloud) LogStream(app string, opts pb.LogStreamOptions) (*bufio.Reader, func() error, error)

func (*AwsCloud) ReleaseDelete

func (a *AwsCloud) ReleaseDelete(app, id string) error

func (*AwsCloud) ReleaseList

func (a *AwsCloud) ReleaseList(app string, limit int) (pb.Releases, error)

func (*AwsCloud) ResourceCreate

func (a *AwsCloud) ResourceCreate(name, kind string, params map[string]string) (*pb.Resource, error)

func (*AwsCloud) ResourceDelete

func (a *AwsCloud) ResourceDelete(name string) error

func (*AwsCloud) ResourceGet

func (a *AwsCloud) ResourceGet(name string) (*pb.Resource, error)
func (p *AwsCloud) ResourceLink(app, name string) (*pb.Resource, error)

func (*AwsCloud) ResourceList

func (a *AwsCloud) ResourceList() (pb.Resources, error)
func (p *AwsCloud) ResourceUnlink(app, name string) (*pb.Resource, error)

Jump to

Keyboard shortcuts

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