cloud

package
v1.0.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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)

	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) (*pb.Build, 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.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, opts pb.LogStreamOptions) (*bufio.Reader, func() error, 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)

	GetRunningPods(string) (string, error)
	K8sConfigPath() (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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