cloud

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

Documentation

Index

Constants

View Source
const (
	CloudsqlSecretName    = "cloudsql-secret"
	CloudsqlContainerName = "cloudsql-proxy"
	CloudsqlImage         = "gcr.io/cloudsql-docker/gce-proxy:1.09"
	CloudsqlCredVolName   = "cloudsql-instance-credentials"
	DefaultProcPort       = 8080
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider string
const (
	AwsProvider   CloudProvider = "aws"
	GCPProvider   CloudProvider = "gcp"
	LocalProvider CloudProvider = "local"
)

type Provider

type Provider interface {
	AppCreate(name string, req *pb.AppCreateOptions) (*pb.App, error)
	AppGet(string) (*pb.App, error)
	AppDelete(string) error
	AppRestart(string) error
	AppList() (pb.Apps, error)
	AppUpdateDomain(string, string) error

	CertificateCreate(app, domain, cert, key string) error
	CertificateDelete(app, domain string) error

	EnvironmentGet(app string) (pb.Environment, error)
	EnvironmentSet(app string, body io.Reader) error

	BuildCreate(app string, req *pb.CreateBuildOptions) (*pb.Build, error)
	BuildUpload(app, filename string) error
	BuildImport(app string, r io.Reader, w io.WriteCloser) error
	BuildList(app string, limit int64) (pb.Builds, error)
	BuildGet(app, id string) (*pb.Build, error)
	BuildDelete(app, id string) error
	BuildRelease(*pb.Build, pb.ReleaseOptions) (*pb.Release, error)
	BuildLogs(app, id string, index int) (int, []string, error)
	BuildLogsStream(id string) (io.Reader, error)

	ReleaseList(string, int64) (pb.Releases, error)
	ReleaseDelete(string, string) error

	LogStream(app string, w io.Writer, opts pb.LogStreamOptions) error

	ProcessList(app string) ([]*pb.Process, error)
	ProcessRun(app string, r io.ReadWriter, opts pb.ProcessRunOptions) error
	ProcessSave(app string, formation map[string]int32) error
	ProcessLimits(app, resource string, limits map[string]string) error

	ResourceList() (pb.Resources, error)
	ResourceCreate(name, kind string, params map[string]string) (*pb.Resource, error)
	ResourceGet(name string) (*pb.Resource, error)
	ResourceDelete(name string) error
	ResourceLink(app, name string) (*pb.Resource, error)
	ResourceUnlink(string, string) (*pb.Resource, error)

	K8sConfigPath() (string, error)
	DockerCredsGet() (*pb.DockerCred, error)
}

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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