runtime

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 28 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) AttachContainer

func (c *ContainerRuntime) AttachContainer(
	ctx context.Context, id string, stream *plugin.StreamConfig,
) (*ContainerStream, func(), error)

func (*ContainerRuntime) Cleanup added in v0.4.1

func (*ContainerRuntime) Cleanup()

func (*ContainerRuntime) CreateContainer

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

func (*ContainerRuntime) DeleteContainer

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

func (*ContainerRuntime) Init

func (c *ContainerRuntime) Init() (plugin.Config, error)

func (*ContainerRuntime) KillContainer

func (c *ContainerRuntime) KillContainer(id string, sig os.Signal) error

func (*ContainerRuntime) PluginInfo

func (c *ContainerRuntime) PluginInfo() *core.PluginInfo

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) (*runtime.Result, error)

func (*ContainerRuntime) StartContainer

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

func (*ContainerRuntime) StreamContainer

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

func (*ContainerRuntime) Type

func (*ContainerRuntime) Type() plugin.Type

func (*ContainerRuntime) UploadFile

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

type ContainerStream

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

func (*ContainerStream) CopyInput

func (s *ContainerStream) CopyInput() error

func (*ContainerStream) CopyOutput

func (s *ContainerStream) CopyOutput() error

Jump to

Keyboard shortcuts

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