Documentation ¶
Index ¶
- func CreateDefaultDockerNetwork() error
- func GetComposeProject(projectName, workDir string, yml []byte, env []byte, skipNormalization bool) (*types.Project, error)
- func GetDockerComposeImages(projectName string, env, yml []byte) ([]string, error)
- func NewDockerClient() (*client.Client, error)
- func UpComposeProject(project *types.Project) 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) ListContainersByName(names []string) ([]types.Container, error)
- func (c Client) NetworkExist(name string) bool
- func (c Client) PullImage(imageName string, force bool) error
- type ComposeProject
- type ComposeService
- type Service
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 GetDockerComposeImages ¶ added in v1.9.0
func NewDockerClient ¶
func UpComposeProject ¶
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 ComposeProject ¶ added in v1.9.0
type ComposeService ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.