Documentation ¶
Index ¶
- func CreateDefaultDockerNetwork() error
- func GetComposeProject(projectName, workDir string, yml []byte, env []byte, skipNormalization bool) (*types.Project, error)
- func NewDockerClient() (*client.Client, error)
- type Client
- func (c Client) CheckImageExist(imageName string) (bool, error)
- func (c Client) CreateNetwork(name string) error
- func (c Client) DeleteImage(imageID string) error
- func (c Client) GetImageIDByName(imageName string) (string, error)
- func (c Client) InspectContainer(containerID string) (types.ContainerJSON, error)
- func (c Client) ListAllContainers() ([]types.Container, error)
- func (c Client) ListContainersByName(names []string) ([]types.Container, error)
- func (c Client) NetworkExist(name string) bool
- func (c Client) PullImage(imageName string, force bool) error
- type ComposeService
- func (s *ComposeService) ComposeBuild() error
- func (s *ComposeService) ComposeCreate() error
- func (s *ComposeService) ComposeDown() error
- func (s *ComposeService) ComposePull() error
- func (s *ComposeService) ComposeRestart() error
- func (s *ComposeService) ComposeStart() error
- func (s *ComposeService) ComposeStop() error
- func (s *ComposeService) ComposeUp() error
- func (s *ComposeService) SetProject(project *types.Project)
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 NewDockerClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CheckImageExist ¶ added in v1.5.1
func (Client) CreateNetwork ¶
func (Client) DeleteImage ¶ added in v1.1.0
func (Client) GetImageIDByName ¶ added in v1.1.0
func (Client) InspectContainer ¶ added in v1.7.0
func (c Client) InspectContainer(containerID string) (types.ContainerJSON, error)
func (Client) ListContainersByName ¶
func (Client) NetworkExist ¶
type ComposeService ¶ added in v1.1.0
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)
Click to show internal directories.
Click to hide internal directories.