Documentation ¶
Index ¶
- Constants
- Variables
- func CreateContiner(ctx context.Context, dClient *client.Client, hostname string, ...) (container.ContainerCreateCreatedBody, error)
- func DoRemoveContainer(ctx context.Context, dClient *client.Client, containerName, hostname string) error
- func DoRollingUpdateContainer(ctx context.Context, dClient *client.Client, imageCfg *container.Config, ...) error
- func DoRunContainer(ctx context.Context, dClient *client.Client, imageCfg *container.Config, ...) error
- func InspectContainer(ctx context.Context, dClient *client.Client, hostname string, ...) (types.ContainerJSON, error)
- func IsContainerRunning(ctx context.Context, dClient *client.Client, hostname string, ...) (bool, error)
- func IsContainerUpgradable(ctx context.Context, dClient *client.Client, imageCfg *container.Config, ...) (bool, error)
- func IsSupportedDockerVersion(info types.Info, K8sVersion string) (bool, error)
- func ReadContainerLogs(ctx context.Context, dClient *client.Client, containerName string) (io.ReadCloser, error)
- func ReadFileFromContainer(ctx context.Context, dClient *client.Client, ...) (string, error)
- func RemoveContainer(ctx context.Context, dClient *client.Client, hostname string, ...) error
- func RenameContainer(ctx context.Context, dClient *client.Client, hostname string, ...) error
- func StartContainer(ctx context.Context, dClient *client.Client, hostname string, ...) error
- func StopContainer(ctx context.Context, dClient *client.Client, hostname string, ...) error
- func StopRenameContainer(ctx context.Context, dClient *client.Client, hostname string, ...) error
- func UseLocalOrPull(ctx context.Context, dClient *client.Client, hostname string, ...) error
- func WaitForContainer(ctx context.Context, dClient *client.Client, containerName string) error
Constants ¶
View Source
const (
DockerRegistryURL = "docker.io"
)
Variables ¶
View Source
var K8sDockerVersions = map[string][]string{
"1.8": {"1.12.6", "1.13.1", "17.03.2"},
}
Functions ¶
func CreateContiner ¶
func DoRemoveContainer ¶
func DoRunContainer ¶
func InspectContainer ¶
func IsContainerRunning ¶
func IsContainerUpgradable ¶
func ReadContainerLogs ¶
func ReadFileFromContainer ¶
func RemoveContainer ¶
func RenameContainer ¶
func StartContainer ¶
func StopContainer ¶
func StopRenameContainer ¶
func UseLocalOrPull ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.