Documentation
¶
Index ¶
- Constants
- func EnsureFs(ctx context.Context, inst *store.Instance) error
- type LimaWslDriver
- func (l *LimaWslDriver) ApplySnapshot(_ context.Context, _ string) error
- func (l *LimaWslDriver) CanRunGUI() bool
- func (l *LimaWslDriver) ChangeDisplayPassword(_ context.Context, _ string) error
- func (l *LimaWslDriver) CreateDisk(_ context.Context) error
- func (l *LimaWslDriver) CreateSnapshot(_ context.Context, _ string) error
- func (l *LimaWslDriver) DeleteSnapshot(_ context.Context, _ string) error
- func (l *LimaWslDriver) ForwardGuestAgent() bool
- func (l *LimaWslDriver) GetDisplayConnection(_ context.Context) (string, error)
- func (l *LimaWslDriver) GuestAgentConn(ctx context.Context) (net.Conn, error)
- func (l *LimaWslDriver) Initialize(_ context.Context) error
- func (l *LimaWslDriver) ListSnapshots(_ context.Context) (string, error)
- func (l *LimaWslDriver) Register(_ context.Context) error
- func (l *LimaWslDriver) RunGUI() error
- func (l *LimaWslDriver) Start(ctx context.Context) (chan error, error)
- func (l *LimaWslDriver) Stop(ctx context.Context) error
- func (l *LimaWslDriver) Unregister(ctx context.Context) error
- func (l *LimaWslDriver) VSockPort() int
- func (l *LimaWslDriver) Validate() error
- func (l *LimaWslDriver) VirtioPort() string
Constants ¶
View Source
const Enabled = true
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LimaWslDriver ¶
type LimaWslDriver struct {
Instance *store.Instance
SSHLocalPort int
// contains filtered or unexported fields
}
func (*LimaWslDriver) ApplySnapshot ¶
func (l *LimaWslDriver) ApplySnapshot(_ context.Context, _ string) error
func (*LimaWslDriver) CanRunGUI ¶
func (l *LimaWslDriver) CanRunGUI() bool
CanRunGUI requires WSLg, which requires specific version of WSL2 to be installed. TODO: Add check and add support for WSLg (instead of VNC) to hostagent.
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 ¶
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) Initialize ¶
func (l *LimaWslDriver) Initialize(_ context.Context) error
func (*LimaWslDriver) ListSnapshots ¶
func (l *LimaWslDriver) ListSnapshots(_ context.Context) (string, error)
func (*LimaWslDriver) RunGUI ¶
func (l *LimaWslDriver) RunGUI() error
func (*LimaWslDriver) Start ¶
func (l *LimaWslDriver) Start(ctx context.Context) (chan error, error)
func (*LimaWslDriver) Unregister ¶
func (l *LimaWslDriver) Unregister(ctx 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
Click to show internal directories.
Click to hide internal directories.