docker

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultDockerNetwork added in v1.0.3

func CreateDefaultDockerNetwork() error

func GetComposeProject added in v1.1.0

func GetComposeProject(projectName, workDir string, yml []byte, env []byte, skipNormalization bool) (*types.Project, error)

func NewDockerClient

func NewDockerClient() (*client.Client, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (Client, error)

func (Client) CheckImageExist added in v1.5.1

func (c Client) CheckImageExist(imageName string) (bool, error)

func (Client) CreateNetwork

func (c Client) CreateNetwork(name string) error

func (Client) DeleteImage added in v1.1.0

func (c Client) DeleteImage(imageID string) error

func (Client) GetImageIDByName added in v1.1.0

func (c Client) GetImageIDByName(imageName string) (string, error)

func (Client) InspectContainer added in v1.7.0

func (c Client) InspectContainer(containerID string) (types.ContainerJSON, error)

func (Client) ListAllContainers

func (c Client) ListAllContainers() ([]types.Container, error)

func (Client) ListContainersByName

func (c Client) ListContainersByName(names []string) ([]types.Container, error)

func (Client) NetworkExist

func (c Client) NetworkExist(name string) bool

func (Client) PullImage added in v1.5.1

func (c Client) PullImage(imageName string, force bool) error

type ComposeService added in v1.1.0

type ComposeService struct {
	api.Service
	// contains filtered or unexported fields
}

func (*ComposeService) ComposeBuild added in v1.1.0

func (s *ComposeService) ComposeBuild() error

func (*ComposeService) ComposeCreate added in v1.1.0

func (s *ComposeService) ComposeCreate() error

func (*ComposeService) ComposeDown added in v1.1.0

func (s *ComposeService) ComposeDown() error

func (*ComposeService) ComposePull added in v1.4.0

func (s *ComposeService) ComposePull() error

func (*ComposeService) ComposeRestart added in v1.1.0

func (s *ComposeService) ComposeRestart() error

func (*ComposeService) ComposeStart added in v1.1.0

func (s *ComposeService) ComposeStart() error

func (*ComposeService) ComposeStop added in v1.1.0

func (s *ComposeService) ComposeStop() error

func (*ComposeService) ComposeUp added in v1.1.0

func (s *ComposeService) ComposeUp() error

func (*ComposeService) SetProject added in v1.1.0

func (s *ComposeService) SetProject(project *types.Project)

Jump to

Keyboard shortcuts

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