Documentation
¶
Index ¶
- Constants
- func DockerTearDown(dlr DockerLocalRegistry)
- func GetDockerConnection() (*client.Client, error)
- func IsPortAvailable(port string) bool
- func SetupDockerSocket() (DockerLocalRegistry, string, Docker)
- type Docker
- func (d Docker) ContainerKill(containerID string) error
- func (d Docker) ContainerRemove(containerID string) error
- func (d Docker) ContainerStop(containerID string) error
- func (d Docker) GetClient() (*client.Client, error)
- func (d Docker) GetClientRemote(host string, cacertPath string, certPath string, keyPath string) (*client.Client, error)
- func (d Docker) GetClientRemoteFromEnv(host string) (*client.Client, error)
- func (d Docker) GetContainerID(imageName string) (string, error)
- func (d Docker) GetImages(args types.ImageListOptions) ([]types.ImageSummary, error)
- func (d Docker) PullImage(image string) error
- func (d Docker) PurgeContainer(id string, image string) (bool, error)
- func (d Docker) PurgeImages() (bool, error)
- func (d Docker) PushImage(image string, url string, username string, password string) error
- func (d Docker) RemoveDanglingImages() (bool, error)
- func (d Docker) RemoveImagesFiltered(repo string, tag string) (bool, error)
- func (d Docker) RemoveImagesUntagged() (bool, error)
- func (d Docker) TagImage(imageSource string, imageTag string) error
- type DockerLocalRegistry
- func (d DockerLocalRegistry) GetRegistryRunningID() string
- func (d DockerLocalRegistry) IsImagePresent(name string) bool
- func (d DockerLocalRegistry) IsRegistryImagePresent() bool
- func (d DockerLocalRegistry) StartRegistry() string
- func (d DockerLocalRegistry) StopAndRemoveContainer(containerID string) bool
- func (d DockerLocalRegistry) StopRegistry() bool
Constants ¶
View Source
const ( RegistryContainerUrlFromDockerSocket = "tcp://localhost:5000" RegistryImg = "registry" )
Variables ¶
This section is empty.
Functions ¶
func DockerTearDown ¶
func DockerTearDown(dlr DockerLocalRegistry)
func GetDockerConnection ¶
func IsPortAvailable ¶
func SetupDockerSocket ¶
func SetupDockerSocket() (DockerLocalRegistry, string, Docker)
Types ¶
type Docker ¶
func (Docker) ContainerKill ¶
func (Docker) ContainerRemove ¶
func (Docker) ContainerStop ¶
func (Docker) GetClientRemote ¶
func (Docker) GetClientRemoteFromEnv ¶
func (Docker) GetImages ¶
func (d Docker) GetImages(args types.ImageListOptions) ([]types.ImageSummary, error)
func (Docker) PurgeContainer ¶
func (Docker) PurgeImages ¶
Purge images with dangling true
func (Docker) RemoveDanglingImages ¶
RemoveDanglingImages removes the images with the filter dangling true
func (Docker) RemoveImagesFiltered ¶
remove all the images found using the repo name, with or without tag
func (Docker) RemoveImagesUntagged ¶
RemoveImagesUntagged removes the images with tag <none>:<none>
type DockerLocalRegistry ¶
func (DockerLocalRegistry) GetRegistryRunningID ¶
func (d DockerLocalRegistry) GetRegistryRunningID() string
func (DockerLocalRegistry) IsImagePresent ¶
func (d DockerLocalRegistry) IsImagePresent(name string) bool
func (DockerLocalRegistry) IsRegistryImagePresent ¶
func (d DockerLocalRegistry) IsRegistryImagePresent() bool
func (DockerLocalRegistry) StartRegistry ¶
func (d DockerLocalRegistry) StartRegistry() string
func (DockerLocalRegistry) StopAndRemoveContainer ¶
func (d DockerLocalRegistry) StopAndRemoveContainer(containerID string) bool
func (DockerLocalRegistry) StopRegistry ¶
func (d DockerLocalRegistry) StopRegistry() bool
Click to show internal directories.
Click to hide internal directories.