wsl2

package
v2.0.1 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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Enabled = true

Variables

This section is empty.

Functions

func EnsureFs

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

EnsureFs downloads the root fs.

Types

type LimaWslDriver

type LimaWslDriver struct {
	Instance *limatype.Instance

	SSHLocalPort int
	// contains filtered or unexported fields
}

func New

func New() *LimaWslDriver

func (*LimaWslDriver) AdditionalSetupForSSH

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

func (*LimaWslDriver) ApplySnapshot

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

func (*LimaWslDriver) BootScripts

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

func (*LimaWslDriver) ChangeDisplayPassword

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

func (*LimaWslDriver) Configure

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

func (*LimaWslDriver) Create

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

func (*LimaWslDriver) CreateDisk

func (l *LimaWslDriver) CreateDisk(_ context.Context) error

func (*LimaWslDriver) CreateSnapshot

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

func (*LimaWslDriver) Delete

func (l *LimaWslDriver) Delete(ctx context.Context) error

func (*LimaWslDriver) DeleteSnapshot

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

func (*LimaWslDriver) DisplayConnection

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

func (*LimaWslDriver) FillConfig

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

func (*LimaWslDriver) ForwardGuestAgent

func (l *LimaWslDriver) ForwardGuestAgent() bool

func (*LimaWslDriver) GuestAgentConn

func (l *LimaWslDriver) GuestAgentConn(ctx context.Context) (net.Conn, string, error)

GuestAgentConn returns the guest agent connection, or nil (if forwarded by ssh). As of 08-01-2024, github.com/mdlayher/vsock does not natively support vsock on Windows, so use the winio library to create the connection.

func (*LimaWslDriver) Info

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

func (*LimaWslDriver) InspectStatus

func (l *LimaWslDriver) InspectStatus(ctx context.Context, inst *limatype.Instance) string

func (*LimaWslDriver) ListSnapshots

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

func (*LimaWslDriver) RunGUI

func (l *LimaWslDriver) RunGUI() error

func (*LimaWslDriver) SSHAddress

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

func (*LimaWslDriver) Start

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

func (*LimaWslDriver) Stop

func (l *LimaWslDriver) Stop(ctx context.Context) error

func (*LimaWslDriver) Validate

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

Jump to

Keyboard shortcuts

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