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
EnvironmentGet(app string) (pb.Environment, error)
EnvironmentSet(app string, body io.Reader) error
BuildCreate(app string, req *pb.CreateBuildOptions) (*pb.Build, error)
BuildImport(app, filename string) error
BuildList(app string, limit int) (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, int) (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, command []string) error
ProcessSave(app string, formation map[string]int32) 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)
}
Click to show internal directories.
Click to hide internal directories.