Documentation ¶
Index ¶
- func RegisterHooks(hs hook.HookSet, runner Runner, config process.Env, ...)
- type Config
- type Container
- type ContainerInitializer
- type ContainerPool
- type ContainerRepository
- type FailedToSnapshotError
- type HandleExistsError
- type LinuxBackend
- func (b *LinuxBackend) BulkInfo(handles []string) (map[string]garden.ContainerInfoEntry, error)
- func (b *LinuxBackend) BulkMetrics(handles []string) (map[string]garden.ContainerMetricsEntry, error)
- func (b *LinuxBackend) Capacity() (garden.Capacity, error)
- func (b *LinuxBackend) Containers(props garden.Properties) ([]garden.Container, error)
- func (b *LinuxBackend) Create(spec garden.ContainerSpec) (garden.Container, error)
- func (b *LinuxBackend) Destroy(handle string) error
- func (b *LinuxBackend) GraceTime(container garden.Container) time.Duration
- func (b *LinuxBackend) Lookup(handle string) (garden.Container, error)
- func (b *LinuxBackend) Ping() error
- func (b *LinuxBackend) Setup() error
- func (b *LinuxBackend) Start() error
- func (b *LinuxBackend) Stop()
- type NamespacedSignaller
- type Network
- type Resources
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHooks ¶
func RegisterHooks(hs hook.HookSet, runner Runner, config process.Env, containerInitializer ContainerInitializer, configurer network.Configurer)
Types ¶
type Config ¶
type Config struct {
Network json.RawMessage `json:"network"`
}
type ContainerInitializer ¶
func NewContainerInitializer ¶
func NewContainerInitializer() ContainerInitializer
type ContainerPool ¶
type ContainerRepository ¶
type FailedToSnapshotError ¶
type FailedToSnapshotError struct {
OriginalError error
}
func (FailedToSnapshotError) Error ¶
func (e FailedToSnapshotError) Error() string
type HandleExistsError ¶
type HandleExistsError struct {
Handle string
}
func (HandleExistsError) Error ¶
func (e HandleExistsError) Error() string
type LinuxBackend ¶
type LinuxBackend struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger lager.Logger, containerPool ContainerPool, containerRepo ContainerRepository, systemInfo system_info.Provider, snapshotsPath string, ) *LinuxBackend
func (*LinuxBackend) BulkInfo ¶
func (b *LinuxBackend) BulkInfo(handles []string) (map[string]garden.ContainerInfoEntry, error)
func (*LinuxBackend) BulkMetrics ¶
func (b *LinuxBackend) BulkMetrics(handles []string) (map[string]garden.ContainerMetricsEntry, error)
func (*LinuxBackend) Containers ¶
func (b *LinuxBackend) Containers(props garden.Properties) ([]garden.Container, error)
func (*LinuxBackend) Create ¶
func (b *LinuxBackend) Create(spec garden.ContainerSpec) (garden.Container, error)
func (*LinuxBackend) Destroy ¶
func (b *LinuxBackend) Destroy(handle string) error
func (*LinuxBackend) GraceTime ¶
func (b *LinuxBackend) GraceTime(container garden.Container) time.Duration
func (*LinuxBackend) Lookup ¶
func (b *LinuxBackend) Lookup(handle string) (garden.Container, error)
func (*LinuxBackend) Ping ¶
func (b *LinuxBackend) Ping() error
func (*LinuxBackend) Setup ¶
func (b *LinuxBackend) Setup() error
func (*LinuxBackend) Start ¶
func (b *LinuxBackend) Start() error
func (*LinuxBackend) Stop ¶
func (b *LinuxBackend) Stop()
type NamespacedSignaller ¶
type NamespacedSignaller struct { Runner command_runner.CommandRunner ContainerPath string PidFilePath string }
Kills a process by invoking ./bin/wsh in the given container path using a PID read from the given pidFile
Source Files ¶
Click to show internal directories.
Click to hide internal directories.