Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DOCKER binary name of docker DOCKER = "docker" // PODMAN binary name of podman PODMAN = "podman" // Linux name in runtime.GOOS LINUX = "linux" // MACOS name in runtime.GOOS MACOS = "darwin" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigDirectory ¶
GetConfigDirectory returns pull secret file saving path Defaults to ~/.kube/ocm-pull-secret
Types ¶
type ContainerEngine ¶
type ContainerEngine interface {
PullImage(imageName string) error
PutFileToMount(filename string, content []byte) error
StopContainer(containerName string) error
RunConsoleContainer(containerName string, port string, consoleArgs []string, envVars []EnvVar) error
RunMonitorPlugin(containerName string, consoleContainerName string, nginxConf string, pluginArgs []string, envVars []EnvVar) error
ContainerIsExist(containerName string) (bool, error)
}
func NewEngine ¶
func NewEngine(osName, containerEngine string) (ContainerEngine, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.