Documentation ¶
Index ¶
- type BindMount
- type CommandLineJson
- type Container
- func (c *Container) ConfigureApplicationPorts()
- func (c *Container) ConfigureConsolePorts()
- func (c *Container) ConfigureDebugPorts()
- func (c *Container) ConfigureHomeDirectory()
- func (c *Container) Create(pathsToBind []*BindMount) error
- func (c *Container) SetDiskLimit(limitInBytes uint64) error
- func (c *Container) SetMemoryLimit(limitInBytes uint64) error
- type ContainerCreator
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLineJson ¶
type CommandLineJson struct { DiskLimitInBytes uint64 `json:"disk_limit_in_bytes",required` MemoryLimitInBytes uint64 `json:"memory_limit_in_bytes"` BindMounts []*BindMount `json:"bind_mounts"` WardenSocketPath string `json:"warden_socket_path"` }
func (*CommandLineJson) IsValid ¶
func (c *CommandLineJson) IsValid() bool
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer(client warden.ConnectedWardenClient) *Container
func (*Container) ConfigureApplicationPorts ¶
func (c *Container) ConfigureApplicationPorts()
func (*Container) ConfigureConsolePorts ¶
func (c *Container) ConfigureConsolePorts()
func (*Container) ConfigureDebugPorts ¶
func (c *Container) ConfigureDebugPorts()
func (*Container) ConfigureHomeDirectory ¶
func (c *Container) ConfigureHomeDirectory()
func (*Container) SetDiskLimit ¶
func (*Container) SetMemoryLimit ¶
type ContainerCreator ¶
type State ¶
type State struct { Container ContainerCreator CommandLineJson *CommandLineJson }
func NewState ¶
func NewState(container ContainerCreator, commandLineJson *CommandLineJson) *State
Click to show internal directories.
Click to hide internal directories.