docker

package
v1.10.5-lts Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 18 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 GetDockerComposeImages added in v1.9.0

func GetDockerComposeImages(projectName string, env, yml []byte) ([]string, error)

func NewDockerClient

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

func UpComposeProject

func UpComposeProject(project *types.Project) 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) 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 ComposeProject added in v1.9.0

type ComposeProject struct {
	Version  string
	Services map[string]Service `yaml:"services"`
}

type ComposeService added in v1.1.0

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

type Service added in v1.9.0

type Service struct {
	Image string `yaml:"image"`
}

Jump to

Keyboard shortcuts

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