runtime

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	ID    string
	Name  string
	Ports []PortMapping
}

ContainerInfo represents container information

type PortMapping

type PortMapping struct {
	Host      string
	Container string
	Protocol  string
}

PortMapping represents port mapping

type RunOptions

type RunOptions struct {
	Image       string
	Ports       []string
	Environment []string
	Detach      bool
	Name        string
	Volumes     []string
	Interactive bool
}

RunOptions represents runtime options

type Runtime

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

Runtime handles agent execution

func New

func New() *Runtime

New creates a new runtime instance

func (*Runtime) List

func (r *Runtime) List() ([]ContainerInfo, error)

List lists running containers

func (*Runtime) Run

func (r *Runtime) Run(options *RunOptions) (*ContainerInfo, error)

Run starts an agent container

func (*Runtime) Stop

func (r *Runtime) Stop(containerID string) error

Stop stops a running container

func (*Runtime) StreamLogs

func (r *Runtime) StreamLogs(containerID string) error

StreamLogs streams container logs

func (*Runtime) ValidateImage

func (r *Runtime) ValidateImage(imageName string) error

ValidateImage validates that an image exists

Jump to

Keyboard shortcuts

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