vz

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Enabled = true

Variables

This section is empty.

Functions

func DialQemu

func DialQemu(ctx context.Context, unixSock string) (*os.File, error)

DialQemu support connecting to QEMU supported network stack via unix socket. Returns os.File, connected dgram connection to be used for vz.

func EnsureDisk

func EnsureDisk(ctx context.Context, inst *limatype.Instance) error

func PassFDToUnix

func PassFDToUnix(unixSock string) (*os.File, error)

Types

type LimaVzDriver

type LimaVzDriver struct {
	Instance *limatype.Instance

	SSHLocalPort int
	// contains filtered or unexported fields
}

func New

func New() *LimaVzDriver

func (*LimaVzDriver) AdditionalSetupForSSH

func (l *LimaVzDriver) AdditionalSetupForSSH(_ context.Context) error

func (*LimaVzDriver) ApplySnapshot

func (l *LimaVzDriver) ApplySnapshot(_ context.Context, _ string) error

func (*LimaVzDriver) BootScripts

func (l *LimaVzDriver) BootScripts() (map[string][]byte, error)

func (*LimaVzDriver) ChangeDisplayPassword

func (l *LimaVzDriver) ChangeDisplayPassword(_ context.Context, _ string) error

func (*LimaVzDriver) Configure

func (l *LimaVzDriver) Configure(inst *limatype.Instance) *driver.ConfiguredDriver

func (*LimaVzDriver) Create

func (l *LimaVzDriver) Create(_ context.Context) error

func (*LimaVzDriver) CreateDisk

func (l *LimaVzDriver) CreateDisk(ctx context.Context) error

func (*LimaVzDriver) CreateSnapshot

func (l *LimaVzDriver) CreateSnapshot(_ context.Context, _ string) error

func (*LimaVzDriver) Delete

func (l *LimaVzDriver) Delete(_ context.Context) error

func (*LimaVzDriver) DeleteSnapshot

func (l *LimaVzDriver) DeleteSnapshot(_ context.Context, _ string) error

func (*LimaVzDriver) DisplayConnection

func (l *LimaVzDriver) DisplayConnection(_ context.Context) (string, error)

func (*LimaVzDriver) FillConfig

func (l *LimaVzDriver) FillConfig(ctx context.Context, cfg *limatype.LimaYAML, _ string) error

func (*LimaVzDriver) ForwardGuestAgent

func (l *LimaVzDriver) ForwardGuestAgent() bool

func (*LimaVzDriver) GuestAgentConn

func (l *LimaVzDriver) GuestAgentConn(_ context.Context) (net.Conn, string, error)

func (*LimaVzDriver) Info

func (l *LimaVzDriver) Info() driver.Info

func (*LimaVzDriver) InspectStatus

func (l *LimaVzDriver) InspectStatus(_ context.Context, _ *limatype.Instance) string

func (*LimaVzDriver) ListSnapshots

func (l *LimaVzDriver) ListSnapshots(_ context.Context) (string, error)

func (*LimaVzDriver) Register

func (l *LimaVzDriver) Register(_ context.Context) error

func (*LimaVzDriver) RunGUI

func (l *LimaVzDriver) RunGUI() error

func (*LimaVzDriver) SSHAddress

func (l *LimaVzDriver) SSHAddress(_ context.Context) (string, error)

func (*LimaVzDriver) Start

func (l *LimaVzDriver) Start(ctx context.Context) (chan error, error)

func (*LimaVzDriver) Stop

func (l *LimaVzDriver) Stop(_ context.Context) error

func (*LimaVzDriver) Unregister

func (l *LimaVzDriver) Unregister(_ context.Context) error

func (*LimaVzDriver) Validate

func (l *LimaVzDriver) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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