runtime

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 29 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.APIClient) *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 runtime.ContainerConfig) (string, error)

func (*ContainerRuntime) CreateVolume added in v0.4.4

func (c *ContainerRuntime) CreateVolume(name string) error

func (*ContainerRuntime) DeleteContainer

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

func (*ContainerRuntime) DeleteVolume added in v0.4.4

func (c *ContainerRuntime) DeleteVolume(name 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) Metadata added in v0.4.4

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

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) WriteFile added in v0.4.4

func (c *ContainerRuntime) WriteFile(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