aws

package
v1.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 43 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
	// contains filtered or unexported fields
}

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) AppUpdateDomain

func (p *AwsCloud) AppUpdateDomain(name, domain string) error

DomainUpdate updates list of Domains for an app domain can be example.com if you want to add or :example.com if you want to delete

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(id string, tr io.Reader, w io.WriteCloser) error

func (*AwsCloud) BuildList

func (a *AwsCloud) BuildList(app string, limit int64) (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, options pb.ReleaseOptions) (*pb.Release, error)

func (*AwsCloud) BuildStatus

func (a *AwsCloud) BuildStatus(id string, status string) error

func (*AwsCloud) BuildUpload

func (a *AwsCloud) BuildUpload(id, gzipPath string) error

func (*AwsCloud) CertificateCreate

func (l *AwsCloud) CertificateCreate(name, domain, cert, key string) error

func (*AwsCloud) CertificateDelete

func (l *AwsCloud) CertificateDelete(name, domain string) error

func (*AwsCloud) DockerCredsGet

func (a *AwsCloud) DockerCredsGet() (*pb.DockerCred, 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) K8sConfigPath

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

func (*AwsCloud) LogStream

func (a *AwsCloud) LogStream(app string, w io.Writer, opts pb.LogStreamOptions) error

func (*AwsCloud) ProcessLimits

func (p *AwsCloud) ProcessLimits(name, resource string, limits map[string]string) error

func (*AwsCloud) ProcessList

func (p *AwsCloud) ProcessList(app string) ([]*pb.Process, error)

func (*AwsCloud) ProcessRun

func (p *AwsCloud) ProcessRun(name string, r io.ReadWriter, opts pb.ProcessRunOptions) error

func (*AwsCloud) ProcessSave

func (p *AwsCloud) ProcessSave(name string, structure map[string]int32) error

func (*AwsCloud) ReleaseDelete

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

func (*AwsCloud) ReleaseList

func (a *AwsCloud) ReleaseList(app string, limit int64) (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)

func (*AwsCloud) Setup

func (p *AwsCloud) Setup()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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