Versions in this module Expand all Collapse all v0 v0.2.0 Feb 11, 2026 Changes in this version + type NetworkInfo struct + ID string + Name string type NetworkManager + ForceRemoveNetwork func(ctx context.Context, networkID string) error + ListNetworks func(ctx context.Context) ([]NetworkInfo, error) v0.1.0 Feb 8, 2026 Changes in this version + var ErrGVisorNotAvailable = errors.New(...) + func BuildCreateArgs(cfg Config) ([]string, error) + func DefaultDNS(dns []string) []string + func GVisorAvailable(ctx context.Context) bool + func IsAppleSilicon() bool + type AppleRuntime struct + func NewAppleRuntime() (*AppleRuntime, error) + func (r *AppleRuntime) Attach(ctx context.Context, containerID string, opts AttachOptions) error + func (r *AppleRuntime) BuildManager() BuildManager + func (r *AppleRuntime) Close() error + func (r *AppleRuntime) ContainerLogs(ctx context.Context, containerID string) (io.ReadCloser, error) + func (r *AppleRuntime) ContainerLogsAll(ctx context.Context, containerID string) ([]byte, error) + func (r *AppleRuntime) ContainerState(ctx context.Context, containerID string) (string, error) + func (r *AppleRuntime) CreateContainer(ctx context.Context, cfg Config) (string, error) + func (r *AppleRuntime) GetHostAddress() string + func (r *AppleRuntime) GetPortBindings(ctx context.Context, containerID string) (map[int]int, error) + func (r *AppleRuntime) ListContainers(ctx context.Context) ([]Info, error) + func (r *AppleRuntime) ListImages(ctx context.Context) ([]ImageInfo, error) + func (r *AppleRuntime) NetworkManager() NetworkManager + func (r *AppleRuntime) Ping(ctx context.Context) error + func (r *AppleRuntime) RemoveContainer(ctx context.Context, containerID string) error + func (r *AppleRuntime) RemoveImage(ctx context.Context, id string) error + func (r *AppleRuntime) ResizeTTY(ctx context.Context, containerID string, height, width uint) error + func (r *AppleRuntime) ServiceManager() ServiceManager + func (r *AppleRuntime) SetupFirewall(ctx context.Context, containerID string, proxyHost string, proxyPort int) error + func (r *AppleRuntime) SidecarManager() SidecarManager + func (r *AppleRuntime) StartAttached(ctx context.Context, containerID string, opts AttachOptions) error + func (r *AppleRuntime) StartContainer(ctx context.Context, containerID string) error + func (r *AppleRuntime) StopContainer(ctx context.Context, containerID string) error + func (r *AppleRuntime) SupportsHostNetwork() bool + func (r *AppleRuntime) Type() RuntimeType + func (r *AppleRuntime) WaitContainer(ctx context.Context, containerID string) (int64, error) + type AttachOptions struct + InitialHeight uint + InitialWidth uint + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + TTY bool + type BuildManager interface + BuildImage func(ctx context.Context, dockerfile string, tag string, opts BuildOptions) error + GetImageHomeDir func(ctx context.Context, imageName string) string + ImageExists func(ctx context.Context, tag string) (bool, error) + type BuildOptions struct + ContextFiles map[string][]byte + DNS []string + NoCache bool + type Config struct + CPUs int + CapAdd []string + Cmd []string + DNS []string + Env []string + ExtraHosts []string + GroupAdd []string + HasMoatUser bool + Image string + Interactive bool + MemoryMB int + Mounts []MountConfig + Name string + NetworkMode string + PortBindings map[int]string + Privileged bool + User string + WorkingDir string + type DockerRuntime struct + func NewDockerRuntime(sandbox bool) (*DockerRuntime, error) + func (r *DockerRuntime) Attach(ctx context.Context, containerID string, opts AttachOptions) error + func (r *DockerRuntime) BuildManager() BuildManager + func (r *DockerRuntime) Close() error + func (r *DockerRuntime) ContainerLogs(ctx context.Context, containerID string) (io.ReadCloser, error) + func (r *DockerRuntime) ContainerLogsAll(ctx context.Context, containerID string) ([]byte, error) + func (r *DockerRuntime) ContainerState(ctx context.Context, containerID string) (string, error) + func (r *DockerRuntime) CreateContainer(ctx context.Context, cfg Config) (string, error) + func (r *DockerRuntime) GetHostAddress() string + func (r *DockerRuntime) GetPortBindings(ctx context.Context, containerID string) (map[int]int, error) + func (r *DockerRuntime) ListContainers(ctx context.Context) ([]Info, error) + func (r *DockerRuntime) ListImages(ctx context.Context) ([]ImageInfo, error) + func (r *DockerRuntime) NetworkManager() NetworkManager + func (r *DockerRuntime) Ping(ctx context.Context) error + func (r *DockerRuntime) RemoveContainer(ctx context.Context, containerID string) error + func (r *DockerRuntime) RemoveImage(ctx context.Context, id string) error + func (r *DockerRuntime) ResizeTTY(ctx context.Context, containerID string, height, width uint) error + func (r *DockerRuntime) ServiceManager() ServiceManager + func (r *DockerRuntime) SetupFirewall(ctx context.Context, containerID string, proxyHost string, proxyPort int) error + func (r *DockerRuntime) SidecarManager() SidecarManager + func (r *DockerRuntime) StartAttached(ctx context.Context, containerID string, opts AttachOptions) error + func (r *DockerRuntime) StartContainer(ctx context.Context, containerID string) error + func (r *DockerRuntime) StopContainer(ctx context.Context, containerID string) error + func (r *DockerRuntime) SupportsHostNetwork() bool + func (r *DockerRuntime) Type() RuntimeType + func (r *DockerRuntime) WaitContainer(ctx context.Context, containerID string) (int64, error) + type ImageInfo struct + Created time.Time + ID string + Size int64 + Tag string + type Info struct + Created time.Time + ID string + Image string + Name string + Status string + type InspectResponse struct + State *State + type MountConfig struct + ReadOnly bool + Source string + Target string + type NetworkManager interface + CreateNetwork func(ctx context.Context, name string) (string, error) + RemoveNetwork func(ctx context.Context, networkID string) error + type Runtime interface + Attach func(ctx context.Context, id string, opts AttachOptions) error + BuildManager func() BuildManager + Close func() error + ContainerLogs func(ctx context.Context, id string) (io.ReadCloser, error) + ContainerLogsAll func(ctx context.Context, id string) ([]byte, error) + ContainerState func(ctx context.Context, id string) (string, error) + CreateContainer func(ctx context.Context, cfg Config) (string, error) + GetHostAddress func() string + GetPortBindings func(ctx context.Context, id string) (map[int]int, error) + ListContainers func(ctx context.Context) ([]Info, error) + ListImages func(ctx context.Context) ([]ImageInfo, error) + NetworkManager func() NetworkManager + Ping func(ctx context.Context) error + RemoveContainer func(ctx context.Context, id string) error + RemoveImage func(ctx context.Context, id string) error + ResizeTTY func(ctx context.Context, id string, height, width uint) error + ServiceManager func() ServiceManager + SetupFirewall func(ctx context.Context, id string, proxyHost string, proxyPort int) error + SidecarManager func() SidecarManager + StartAttached func(ctx context.Context, id string, opts AttachOptions) error + StartContainer func(ctx context.Context, id string) error + StopContainer func(ctx context.Context, id string) error + SupportsHostNetwork func() bool + Type func() RuntimeType + WaitContainer func(ctx context.Context, id string) (int64, error) + func NewRuntime() (Runtime, error) + func NewRuntimeWithOptions(opts RuntimeOptions) (Runtime, error) + type RuntimeOptions struct + Sandbox bool + func DefaultRuntimeOptions() RuntimeOptions + type RuntimeType string + const RuntimeApple + const RuntimeDocker + type ServiceConfig struct + Env map[string]string + ExtraCmd []string + Image string + Name string + PasswordEnv string + Ports map[string]int + ReadinessCmd string + RunID string + Version string + type ServiceInfo struct + Env map[string]string + Host string + ID string + Name string + PasswordEnv string + Ports map[string]int + ReadinessCmd string + type ServiceManager interface + CheckReady func(ctx context.Context, info ServiceInfo) error + SetNetworkID func(id string) + StartService func(ctx context.Context, cfg ServiceConfig) (ServiceInfo, error) + StopService func(ctx context.Context, info ServiceInfo) error + type SidecarConfig struct + Cmd []string + Env []string + Hostname string + Image string + Labels map[string]string + Mounts []MountConfig + Name string + NetworkID string + Privileged bool + RunID string + type SidecarManager interface + InspectContainer func(ctx context.Context, containerID string) (InspectResponse, error) + StartSidecar func(ctx context.Context, cfg SidecarConfig) (string, error) + type State struct + Running bool