contruntime

package
v1.2.72 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 12 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 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)

Jump to

Keyboard shortcuts

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