runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRuntime

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

func New

func New() *ContainerRuntime

func NewFromClient

func NewFromClient(client *docker.Client) *ContainerRuntime

func (*ContainerRuntime) Client

func (c *ContainerRuntime) Client() (*docker.Client, error)

func (*ContainerRuntime) CreateContainer

func (c *ContainerRuntime) CreateContainer(config *api.Backdrop, tty bool, stdio bool) (string, error)

func (*ContainerRuntime) DeleteContainer

func (c *ContainerRuntime) DeleteContainer(id string) error

func (*ContainerRuntime) PluginInfo

func (p *ContainerRuntime) PluginInfo() (*api.PluginInfo, error)

func (*ContainerRuntime) ResizeContainer

func (c *ContainerRuntime) ResizeContainer(id string, height uint32, width uint32) error

func (*ContainerRuntime) ResolveImage

func (c *ContainerRuntime) ResolveImage(name string) (string, error)

func (*ContainerRuntime) RunAndWaitContainer

func (c *ContainerRuntime) RunAndWaitContainer(id string, height uint32, width uint32) error

func (*ContainerRuntime) StartContainer

func (c *ContainerRuntime) StartContainer(id string) error

func (*ContainerRuntime) StreamContainer

func (c *ContainerRuntime) StreamContainer(id string, stream *plugin.StreamConfig) error

func (*ContainerRuntime) Type

func (c *ContainerRuntime) Type() plugin.Type

func (*ContainerRuntime) UploadFile

func (c *ContainerRuntime) UploadFile(containerID string, path string, contents []byte) error

Jump to

Keyboard shortcuts

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