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() (api.Capacity, error) Create(spec api.ContainerSpec) (string, error) List(properties api.Properties) ([]string, error) Destroy(handle string) error Stop(handle string, kill bool) error Info(handle string) (api.ContainerInfo, error) StreamIn(handle string, dstPath string, reader io.Reader) error StreamOut(handle string, srcPath string) (io.ReadCloser, error) LimitBandwidth(handle string, limits api.BandwidthLimits) (api.BandwidthLimits, error) LimitCPU(handle string, limits api.CPULimits) (api.CPULimits, error) LimitDisk(handle string, limits api.DiskLimits) (api.DiskLimits, error) LimitMemory(handle string, limit api.MemoryLimits) (api.MemoryLimits, error) CurrentBandwidthLimits(handle string) (api.BandwidthLimits, error) CurrentCPULimits(handle string) (api.CPULimits, error) CurrentDiskLimits(handle string) (api.DiskLimits, error) CurrentMemoryLimits(handle string) (api.MemoryLimits, error) Run(handle string, spec api.ProcessSpec, io api.ProcessIO) (api.Process, error) Attach(handle string, processID uint32, io api.ProcessIO) (api.Process, error) NetIn(handle string, hostPort, containerPort uint32) (uint32, uint32, error) NetOut(handle string, network string, port uint32) error }
func New ¶
func New(network, address string) Connection
type GardenError ¶
func (*GardenError) Error ¶
func (e *GardenError) Error() string
Click to show internal directories.
Click to hide internal directories.