Documentation ¶
Index ¶
- Constants
- Variables
- func CreateContainer(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 GetContainerLogsStdoutStderr(ctx context.Context, dClient *client.Client, containerName, tail 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 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 = 30 )
Variables ¶
View Source
var K8sDockerVersions = map[string][]string{
"1.8": {"1.11.x", "1.12.x", "1.13.x", "17.03.x"},
"1.9": {"1.11.x", "1.12.x", "1.13.x", "17.03.x"},
"1.10": {"1.11.x", "1.12.x", "1.13.x", "17.03.x"},
"1.11": {"1.11.x", "1.12.x", "1.13.x", "17.03.x"},
}
Functions ¶
func CreateContainer ¶ added in v0.1.6
func DoRemoveContainer ¶
func DoRunContainer ¶
func GetContainerLogsStdoutStderr ¶ added in v0.1.9
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 StartContainer ¶
func StopContainer ¶
func StopRenameContainer ¶
func UseLocalOrPull ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.