Documentation
¶
Index ¶
- func BuildImage(ctx context.Context, dockerClient *client.Client, image Image, ...) error
- func BuildImageAsync(ctx context.Context, dockerClient *client.Client, image Image, ...)
- func CreateNetwork(ctx context.Context, cli *client.Client, network NetworkConfig) error
- func CreateProtocolEnv(env ProtocolEnv) ([]string, error)
- func ListContainers(ctx context.Context, cli *client.Client, label string) ([]types.Container, error)
- func RemoveContainers(ctx context.Context, cli *client.Client, label string) error
- func RemoveNetworks(ctx context.Context, cli *client.Client, label string) error
- func StartContainer(ctx context.Context, cli *client.Client, config ContainerConfig) (string, error)
- func StopContainers(ctx context.Context, cli *client.Client, label string) ([]types.Container, error)
- type ContainerConfig
- type Image
- type NetworkConfig
- type OutputOptions
- type ProtocolEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
func BuildImageAsync ¶
func CreateNetwork ¶
func CreateProtocolEnv ¶
func CreateProtocolEnv(env ProtocolEnv) ([]string, error)
func ListContainers ¶
func RemoveContainers ¶
func RemoveNetworks ¶
func StartContainer ¶
Types ¶
type ContainerConfig ¶
type Image ¶
type Image struct { Path string Tags []string Labels map[string]string // BuildArgs needs to be a *string to differentiate between "" as value and no value BuildArgs map[string]*string }
func (Image) TagsLastPartWithoutVersion ¶
func (Image) TagsWithoutVersion ¶
type NetworkConfig ¶
type OutputOptions ¶
Click to show internal directories.
Click to hide internal directories.