Documentation
¶
Index ¶
- Variables
- func CreateDefaultDockerNetwork() error
- func GetComposeProject(projectName, workDir string, yml []byte, env []byte, skipNormalization bool) (*types.Project, error)
- func GetImagesFromDockerCompose(env, yml []byte) ([]string, error)
- func NewDockerClient() (*client.Client, error)
- func PullImage(imageName string) error
- func SimplifyPorts(ports []containertypes.Port) []string
- 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) ImageExists(imageID string) (bool, error)
- func (c Client) ListAllContainers() ([]container.Summary, error)
- func (c Client) ListContainersByName(names []string) ([]container.Summary, 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 Environment
- type PortRange
- type PortRangeItem
- type Service
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateDefaultDockerNetwork ¶
func CreateDefaultDockerNetwork() error
func GetComposeProject ¶
func NewDockerClient ¶
func SimplifyPorts ¶
func SimplifyPorts(ports []containertypes.Port) []string
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 Environment ¶
func (*Environment) UnmarshalYAML ¶
func (e *Environment) UnmarshalYAML(value *yaml.Node) error
type PortRange ¶
type PortRange struct {
Start PortRangeItem
End PortRangeItem
Items []PortRangeItem
}
func MergePortRanges ¶
func MergePortRanges(items []PortRangeItem) []PortRange
type PortRangeItem ¶
type PortRangeItem struct {
Key string
PublicPort uint16
PrivatePort uint16
HasPrivatePort bool
Position int
}
PortRangeItem describes the dimensions shared by Docker port range displays. Key contains dimensions that must stay equal (for example address, protocol, and an optional protection policy identity).
Click to show internal directories.
Click to hide internal directories.