v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Systems() SystemClient
}

type SystemBuildClient

type SystemBuildClient interface {
	CreateFromVersion(v1.Version) (*v1.Build, error)
	CreateFromPath(path tree.Path) (*v1.Build, error)
	List() ([]v1.Build, error)
	Get(v1.BuildID) (*v1.Build, error)
	Logs(id v1.BuildID, path tree.Path, sidecar *string, options *v1.ContainerLogOptions) (io.ReadCloser, error)
}

type SystemClient

type SystemClient interface {
	Create(id v1.SystemID, definitionURL string) (*v1.System, error)
	List() ([]v1.System, error)
	Get(v1.SystemID) (*v1.System, error)
	Delete(v1.SystemID) error

	Builds(v1.SystemID) SystemBuildClient
	Deploys(v1.SystemID) SystemDeployClient
	Jobs(v1.SystemID) SystemJobClient
	Secrets(v1.SystemID) SystemSecretClient
	Services(v1.SystemID) SystemServiceClient
	Teardowns(v1.SystemID) SystemTeardownClient
	Versions(v1.SystemID) ([]v1.Version, error)
}

type SystemDeployClient

type SystemDeployClient interface {
	CreateFromBuild(v1.BuildID) (*v1.Deploy, error)
	CreateFromPath(tree.Path) (*v1.Deploy, error)
	CreateFromVersion(v1.Version) (*v1.Deploy, error)
	List() ([]v1.Deploy, error)
	Get(v1.DeployID) (*v1.Deploy, error)
}

type SystemJobClient

type SystemJobClient interface {
	Create(path tree.Path, command []string, environment definitionv1.ContainerEnvironment) (*v1.Job, error)
	List() ([]v1.Job, error)
	Get(v1.JobID) (*v1.Job, error)
	Logs(id v1.JobID, sidecar *string, options *v1.ContainerLogOptions) (io.ReadCloser, error)
}

type SystemSecretClient

type SystemSecretClient interface {
	List() ([]v1.Secret, error)
	Get(path tree.PathSubcomponent) (*v1.Secret, error)
	Set(path tree.PathSubcomponent, value string) error
	Unset(path tree.PathSubcomponent) error
}

type SystemServiceClient

type SystemServiceClient interface {
	List() ([]v1.Service, error)
	Get(id v1.ServiceID) (*v1.Service, error)
	GetByPath(path tree.Path) (*v1.Service, error)
	Logs(id v1.ServiceID, instance, sidecar *string, options *v1.ContainerLogOptions) (io.ReadCloser, error)
}

type SystemTeardownClient

type SystemTeardownClient interface {
	Create() (*v1.Teardown, error)
	List() ([]v1.Teardown, error)
	Get(v1.TeardownID) (*v1.Teardown, error)
}

Jump to

Keyboard shortcuts

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