runtime

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientVersion = "v1alpha2"

	RuntimeDocker     = "docker"
	RuntimeContainerd = "containerd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerD

type ContainerD struct {
	// contains filtered or unexported fields
}

func NewContainerD

func NewContainerD(endpoints []string) *ContainerD

func (*ContainerD) GetRootfsPath

func (c *ContainerD) GetRootfsPath(ctx context.Context, containerId string, containerPaths []string) ([]string, error)

func (*ContainerD) Name

func (c *ContainerD) Name() string

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func NewDocker

func NewDocker() *Docker

func (*Docker) GetRootfsPath

func (d *Docker) GetRootfsPath(ctx context.Context, containerId string, containerPaths []string) ([]string, error)

func (*Docker) Name

func (d *Docker) Name() string

type Runtime

type Runtime interface {
	Name() string
	GetRootfsPath(ctx context.Context, containerId string, containerPaths []string) ([]string, error)
}

func Init

func Init(endpoints []string, runtime string) Runtime

Jump to

Keyboard shortcuts

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