contruntime

package
v1.2.39 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type BaseContainerRuntime

type BaseContainerRuntime struct{}

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(name string) (ContainerRuntime, error)

func NewDockerRuntime

func NewDockerRuntime() ContainerRuntime

func NewDockerWithFuseBuildahRuntime

func NewDockerWithFuseBuildahRuntime() ContainerRuntime

func NewNativeRootlessBuildahRuntime

func NewNativeRootlessBuildahRuntime() 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 NativeRootlessBuildahRuntime

type NativeRootlessBuildahRuntime struct {
	BaseContainerRuntime
}

func (*NativeRootlessBuildahRuntime) Exec

func (r *NativeRootlessBuildahRuntime) Exec(containerName string, cmds ...string)

func (*NativeRootlessBuildahRuntime) ExpectCmdsToSucceed

func (r *NativeRootlessBuildahRuntime) ExpectCmdsToSucceed(image string, cmds ...string)

func (*NativeRootlessBuildahRuntime) GetImageInspectConfig

func (r *NativeRootlessBuildahRuntime) GetImageInspectConfig(image string) (config manifest.Schema2Config)

func (*NativeRootlessBuildahRuntime) Pull

func (r *NativeRootlessBuildahRuntime) Pull(image string)

func (*NativeRootlessBuildahRuntime) Rm

func (r *NativeRootlessBuildahRuntime) Rm(containerName string)

func (*NativeRootlessBuildahRuntime) RunSleepingContainer

func (r *NativeRootlessBuildahRuntime) RunSleepingContainer(containerName, image string)

Jump to

Keyboard shortcuts

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