docker

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndStartContainer

func CreateAndStartContainer(containerConfig manifest.ContainerConfig) (string, error)

func CreateNetwork

func CreateNetwork(name string, labels map[string]string) (string, error)

func GetImagesByName added in v1.1.0

func GetImagesByName(images []string) ([]types.ImageSummary, error)

func ImageExists

func ImageExists(imageName string) (bool, error)

Check if the image exists in the local context Return an error only if something went wrong, if the image is not found the error is nil

func ImageRemove

func ImageRemove(imageID string) error

func InspectContainer added in v1.1.0

func InspectContainer(containerID string) (types.ContainerJSON, error)

func NetworkPrune

func NetworkPrune(manifestUniqueID model.ManifestUniqueID) error

func PullImage

func PullImage(authConfig types.AuthConfig, imageName string) error

func ReadAllContainers

func ReadAllContainers() ([]types.Container, error)

func ReadContainerLogs added in v1.1.0

func ReadContainerLogs(containerID string, since string, until string) ([]string, error)

func ReadEdgeAppContainers added in v1.1.1

func ReadEdgeAppContainers(manifestUniqueID model.ManifestUniqueID) ([]types.Container, error)

func ReadEdgeAppNetworks added in v1.1.1

func ReadEdgeAppNetworks(manifestUniqueID model.ManifestUniqueID) ([]types.NetworkResource, error)

func SetupDockerClient

func SetupDockerClient()

func StartContainer

func StartContainer(containerID string) error

func StopAndRemoveContainer

func StopAndRemoveContainer(containerID string) error

func StopContainer

func StopContainer(containerID string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL