docker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerListFunc

type ContainerListFunc func(forAll bool, forStopped bool, nameFilter string) (err error)

ContainerListFunc is the function type which is used in recursive actions over queried container list.

type ExecResult

type ExecResult struct {
	ExitCode int
	// contains filtered or unexported fields
}

ExecResult represents a result returned from Exec()

func Exec

func Exec(ctx context.Context, cli client.APIClient, id string, cmd []string) (ExecResult, error)

type Provider

type Provider struct {
	Hostname string
	// contains filtered or unexported fields
}

func (*Provider) ContainerList

func (p *Provider) ContainerList(forAll bool, withIds bool, nameFilter string) (err error)

ContainerList lists containers with specified filters.

func (*Provider) ContainerRun

func (p *Provider) ContainerRun(imageName string, persistent bool, command []string) (err error)

func (*Provider) ContainerStop

func (p *Provider) ContainerStop(conNameFilter string) error

func (*Provider) ImageList

func (p *Provider) ImageList(withIds bool, nameFilter string) error

Jump to

Keyboard shortcuts

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