wsl2

package
v1.2.2 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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Enabled = false

Variables

View Source
var ErrUnsupported = errors.New("vm driver 'wsl2' requires Windows 10 build 19041 or later (Hint: try recompiling Lima if you are seeing this error on Windows 10+)")

Functions

func EnsureFs

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

EnsureFs downloads the root fs.

Types

type LimaWslDriver

type LimaWslDriver struct {
	Instance *store.Instance

	SSHLocalPort int
	// contains filtered or unexported fields
}

func New

func New(_ *store.Instance, _ int) *LimaWslDriver

func (*LimaWslDriver) ApplySnapshot

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

func (*LimaWslDriver) CanRunGUI

func (l *LimaWslDriver) CanRunGUI() bool

func (*LimaWslDriver) ChangeDisplayPassword

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

func (*LimaWslDriver) CreateDisk

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

func (*LimaWslDriver) CreateSnapshot

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

func (*LimaWslDriver) DeleteSnapshot

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

func (*LimaWslDriver) ForwardGuestAgent

func (l *LimaWslDriver) ForwardGuestAgent() bool

func (*LimaWslDriver) GetDisplayConnection

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

func (*LimaWslDriver) GuestAgentConn

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

func (*LimaWslDriver) Initialize

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

func (*LimaWslDriver) ListSnapshots

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

func (*LimaWslDriver) Register

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

func (*LimaWslDriver) RunGUI

func (l *LimaWslDriver) RunGUI() error

func (*LimaWslDriver) Start

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

func (*LimaWslDriver) Stop

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

func (*LimaWslDriver) Unregister

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

func (*LimaWslDriver) VSockPort

func (l *LimaWslDriver) VSockPort() int

func (*LimaWslDriver) Validate

func (l *LimaWslDriver) Validate() error

func (*LimaWslDriver) VirtioPort

func (l *LimaWslDriver) VirtioPort() string

Jump to

Keyboard shortcuts

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