connection

package
v0.0.0-...-68efac8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 20 Imported by: 0

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

type GardenError struct {
	Message   string
	Data      string
	Backtrace []string
}

func (*GardenError) Error

func (e *GardenError) Error() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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