hcs

package
v2.3.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const Enabled = true

Variables

This section is empty.

Functions

This section is empty.

Types

type LimaHcsDriver

type LimaHcsDriver struct {
	Instance *limatype.Instance

	SSHLocalPort int
	// contains filtered or unexported fields
}

func New

func New() *LimaHcsDriver

func (*LimaHcsDriver) AdditionalSetupForSSH

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

func (*LimaHcsDriver) ApplySnapshot

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

func (*LimaHcsDriver) BootScripts

func (l *LimaHcsDriver) BootScripts(_ context.Context) (map[string][]byte, error)

func (*LimaHcsDriver) ChangeDisplayPassword

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

func (*LimaHcsDriver) Configure

func (*LimaHcsDriver) Create

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

func (*LimaHcsDriver) CreateDisk

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

func (*LimaHcsDriver) CreateSnapshot

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

func (*LimaHcsDriver) Delete

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

func (*LimaHcsDriver) DeleteSnapshot

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

func (*LimaHcsDriver) DisplayConnection

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

func (*LimaHcsDriver) ForwardGuestAgent

func (l *LimaHcsDriver) ForwardGuestAgent(_ context.Context) bool

func (*LimaHcsDriver) GuestAgentConn

func (l *LimaHcsDriver) GuestAgentConn(_ 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 (*LimaHcsDriver) Info

func (*LimaHcsDriver) InspectStatus

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

func (*LimaHcsDriver) ListSnapshots

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

func (*LimaHcsDriver) RunGUI

func (l *LimaHcsDriver) RunGUI(_ context.Context) error

func (*LimaHcsDriver) SSHAddress

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

func (*LimaHcsDriver) Start

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

func (*LimaHcsDriver) Stop

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

func (*LimaHcsDriver) Validate

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

Jump to

Keyboard shortcuts

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