Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerEngine ¶
type ContainerEngine interface { Type() string Build(dockerfile, path, imageTag string, buildArgs map[string]string, excludes []string, buildLogger io.Writer) error ListImages(stackName, containerName string) ([]Image, error) Inspect(imageName string) (types.ImageInspect, error) ImagePull(rawImage string, opts types.ImagePullOptions) error ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, name string) (string, error) Start(nameOrID string) error Stop(nameOrID string, timeout *time.Duration) error ContainerWait(containerID string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error) RemoveByLabel(labels map[string]string) error ContainerLogs(containerID string, opts types.ContainerLogsOptions) (io.ReadCloser, error) Logger(stackPath string) ContainerLogger Version() string }
var DiscoveredEngine ContainerEngine
func Discover ¶
func Discover() (ContainerEngine, error)
type ContainerEngineArgs ¶ added in v1.32.0
type ContainerLogger ¶
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶
type ErrorLine struct { Error string `json:"error"` ErrorDetail ErrorDetail `json:"errorDetail"` }
Click to show internal directories.
Click to hide internal directories.