Documentation ¶
Index ¶
- Constants
- func CreateContainer(ctx context.Context, dClient *client.Client, hostname string, ...) (container.ContainerCreateCreatedBody, error)
- func DoCopyToContainer(ctx context.Context, dClient *client.Client, ...) error
- func DoRemoveContainer(ctx context.Context, dClient *client.Client, containerName, hostname string) error
- func DoRestartContainer(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 DoRunOnetimeContainer(ctx context.Context, dClient *client.Client, imageCfg *container.Config, ...) error
- func DoesContainerExist(ctx context.Context, dClient *client.Client, hostname string, ...) (bool, error)
- func FindContainer(ctx context.Context, dClient *client.Client, hostname string, ...) (*types.Container, error)
- func GetContainerLogsStdoutStderr(ctx context.Context, dClient *client.Client, containerName, tail string, ...) (string, string, error)
- func GetContainerOutput(ctx context.Context, dClient *client.Client, containerName, hostname string, ...) (int64, string, string, error)
- func GetImageRegistryConfig(image string, prsMap map[string]v3.PrivateRegistry) (string, string, error)
- func GetKubeletDockerConfig(prsMap map[string]v3.PrivateRegistry) (string, 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, follow bool, ...) (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 RestartContainer(ctx context.Context, dClient *client.Client, hostname, containerName 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, hostname string, ...) (int64, error)
Constants ¶
View Source
const ( DockerRegistryURL = "docker.io" // RestartTimeout in seconds RestartTimeout = 5 // StopTimeout in seconds StopTimeout = 5 // RetryCount is the amount of retries for Docker operations RetryCount = 3 // WaitTimeout in seconds WaitTimeout = 300 // WaitTimeoutContextKey name WaitTimeoutContextKey = "wait_timeout" )
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶ added in v0.1.6
func DoCopyToContainer ¶ added in v1.1.5
func DoRemoveContainer ¶
func DoRestartContainer ¶ added in v0.1.18
func DoRunContainer ¶
func DoRunOnetimeContainer ¶ added in v0.2.3
func DoesContainerExist ¶ added in v1.3.13
func FindContainer ¶ added in v1.3.13
func GetContainerLogsStdoutStderr ¶ added in v0.1.9
func GetContainerOutput ¶ added in v0.2.0
func GetImageRegistryConfig ¶ added in v0.1.5
func GetKubeletDockerConfig ¶ added in v0.1.10
func GetKubeletDockerConfig(prsMap map[string]v3.PrivateRegistry) (string, error)
func InspectContainer ¶
func IsContainerRunning ¶
func IsContainerUpgradable ¶
func ReadContainerLogs ¶
func ReadFileFromContainer ¶
func RemoveContainer ¶
func RenameContainer ¶
func RestartContainer ¶ added in v0.1.18
func StartContainer ¶
func StopContainer ¶
func StopRenameContainer ¶
func UseLocalOrPull ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.