contback

package
v1.2.209 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRuntimeUnavailable = errors.New("requested runtime unavailable")

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 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 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL