container

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	// Start will start the container
	Start() error
	// Stop will stop the container
	Stop() error
	// ID will return the container ID
	ID() string

	// RunCommand will run a command in the container and return the output
	RunCommand(cmd string) (string, error)

	// Export will export the container filesystem to a tarball
	Export() (*tar.Reader, error)
}

func New

func New(id string, name string, cli *client.Client, ctx context.Context) (Container, error)

Jump to

Keyboard shortcuts

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