Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Connect() error Create(properties map[string]string) (*warden.CreateResponse, error) Stop(handle string, background, kill bool) (*warden.StopResponse, error) Destroy(handle string) (*warden.DestroyResponse, error) Run(handle, script string, resourceLimits ResourceLimits, environmentVariables []EnvironmentVariable) (uint32, <-chan *warden.ProcessPayload, error) Attach(handle string, processID uint32) (<-chan *warden.ProcessPayload, error) NetIn(handle string) (*warden.NetInResponse, error) LimitMemory(handle string, limit uint64) (*warden.LimitMemoryResponse, error) GetMemoryLimit(handle string) (uint64, error) LimitCPU(handle string, limitInShares uint64) (*warden.LimitCpuResponse, error) LimitDisk(handle string, limits DiskLimits) (*warden.LimitDiskResponse, error) GetDiskLimit(handle string) (uint64, error) List(filterProperties map[string]string) (*warden.ListResponse, error) Info(handle string) (*warden.InfoResponse, error) CopyIn(handle, src, dst string) (*warden.CopyInResponse, error) CopyOut(handle, src, dst, owner string) (*warden.CopyOutResponse, error) }
func NewClient ¶
func NewClient(cp ConnectionProvider) Client
type ConnectionInfo ¶
func (*ConnectionInfo) ProvideConnection ¶
func (i *ConnectionInfo) ProvideConnection() (*connection.Connection, error)
type ConnectionProvider ¶
type ConnectionProvider interface {
ProvideConnection() (*connection.Connection, error)
}
type DiskLimits ¶
type EnvironmentVariable ¶
type ResourceLimits ¶
type ResourceLimits struct {
FileDescriptors uint64
}
Click to show internal directories.
Click to hide internal directories.