Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDisconnected = errors.New("disconnected")
View Source
var ErrInvalidMessage = errors.New("invalid message payload")
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { Ping() error Capacity() (garden.Capacity, error) Create(spec garden.ContainerSpec) (string, error) List(properties garden.Properties) ([]string, error) // Destroys the container with the given handle. If the container cannot be // found, garden.ContainerNotFoundError is returned. If deletion fails for another // reason, another error type is returned. Destroy(handle string) error Stop(handle string, kill bool) error Info(handle string) (garden.ContainerInfo, error) BulkInfo(handles []string) (map[string]garden.ContainerInfoEntry, error) BulkMetrics(handles []string) (map[string]garden.ContainerMetricsEntry, error) StreamIn(handle string, dstPath string, reader io.Reader) error StreamOut(handle string, srcPath string) (io.ReadCloser, error) LimitBandwidth(handle string, limits garden.BandwidthLimits) (garden.BandwidthLimits, error) LimitCPU(handle string, limits garden.CPULimits) (garden.CPULimits, error) LimitDisk(handle string, limits garden.DiskLimits) (garden.DiskLimits, error) LimitMemory(handle string, limit garden.MemoryLimits) (garden.MemoryLimits, error) CurrentBandwidthLimits(handle string) (garden.BandwidthLimits, error) CurrentCPULimits(handle string) (garden.CPULimits, error) CurrentDiskLimits(handle string) (garden.DiskLimits, error) CurrentMemoryLimits(handle string) (garden.MemoryLimits, error) Run(handle string, spec garden.ProcessSpec, io garden.ProcessIO) (garden.Process, error) Attach(handle string, processID uint32, io garden.ProcessIO) (garden.Process, error) NetIn(handle string, hostPort, containerPort uint32) (uint32, uint32, error) NetOut(handle string, rule garden.NetOutRule) error Properties(handle string) (garden.Properties, error) Property(handle string, name string) (string, error) SetProperty(handle string, name string, value string) error Metrics(handle string) (garden.Metrics, error) RemoveProperty(handle string, name string) error }
func New ¶
func New(network, address string) Connection
func NewWithLogger ¶
func NewWithLogger(network, address string, log lager.Logger) Connection
Source Files ¶
Click to show internal directories.
Click to hide internal directories.