docker

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// KindContainerSuffix provides the string suffix that Kind names all cluster containers with.
	KindContainerSuffix = "-control-plane"
)

Functions

func GetDockerContainerIPNetwork

func GetDockerContainerIPNetwork(containerID, networkName string) (*net.IPNet, error)

GetDockerContainerIPNetwork supports retreiving the *net.IP4Net of a container specified by name (and a specified network name for the case of multiple networks).

func GetKindContainerID

func GetKindContainerID(clusterName string) string

GetKindContainerID produces the docker container ID for the given kind cluster by name.

func InspectDockerContainer

func InspectDockerContainer(containerID string) (*types.ContainerJSON, error)

InspectDockerContainer is a helper function that uses the local docker environment provides the full container spec for a container present in that environment by name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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