Documentation ¶
Index ¶
- Variables
- type BaseContainerRuntime
- type BuildahInspect
- type ContainerRuntime
- func NewContainerRuntime(buildahMode string) (ContainerRuntime, error)
- func NewDockerRuntime() ContainerRuntime
- func NewDockerWithFuseBuildahRuntime(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerRuntime
- func NewNativeBuildahRuntime(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerRuntime
- type DockerRuntime
- func (r *DockerRuntime) Exec(containerName string, cmds ...string)
- func (r *DockerRuntime) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *DockerRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)
- func (r *DockerRuntime) Pull(image string)
- func (r *DockerRuntime) Rm(containerName string)
- func (r *DockerRuntime) RunSleepingContainer(containerName, image string)
- type DockerWithFuseBuildahRuntime
- func (r *DockerWithFuseBuildahRuntime) Exec(containerName string, cmds ...string)
- func (r *DockerWithFuseBuildahRuntime) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *DockerWithFuseBuildahRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)
- func (r *DockerWithFuseBuildahRuntime) Pull(image string)
- func (r *DockerWithFuseBuildahRuntime) Rm(containerName string)
- func (r *DockerWithFuseBuildahRuntime) RunSleepingContainer(containerName, image string)
- type NativeBuildahRuntime
- func (r *NativeBuildahRuntime) Exec(containerName string, cmds ...string)
- func (r *NativeBuildahRuntime) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *NativeBuildahRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)
- func (r *NativeBuildahRuntime) Pull(image string)
- func (r *NativeBuildahRuntime) Rm(containerName string)
- func (r *NativeBuildahRuntime) RunSleepingContainer(containerName, image string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BaseContainerRuntime ¶
type BaseContainerRuntime struct { CommonCliArgs []string Isolation thirdparty.Isolation }
type BuildahInspect ¶
type BuildahInspect struct { Docker struct { Config manifest.Schema2Config `json:"config"` } `json:"Docker"` }
type ContainerRuntime ¶
type ContainerRuntime interface { Pull(image string) Exec(containerName string, cmds ...string) Rm(containerName string) RunSleepingContainer(containerName, image string) GetImageInspectConfig(image string) (config manifest.Schema2Config) ExpectCmdsToSucceed(image string, cmds ...string) }
func NewContainerRuntime ¶
func NewContainerRuntime(buildahMode string) (ContainerRuntime, error)
func NewDockerRuntime ¶
func NewDockerRuntime() ContainerRuntime
func NewDockerWithFuseBuildahRuntime ¶
func NewDockerWithFuseBuildahRuntime(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerRuntime
func NewNativeBuildahRuntime ¶ added in v1.2.48
func NewNativeBuildahRuntime(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerRuntime
type DockerRuntime ¶
type DockerRuntime struct {
BaseContainerRuntime
}
func (*DockerRuntime) Exec ¶
func (r *DockerRuntime) Exec(containerName string, cmds ...string)
func (*DockerRuntime) ExpectCmdsToSucceed ¶
func (r *DockerRuntime) ExpectCmdsToSucceed(image string, cmds ...string)
func (*DockerRuntime) GetImageInspectConfig ¶
func (r *DockerRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)
func (*DockerRuntime) Pull ¶
func (r *DockerRuntime) Pull(image string)
func (*DockerRuntime) Rm ¶
func (r *DockerRuntime) Rm(containerName string)
func (*DockerRuntime) RunSleepingContainer ¶
func (r *DockerRuntime) RunSleepingContainer(containerName, image string)
type DockerWithFuseBuildahRuntime ¶
type DockerWithFuseBuildahRuntime struct {
BaseContainerRuntime
}
func (*DockerWithFuseBuildahRuntime) Exec ¶
func (r *DockerWithFuseBuildahRuntime) Exec(containerName string, cmds ...string)
func (*DockerWithFuseBuildahRuntime) ExpectCmdsToSucceed ¶
func (r *DockerWithFuseBuildahRuntime) ExpectCmdsToSucceed(image string, cmds ...string)
func (*DockerWithFuseBuildahRuntime) GetImageInspectConfig ¶
func (r *DockerWithFuseBuildahRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)
func (*DockerWithFuseBuildahRuntime) Pull ¶
func (r *DockerWithFuseBuildahRuntime) Pull(image string)
func (*DockerWithFuseBuildahRuntime) Rm ¶
func (r *DockerWithFuseBuildahRuntime) Rm(containerName string)
func (*DockerWithFuseBuildahRuntime) RunSleepingContainer ¶
func (r *DockerWithFuseBuildahRuntime) RunSleepingContainer(containerName, image string)
type NativeBuildahRuntime ¶ added in v1.2.48
type NativeBuildahRuntime struct {
BaseContainerRuntime
}
func (*NativeBuildahRuntime) Exec ¶ added in v1.2.48
func (r *NativeBuildahRuntime) Exec(containerName string, cmds ...string)
func (*NativeBuildahRuntime) ExpectCmdsToSucceed ¶ added in v1.2.48
func (r *NativeBuildahRuntime) ExpectCmdsToSucceed(image string, cmds ...string)
func (*NativeBuildahRuntime) GetImageInspectConfig ¶ added in v1.2.48
func (r *NativeBuildahRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)
func (*NativeBuildahRuntime) Pull ¶ added in v1.2.48
func (r *NativeBuildahRuntime) Pull(image string)
func (*NativeBuildahRuntime) Rm ¶ added in v1.2.48
func (r *NativeBuildahRuntime) Rm(containerName string)
func (*NativeBuildahRuntime) RunSleepingContainer ¶ added in v1.2.48
func (r *NativeBuildahRuntime) RunSleepingContainer(containerName, image string)
Click to show internal directories.
Click to hide internal directories.