vm

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVsockNotConfigured = errors.New("vsock not configured for this VM")

ErrVsockNotConfigured is returned for VMs predating vsock support (e.g. restored from a legacy snapshot).

Functions

func Command

func Command(h Actions) *cobra.Command

Types

type Actions

type Actions interface {
	Create(cmd *cobra.Command, args []string) error
	Run(cmd *cobra.Command, args []string) error
	Clone(cmd *cobra.Command, args []string) error
	Start(cmd *cobra.Command, args []string) error
	Stop(cmd *cobra.Command, args []string) error
	List(cmd *cobra.Command, args []string) error
	Inspect(cmd *cobra.Command, args []string) error
	Console(cmd *cobra.Command, args []string) error
	Exec(cmd *cobra.Command, args []string) error
	Logs(cmd *cobra.Command, args []string) error
	RM(cmd *cobra.Command, args []string) error
	Restore(cmd *cobra.Command, args []string) error
	Debug(cmd *cobra.Command, args []string) error
	Status(cmd *cobra.Command, args []string) error
	FsAttach(cmd *cobra.Command, args []string) error
	FsDetach(cmd *cobra.Command, args []string) error
	DeviceAttach(cmd *cobra.Command, args []string) error
	DeviceDetach(cmd *cobra.Command, args []string) error
	NetResize(cmd *cobra.Command, args []string) error
}

type ExecExitError added in v0.3.9

type ExecExitError struct{ Code int }

ExecExitError carries the agent child's exit code for host-shell propagation.

func (*ExecExitError) Error added in v0.3.9

func (e *ExecExitError) Error() string

type Handler

type Handler struct {
	cmdcore.BaseHandler
}

func (Handler) Clone

func (h Handler) Clone(cmd *cobra.Command, args []string) error

func (Handler) Console

func (h Handler) Console(cmd *cobra.Command, args []string) error

func (Handler) Create

func (h Handler) Create(cmd *cobra.Command, args []string) error

func (Handler) Debug

func (h Handler) Debug(cmd *cobra.Command, args []string) error

func (Handler) DeviceAttach added in v0.3.9

func (h Handler) DeviceAttach(cmd *cobra.Command, args []string) error

func (Handler) DeviceDetach added in v0.3.9

func (h Handler) DeviceDetach(cmd *cobra.Command, args []string) error

func (Handler) Exec added in v0.3.9

func (h Handler) Exec(cmd *cobra.Command, args []string) error

func (Handler) FsAttach added in v0.3.9

func (h Handler) FsAttach(cmd *cobra.Command, args []string) error

func (Handler) FsDetach added in v0.3.9

func (h Handler) FsDetach(cmd *cobra.Command, args []string) error

func (Handler) Inspect

func (h Handler) Inspect(cmd *cobra.Command, args []string) error

func (Handler) List

func (h Handler) List(cmd *cobra.Command, _ []string) error

func (Handler) Logs added in v0.4.0

func (h Handler) Logs(cmd *cobra.Command, args []string) error

func (Handler) NetResize added in v0.4.0

func (h Handler) NetResize(cmd *cobra.Command, args []string) error

func (Handler) RM

func (h Handler) RM(cmd *cobra.Command, args []string) error

func (Handler) Restore

func (h Handler) Restore(cmd *cobra.Command, args []string) error

func (Handler) Run

func (h Handler) Run(cmd *cobra.Command, args []string) error

func (Handler) Start

func (h Handler) Start(cmd *cobra.Command, args []string) error

func (Handler) Status added in v0.2.6

func (h Handler) Status(cmd *cobra.Command, args []string) error

func (Handler) Stop

func (h Handler) Stop(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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