libcontainerd

package
v0.0.0-...-6718f99 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewClient

func GetNewClient(address string, namespace string) (*containerd.Client, error)

func GetNewContainerdRuntime

func GetNewContainerdRuntime(config libruntime.RuntimeConfig, startServer bool) (libruntime.Runtime, error)

GetNewContainerdRuntime creates new instance of containerd test setup

func SetupNewServer

func SetupNewServer(config server.Config) (*server.Server, error)

Types

type ContainerdRuntime

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

ContainerdRuntime implements all containerd funtions

func (*ContainerdRuntime) Create

func (cr *ContainerdRuntime) Create(ctx context.Context, containerName, imageName string, specs *runtimespecs.Spec) (*libruntime.Container, error)

Create creates the container from given image.

func (*ContainerdRuntime) Delete

Delete the container from filesystem

func (ContainerdRuntime) Exec

func (*ContainerdRuntime) GetContainer

func (cr *ContainerdRuntime) GetContainer(ctx context.Context, containerName string) (*libruntime.Container, error)

GetContainer return the container, if it exists.

func (*ContainerdRuntime) Pull

func (cr *ContainerdRuntime) Pull(ctx context.Context, image string) (libruntime.Image, error)

Pull the image from remote registry.

func (*ContainerdRuntime) RemoveImage

func (cr *ContainerdRuntime) RemoveImage(ctx context.Context, image string) error

RemoveImage from remote registry.

func (*ContainerdRuntime) Run

func (cr *ContainerdRuntime) Run(ctx context.Context, containerName, imageName string, specs *runtimespecs.Spec) (<-chan interface{}, *libruntime.Container, error)

Run creates and run the task (container instance)

func (*ContainerdRuntime) Runnable

func (cr *ContainerdRuntime) Runnable(ctx context.Context, ctr *libruntime.Container) error

func (*ContainerdRuntime) Start

func (*ContainerdRuntime) Stop

Stop the task running instance of container

func (*ContainerdRuntime) Version

func (cr *ContainerdRuntime) Version(ctx context.Context) string

Version of containerd

func (*ContainerdRuntime) Wait

func (cr *ContainerdRuntime) Wait(ctx context.Context, ctr *libruntime.Container) (<-chan interface{}, error)

Jump to

Keyboard shortcuts

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