libruntime

package
v0.0.0-...-4c2500c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID    string
	PodID string
}

type Image

type Image struct {
	Name string
}

type Runtime

type Runtime interface {
	Version(context.Context) string
	Pull(context.Context, string) (Image, error)
	RemoveImage(ctx context.Context, imageName string) error
	Create(context context.Context, containerName string, imageName string, OCISpecs *specs.Spec) (*Container, error)
	Run(context.Context, string, string, *specs.Spec) (<-chan interface{}, *Container, error)
	Stop(context.Context, *Container) error
	Delete(context.Context, *Container) error
	Runnable(context.Context, *Container) error
	Start(context.Context, *Container) error
	Exec(context.Context, Container, []string) error
	Wait(context.Context, *Container) (<-chan interface{}, error)
	GetContainer(context.Context, string) (*Container, error)
}

type RuntimeConfig

type RuntimeConfig struct {
	RuntimeName      string
	RunDefaultServer bool
	Root             string
	State            string
	RuntimeEndpoint  string
	DebugEndpoint    string
	DebugLevel       string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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