Versions in this module Expand all Collapse all v1 v1.0.1 May 27, 2025 Changes in this version + const DockerImagePullCompleted + const DockerImagePullStarted + const DockerImagePullStatus + const ProcessOfflineState + const ProcessRunningState + const ProcessStartingState + const ProcessStoppingState + const ResourceEvent + const StateChangeEvent + func ConfigureDocker(ctx context.Context) error + func Docker() (*client.Client, error) + type Allocations struct + DefaultMapping struct{ ... } + ForceOutgoingIP bool + Mappings map[string][]int + func (a *Allocations) Bindings() nat.PortMap + func (a *Allocations) DockerBindings() nat.PortMap + func (a *Allocations) Exposed() nat.PortSet + type Configuration struct + func NewConfiguration(s Settings, envVars []string) *Configuration + func (c *Configuration) Allocations() Allocations + func (c *Configuration) EnvironmentVariables() []string + func (c *Configuration) Labels() map[string]string + func (c *Configuration) Limits() Limits + func (c *Configuration) Mounts() []Mount + func (c *Configuration) SetEnvironmentVariables(ev []string) + func (c *Configuration) SetSettings(s Settings) + type Limits struct + CpuLimit int64 + DiskSpace int64 + IoWeight uint16 + MemoryLimit int64 + OOMDisabled bool + Swap int64 + Threads string + func (l Limits) AsContainerResources() container.Resources + func (l Limits) BoundedMemoryLimit() int64 + func (l Limits) ConvertedCpuLimit() int64 + func (l Limits) ConvertedSwap() int64 + func (l Limits) MemoryOverheadMultiplier() float64 + func (l Limits) ProcessLimit() int64 + type Mount struct + Default bool + ReadOnly bool + Source string + Target string + type NetworkStats struct + RxBytes uint64 + TxBytes uint64 + type ProcessEnvironment interface + Attach func(ctx context.Context) error + Config func() *Configuration + Create func() error + Destroy func() error + Events func() *events.Bus + Exists func() (bool, error) + ExitState func() (uint32, bool, error) + InSituUpdate func() error + IsRunning func(ctx context.Context) (bool, error) + OnBeforeStart func(ctx context.Context) error + Readlog func(int) ([]string, error) + SendCommand func(string) error + SetLogCallback func(func([]byte)) + SetState func(string) + Start func(ctx context.Context) error + State func() string + Stop func(ctx context.Context) error + Terminate func(ctx context.Context, signal string) error + Type func() string + Uptime func(ctx context.Context) (int64, error) + WaitForStop func(ctx context.Context, duration time.Duration, terminate bool) error + type Settings struct + Allocations Allocations + Labels map[string]string + Limits Limits + Mounts []Mount + type Stats struct + CpuAbsolute float64 + Memory uint64 + MemoryLimit uint64 + Network NetworkStats + Uptime int64 + type Variables map[string]interface + func (v Variables) Get(key string) string