docker

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDockerConfig

func LoadDockerConfig() (*configfile.ConfigFile, error)

Types

type Client

type Client struct {
	dockerclient.CommonAPIClient
}

Client is a client for docker

func NewClient

func NewClient(ctx context.Context, log log.Logger) (*Client, error)

NewClient creates a new docker client

type DockerHelper

type DockerHelper struct {
	DockerCommand string
}

func (*DockerHelper) FindContainer

func (r *DockerHelper) FindContainer(labels []string) ([]string, error)

func (*DockerHelper) FindDevContainer

func (r *DockerHelper) FindDevContainer(labels []string) (*config.ContainerDetails, error)

func (*DockerHelper) GPUSupportEnabled

func (r *DockerHelper) GPUSupportEnabled() (bool, error)

func (*DockerHelper) Inspect

func (r *DockerHelper) Inspect(ids []string, inspectType string, obj interface{}) error

func (*DockerHelper) InspectContainers

func (r *DockerHelper) InspectContainers(ids []string) ([]config.ContainerDetails, error)

func (*DockerHelper) InspectImage

func (r *DockerHelper) InspectImage(imageName string, tryRemote bool) (*config.ImageDetails, error)

func (*DockerHelper) Remove

func (r *DockerHelper) Remove(ctx context.Context, id string) error

func (*DockerHelper) Run

func (r *DockerHelper) Run(ctx context.Context, args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

func (*DockerHelper) RunWithDir

func (r *DockerHelper) RunWithDir(ctx context.Context, dir string, args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

func (*DockerHelper) StartContainer

func (r *DockerHelper) StartContainer(ctx context.Context, id string, labels []string) error

func (*DockerHelper) Stop

func (r *DockerHelper) Stop(ctx context.Context, id string) error

Jump to

Keyboard shortcuts

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