Documentation
¶
Index ¶
- func Accel(arch limatype.Arch) string
- func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err error)
- func Del(ctx context.Context, cfg Config, run bool, tag string) error
- func EnsureDisk(ctx context.Context, cfg Config) error
- func Exe(arch limatype.Arch) (exe string, args []string, err error)
- func FindVirtiofsd(ctx context.Context, qemuExe string) (string, error)
- func List(ctx context.Context, cfg Config, run bool) (string, error)
- func Load(ctx context.Context, cfg Config, run bool, tag string) error
- func Save(ctx context.Context, cfg Config, run bool, tag string) error
- func VirtiofsdCmdline(cfg Config, mountIndex int) ([]string, error)
- type Config
- type LimaQemuDriver
- func (l *LimaQemuDriver) ApplySnapshot(ctx context.Context, tag string) error
- func (l *LimaQemuDriver) BootScripts() (map[string][]byte, error)
- func (l *LimaQemuDriver) ChangeDisplayPassword(_ context.Context, password string) error
- func (l *LimaQemuDriver) Configure(inst *limatype.Instance) *driver.ConfiguredDriver
- func (l *LimaQemuDriver) Create(_ context.Context) error
- func (l *LimaQemuDriver) CreateDisk(ctx context.Context) error
- func (l *LimaQemuDriver) CreateSnapshot(ctx context.Context, tag string) error
- func (l *LimaQemuDriver) Delete(_ context.Context) error
- func (l *LimaQemuDriver) DeleteSnapshot(ctx context.Context, tag string) error
- func (l *LimaQemuDriver) DisplayConnection(_ context.Context) (string, error)
- func (l *LimaQemuDriver) FillConfig(ctx context.Context, cfg *limatype.LimaYAML, filePath string) error
- func (l *LimaQemuDriver) ForwardGuestAgent() bool
- func (l *LimaQemuDriver) GuestAgentConn(ctx context.Context) (net.Conn, string, error)
- func (l *LimaQemuDriver) Info() driver.Info
- func (l *LimaQemuDriver) InspectStatus(_ context.Context, _ *limatype.Instance) string
- func (l *LimaQemuDriver) ListSnapshots(ctx context.Context) (string, error)
- func (l *LimaQemuDriver) Register(_ context.Context) error
- func (l *LimaQemuDriver) RunGUI() error
- func (l *LimaQemuDriver) SSHAddress(_ context.Context) (string, error)
- func (l *LimaQemuDriver) Start(_ context.Context) (chan error, error)
- func (l *LimaQemuDriver) Stop(ctx context.Context) error
- func (l *LimaQemuDriver) Unregister(_ context.Context) error
- func (l *LimaQemuDriver) Validate(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDisk ¶
EnsureDisk also ensures the kernel and the initrd.
Types ¶
type LimaQemuDriver ¶
type LimaQemuDriver struct { Instance *limatype.Instance SSHLocalPort int // contains filtered or unexported fields }
func New ¶
func New() *LimaQemuDriver
func (*LimaQemuDriver) ApplySnapshot ¶
func (l *LimaQemuDriver) ApplySnapshot(ctx context.Context, tag string) error
func (*LimaQemuDriver) BootScripts ¶
func (l *LimaQemuDriver) BootScripts() (map[string][]byte, error)
func (*LimaQemuDriver) ChangeDisplayPassword ¶
func (l *LimaQemuDriver) ChangeDisplayPassword(_ context.Context, password string) error
func (*LimaQemuDriver) Configure ¶
func (l *LimaQemuDriver) Configure(inst *limatype.Instance) *driver.ConfiguredDriver
func (*LimaQemuDriver) CreateDisk ¶
func (l *LimaQemuDriver) CreateDisk(ctx context.Context) error
func (*LimaQemuDriver) CreateSnapshot ¶
func (l *LimaQemuDriver) CreateSnapshot(ctx context.Context, tag string) error
func (*LimaQemuDriver) DeleteSnapshot ¶
func (l *LimaQemuDriver) DeleteSnapshot(ctx context.Context, tag string) error
func (*LimaQemuDriver) DisplayConnection ¶
func (l *LimaQemuDriver) DisplayConnection(_ context.Context) (string, error)
func (*LimaQemuDriver) FillConfig ¶
func (*LimaQemuDriver) ForwardGuestAgent ¶
func (l *LimaQemuDriver) ForwardGuestAgent() bool
func (*LimaQemuDriver) GuestAgentConn ¶
func (*LimaQemuDriver) Info ¶
func (l *LimaQemuDriver) Info() driver.Info
func (*LimaQemuDriver) InspectStatus ¶
func (*LimaQemuDriver) ListSnapshots ¶
func (l *LimaQemuDriver) ListSnapshots(ctx context.Context) (string, error)
func (*LimaQemuDriver) RunGUI ¶
func (l *LimaQemuDriver) RunGUI() error
func (*LimaQemuDriver) SSHAddress ¶
func (l *LimaQemuDriver) SSHAddress(_ context.Context) (string, error)
func (*LimaQemuDriver) Start ¶
func (l *LimaQemuDriver) Start(_ context.Context) (chan error, error)
func (*LimaQemuDriver) Unregister ¶
func (l *LimaQemuDriver) Unregister(_ context.Context) error
Directories
¶
Path | Synopsis |
---|---|
Package entitlementutil provides a workaround for https://github.com/lima-vm/lima/issues/1742
|
Package entitlementutil provides a workaround for https://github.com/lima-vm/lima/issues/1742 |
Click to show internal directories.
Click to hide internal directories.