container

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFrom

func CopyFrom(engine Engine, containerID string, sourcePath string, destPath string, handles ...ctxpkg.Handle) error

func CopyTo

func CopyTo(engine Engine, containerID string, sourcePath string, destPath string, handles ...ctxpkg.Handle) error

func Exec

func Exec(engine Engine, containerID string, cmd []string, handles ...ctxpkg.Handle) (string, error)

func Logs

func Logs(engine Engine, containerID string, tail ...int64) (string, error)

func Pull

func Pull(engine Engine, ref string, handles ...ctxpkg.Handle) (string, error)

func PullAuth

func PullAuth(engine Engine, ref string, auth Auth) (string, error)

func Run

func Run(engine Engine, img string, cmd []string) (string, error)

func Wait

func Wait(engine Engine, containerID string, timeoutSeconds int64) (int64, error)

func WaitCtx

func WaitCtx(engine Engine, h ctxpkg.Handle, containerID string) (int64, error)

Types

type Auth

type Auth struct {
	Username      string
	Password      string
	ServerAddress string
}

func LoginFromConfig

func LoginFromConfig(server string) (Auth, error)

type BuildOutput

type BuildOutput struct {
	ImageID string
	Output  string
}

func Build

func Build(engine Engine, path string, tag string) (BuildOutput, error)

type ContainerEvent

type ContainerEvent struct {
	ID       string
	Resource string
	Action   string
	Actor    string
	Time     string
}

func Events

func Events(engine Engine, timeoutSeconds int64) ([]ContainerEvent, error)

func EventsCtx

func EventsCtx(engine Engine, h ctxpkg.Handle) ([]ContainerEvent, error)

type Engine

type Engine struct {
	Cli *client.Client
}

func Connect

func Connect() (Engine, error)

func ConnectRemote

func ConnectRemote(host string) (Engine, error)

Jump to

Keyboard shortcuts

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