Documentation
¶
Index ¶
- Variables
- type BaseContainerBackend
- type BuildahInspect
- type ContainerBackend
- type DockerBackend
- func (r *DockerBackend) Exec(containerName string, cmds ...string)
- func (r *DockerBackend) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *DockerBackend) GetImageInspect(image string) DockerImageInspect
- func (r *DockerBackend) Pull(image string)
- func (r *DockerBackend) Rm(containerName string)
- func (r *DockerBackend) RunSleepingContainer(containerName, image string)
- type DockerImageInspect
- type DockerInspect
- type NativeBuildahBackend
- func (r *NativeBuildahBackend) Exec(containerName string, cmds ...string)
- func (r *NativeBuildahBackend) ExpectCmdsToSucceed(image string, cmds ...string)
- func (r *NativeBuildahBackend) GetImageInspect(image string) DockerImageInspect
- 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"`
Architecture string `json:"architecture"`
Os string `json:"os"`
Variant string `json:"variant"`
} `json:"Docker"`
}
type ContainerBackend ¶
type ContainerBackend interface {
Pull(image string)
Exec(containerName string, cmds ...string)
Rm(containerName string)
RunSleepingContainer(containerName, image string)
GetImageInspect(image string) DockerImageInspect
ExpectCmdsToSucceed(image string, cmds ...string)
}
func NewContainerBackend ¶
func NewContainerBackend(mode string) (ContainerBackend, error)
func NewDockerBackend ¶
func NewDockerBackend() 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) GetImageInspect ¶ added in v1.2.218
func (r *DockerBackend) GetImageInspect(image string) DockerImageInspect
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 DockerImageInspect ¶ added in v1.2.218
type DockerImageInspect struct {
Config manifest.Schema2Config
Architecture string
Os string
Variant string
}
type DockerInspect ¶ added in v1.2.218
type DockerInspect []DockerImageInspect
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) GetImageInspect ¶ added in v1.2.218
func (r *NativeBuildahBackend) GetImageInspect(image string) DockerImageInspect
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.