Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerEngine ¶
type ContainerEngine interface { Type() string Build(dockerfile, path, imageTag string, buildArgs map[string]string, excludes []string) error ListImages(stackName, containerName string) ([]Image, error) ImagePull(rawImage string) error NetworkCreate(name string) 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) CopyFromArchive(nameOrID string, path string, reader io.Reader) error ContainersListByLabel(match map[string]string) ([]types.Container, error) RemoveByLabel(name, value string) error ContainerExec(containerName string, cmd []string, workingDir string) error ContainerLogs(containerID string, opts types.ContainerLogsOptions) (io.ReadCloser, error) Logger(stackPath string) ContainerLogger }
var DiscoveredEngine ContainerEngine
func Discover ¶
func Discover() (ContainerEngine, error)
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.