docker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: GPL-3.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultDockerNetwork

func CreateDefaultDockerNetwork() error

func GetComposeProject

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) CreateNetwork

func (c Client) CreateNetwork(name string) error

func (Client) DeleteImage

func (c Client) DeleteImage(imageID string) error

func (Client) GetImageIDByName

func (c Client) GetImageIDByName(imageName string) (string, 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

type ComposeService

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

func NewComposeService

func NewComposeService(ops ...command.DockerCliOption) (*ComposeService, error)

func (*ComposeService) ComposeBuild

func (s *ComposeService) ComposeBuild() error

func (*ComposeService) ComposeCreate

func (s *ComposeService) ComposeCreate() error

func (*ComposeService) ComposeDown

func (s *ComposeService) ComposeDown() error

func (*ComposeService) ComposeRestart

func (s *ComposeService) ComposeRestart() error

func (*ComposeService) ComposeStart

func (s *ComposeService) ComposeStart() error

func (*ComposeService) ComposeStop

func (s *ComposeService) ComposeStop() error

func (*ComposeService) ComposeUp

func (s *ComposeService) ComposeUp() error

func (*ComposeService) SetProject

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