Documentation
¶
Index ¶
- Variables
- type BaseContainerBackend
- type BuildahInspect
- type ContainerBackend
- func NewContainerBackend(buildahMode string) (ContainerBackend, error)
- func NewDockerBackend() ContainerBackend
- func NewDockerWithFuseBuildahBackend(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerBackend
- func NewNativeBuildahBackend(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerBackend
- type DockerBackend
- func (r *DockerBackend) Exec(containerName string, cmds ...string)
- func (r *DockerBackend) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *DockerBackend) GetImageInspectConfig(image string) (config manifest.Schema2Config)
- func (r *DockerBackend) Pull(image string)
- func (r *DockerBackend) Rm(containerName string)
- func (r *DockerBackend) RunSleepingContainer(containerName, image string)
- type DockerWithFuseBuildahBackend
- func (r *DockerWithFuseBuildahBackend) Exec(containerName string, cmds ...string)
- func (r *DockerWithFuseBuildahBackend) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *DockerWithFuseBuildahBackend) GetImageInspectConfig(image string) (config manifest.Schema2Config)
- func (r *DockerWithFuseBuildahBackend) Pull(image string)
- func (r *DockerWithFuseBuildahBackend) Rm(containerName string)
- func (r *DockerWithFuseBuildahBackend) RunSleepingContainer(containerName, image string)
- type NativeBuildahBackend
- func (r *NativeBuildahBackend) Exec(containerName string, cmds ...string)
- func (r *NativeBuildahBackend) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *NativeBuildahBackend) GetImageInspectConfig(image string) (config manifest.Schema2Config)
- func (r *NativeBuildahBackend) Pull(image string)
- func (r *NativeBuildahBackend) Rm(containerName string)
- func (r *NativeBuildahBackend) RunSleepingContainer(containerName, image string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BaseContainerBackend ¶
type BaseContainerBackend struct {
CommonCliArgs []string
Isolation thirdparty.Isolation
}
type BuildahInspect ¶
type BuildahInspect struct {
Docker struct {
Config manifest.Schema2Config `json:"config"`
} `json:"Docker"`
}
type ContainerBackend ¶
type ContainerBackend 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 NewContainerBackend ¶
func NewContainerBackend(buildahMode string) (ContainerBackend, error)
func NewDockerBackend ¶
func NewDockerBackend() ContainerBackend
func NewDockerWithFuseBuildahBackend ¶
func NewDockerWithFuseBuildahBackend(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerBackend
func NewNativeBuildahBackend ¶
func NewNativeBuildahBackend(isolation thirdparty.Isolation, storageDriver buildah.StorageDriver) ContainerBackend
type DockerBackend ¶
type DockerBackend struct {
BaseContainerBackend
}
func (*DockerBackend) Exec ¶
func (r *DockerBackend) Exec(containerName string, cmds ...string)
func (*DockerBackend) ExpectCmdsToSucceed ¶
func (r *DockerBackend) ExpectCmdsToSucceed(image string, cmds ...string)
func (*DockerBackend) GetImageInspectConfig ¶
func (r *DockerBackend) GetImageInspectConfig(image string) (config manifest.Schema2Config)
func (*DockerBackend) Pull ¶
func (r *DockerBackend) Pull(image string)
func (*DockerBackend) Rm ¶
func (r *DockerBackend) Rm(containerName string)
func (*DockerBackend) RunSleepingContainer ¶
func (r *DockerBackend) RunSleepingContainer(containerName, image string)
type DockerWithFuseBuildahBackend ¶
type DockerWithFuseBuildahBackend struct {
BaseContainerBackend
}
func (*DockerWithFuseBuildahBackend) Exec ¶
func (r *DockerWithFuseBuildahBackend) Exec(containerName string, cmds ...string)
func (*DockerWithFuseBuildahBackend) ExpectCmdsToSucceed ¶
func (r *DockerWithFuseBuildahBackend) ExpectCmdsToSucceed(image string, cmds ...string)
func (*DockerWithFuseBuildahBackend) GetImageInspectConfig ¶
func (r *DockerWithFuseBuildahBackend) GetImageInspectConfig(image string) (config manifest.Schema2Config)
func (*DockerWithFuseBuildahBackend) Pull ¶
func (r *DockerWithFuseBuildahBackend) Pull(image string)
func (*DockerWithFuseBuildahBackend) Rm ¶
func (r *DockerWithFuseBuildahBackend) Rm(containerName string)
func (*DockerWithFuseBuildahBackend) RunSleepingContainer ¶
func (r *DockerWithFuseBuildahBackend) RunSleepingContainer(containerName, image string)
type NativeBuildahBackend ¶
type NativeBuildahBackend struct {
BaseContainerBackend
}
func (*NativeBuildahBackend) Exec ¶
func (r *NativeBuildahBackend) Exec(containerName string, cmds ...string)
func (*NativeBuildahBackend) ExpectCmdsToSucceed ¶
func (r *NativeBuildahBackend) ExpectCmdsToSucceed(image string, cmds ...string)
func (*NativeBuildahBackend) GetImageInspectConfig ¶
func (r *NativeBuildahBackend) GetImageInspectConfig(image string) (config manifest.Schema2Config)
func (*NativeBuildahBackend) Pull ¶
func (r *NativeBuildahBackend) Pull(image string)
func (*NativeBuildahBackend) Rm ¶
func (r *NativeBuildahBackend) Rm(containerName string)
func (*NativeBuildahBackend) RunSleepingContainer ¶
func (r *NativeBuildahBackend) RunSleepingContainer(containerName, image string)
Click to show internal directories.
Click to hide internal directories.