engine

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	ID      string
	Name    string
	Image   string
	State   string
	Status  string
	IP      string
	Ports   string
	Created time.Time
	Command string
}

type Engine

type Engine struct {
	Binary string
}

func New

func New(binary string) *Engine

func (*Engine) ContainerExec

func (e *Engine) ContainerExec(ctx context.Context, nameOrID string, args []string, interactive bool) error

func (*Engine) ContainerInspect

func (e *Engine) ContainerInspect(ctx context.Context, nameOrID string) ([]byte, error)

func (*Engine) ContainerList

func (e *Engine) ContainerList(ctx context.Context, all bool) ([]ContainerInfo, error)

func (*Engine) ContainerLogs

func (e *Engine) ContainerLogs(ctx context.Context, nameOrID string, follow bool) error

func (*Engine) ContainerRemove

func (e *Engine) ContainerRemove(ctx context.Context, nameOrID string, force bool) error

func (*Engine) ContainerRun

func (e *Engine) ContainerRun(ctx context.Context, args []string, interactive bool) error

func (*Engine) ContainerStart

func (e *Engine) ContainerStart(ctx context.Context, nameOrID string) error

func (*Engine) ContainerStop

func (e *Engine) ContainerStop(ctx context.Context, nameOrID string) error

func (*Engine) Exec

func (e *Engine) Exec(ctx context.Context, args ...string) ([]byte, []byte, error)

func (*Engine) ExecInteractive

func (e *Engine) ExecInteractive(ctx context.Context, args ...string) error

func (*Engine) ExecStream

func (e *Engine) ExecStream(ctx context.Context, args ...string) (io.ReadCloser, error)

func (*Engine) ImageBuild

func (e *Engine) ImageBuild(ctx context.Context, args []string) error

func (*Engine) ImageList

func (e *Engine) ImageList(ctx context.Context) ([]ImageInfo, error)

func (*Engine) ImagePull

func (e *Engine) ImagePull(ctx context.Context, image string) error

func (*Engine) ImagePush

func (e *Engine) ImagePush(ctx context.Context, image string) error

func (*Engine) ImageRemove

func (e *Engine) ImageRemove(ctx context.Context, image string) error

func (*Engine) NetworkConnect

func (e *Engine) NetworkConnect(ctx context.Context, network, container string) error

func (*Engine) NetworkCreate

func (e *Engine) NetworkCreate(ctx context.Context, name string) error

func (*Engine) NetworkDisconnect

func (e *Engine) NetworkDisconnect(ctx context.Context, network, container string) error

func (*Engine) NetworkInspect

func (e *Engine) NetworkInspect(ctx context.Context, name string) ([]byte, error)

func (*Engine) NetworkList

func (e *Engine) NetworkList(ctx context.Context) ([]NetworkInfo, error)

func (*Engine) NetworkRemove

func (e *Engine) NetworkRemove(ctx context.Context, name string) error

func (*Engine) Validate

func (e *Engine) Validate() error

func (*Engine) VolumeCreate

func (e *Engine) VolumeCreate(ctx context.Context, name string) error

func (*Engine) VolumeInspect

func (e *Engine) VolumeInspect(ctx context.Context, name string) ([]byte, error)

func (*Engine) VolumeList

func (e *Engine) VolumeList(ctx context.Context) ([]VolumeInfo, error)

func (*Engine) VolumeRemove

func (e *Engine) VolumeRemove(ctx context.Context, name string) error

type ImageInfo

type ImageInfo struct {
	ID      string
	Name    string
	Tag     string
	Digest  string
	Size    string
	Created time.Time
	Arch    string
}

type InspectData

type InspectData struct {
	Raw []byte // raw JSON from `container inspect`
}

type NetworkInfo

type NetworkInfo struct {
	ID     string
	Name   string
	Driver string
	Scope  string
}

type VolumeInfo

type VolumeInfo struct {
	Name       string
	Driver     string
	Mountpoint string
	Created    time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL