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 GCPCloud
- func (g *GCPCloud) AppCreate(name string, req *pb.AppCreateOptions) (*pb.App, error)
- func (g *GCPCloud) AppDelete(name string) error
- func (g *GCPCloud) AppGet(name string) (*pb.App, error)
- func (g *GCPCloud) AppList() (pb.Apps, error)
- func (g *GCPCloud) AppRestart(app string) error
- func (g *GCPCloud) BuildCreate(app string, req *pb.CreateBuildOptions) (*pb.Build, error)
- func (g *GCPCloud) BuildDelete(app, id string) error
- func (g *GCPCloud) BuildGet(app, id string) (*pb.Build, error)
- func (g *GCPCloud) BuildImport(app, filename string) (*pb.Build, error)
- func (g *GCPCloud) BuildList(app string, limit int) (pb.Builds, error)
- func (g *GCPCloud) BuildLogs(app, id string, index int) (int, []string, error)
- func (g *GCPCloud) BuildLogsStream(id string) (io.Reader, error)
- func (g *GCPCloud) BuildRelease(b *pb.Build) (*pb.Release, error)
- func (g *GCPCloud) EnvironmentGet(name string) (pb.Environment, error)
- func (g *GCPCloud) EnvironmentSet(name string, body io.Reader) error
- func (g *GCPCloud) GetRunningPods(app string) (string, error)
- func (g *GCPCloud) K8sConfigPath() (string, error)
- func (g *GCPCloud) LogStream(app string, opts pb.LogStreamOptions) (*bufio.Reader, func() error, error)
- func (g *GCPCloud) ReleaseDelete(app, id string) error
- func (g *GCPCloud) ReleaseList(app string, limit int) (pb.Releases, error)
- func (g *GCPCloud) ResourceCreate(name, kind string, params map[string]string) (*pb.Resource, error)
- func (g *GCPCloud) ResourceDelete(name string) error
- func (g *GCPCloud) ResourceGet(name string) (*pb.Resource, error)
- func (g *GCPCloud) ResourceLink(app, name string) (*pb.Resource, error)
- func (g *GCPCloud) ResourceList() (pb.Resources, error)
- func (g *GCPCloud) ResourceUnlink(app, name string) (*pb.Resource, error)
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 GCPCloud ¶
type GCPCloud struct {
Project string
ProjectNumber string
DeploymentName string
BucketName string
DefaultZone string
Region string
}
func (*GCPCloud) AppRestart ¶
func (*GCPCloud) BuildCreate ¶
func (*GCPCloud) BuildDelete ¶
func (*GCPCloud) BuildImport ¶
func (*GCPCloud) EnvironmentGet ¶
func (g *GCPCloud) EnvironmentGet(name string) (pb.Environment, error)