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 GetDockerComposeImagesV2(env, yml []byte) ([]string, error)
- func GetImagesFromDockerCompose(env, yml []byte) ([]string, error)
- func NewDockerClient() (*client.Client, error)
- type Client
- func (c Client) BuildImageWithProcessAndOptions(task *task.Task, tar io.ReadCloser, options types.ImageBuildOptions) error
- func (c Client) Close()
- 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) ListAllContainers() ([]types.Container, error)
- func (c Client) ListContainersByName(names []string) ([]types.Container, error)
- func (c Client) NetworkExist(name string) bool
- func (c Client) PullImageWithProcess(task *task.Task, imageName string) error
- func (c Client) PullImageWithProcessAndOptions(task *task.Task, imageName string, options image.PullOptions) error
- func (c Client) PushImageWithProcessAndOptions(task *task.Task, imageName string, options image.PushOptions) error
- type ComposeProject
- type ComposeService
- type Environment
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultDockerNetwork ¶
func CreateDefaultDockerNetwork() error
func GetComposeProject ¶
func GetDockerComposeImages ¶
func NewDockerClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithExist ¶
func (Client) BuildImageWithProcessAndOptions ¶
func (c Client) BuildImageWithProcessAndOptions(task *task.Task, tar io.ReadCloser, options types.ImageBuildOptions) error
func (Client) CreateNetwork ¶
func (Client) DeleteImage ¶
func (Client) ListContainersByName ¶
func (Client) NetworkExist ¶
func (Client) PullImageWithProcess ¶
func (Client) PullImageWithProcessAndOptions ¶
func (Client) PushImageWithProcessAndOptions ¶
type ComposeProject ¶
type ComposeService ¶
type Environment ¶
func (*Environment) UnmarshalYAML ¶
func (e *Environment) UnmarshalYAML(value *yaml.Node) error
type Service ¶
type Service struct { Image string `yaml:"image"` Environment Environment `yaml:"environment"` Volumes []string `json:"volumes"` }
Click to show internal directories.
Click to hide internal directories.