contback

package
v1.2.340 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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