Documentation ¶
Index ¶
- Constants
- func Accel(arch limayaml.Arch) string
- func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err error)
- func CreateDataDisk(dir, format string, size int) error
- func Del(cfg Config, run bool, tag string) error
- func EnsureDisk(ctx context.Context, cfg Config) error
- func Exe(arch limayaml.Arch) (exe string, args []string, err error)
- func FindVirtiofsd(qemuExe string) (string, error)
- func List(cfg Config, run bool) (string, error)
- func Load(cfg Config, run bool, tag string) error
- func ResizeDataDisk(dir, format string, size int) error
- func Save(cfg Config, run bool, tag string) error
- func VirtiofsdCmdline(cfg Config, mountIndex int) ([]string, error)
- type Config
- type LimaQemuDriver
- func (l *LimaQemuDriver) ApplySnapshot(_ context.Context, tag string) error
- func (l *LimaQemuDriver) ChangeDisplayPassword(_ context.Context, password string) error
- func (l *LimaQemuDriver) CreateDisk(ctx context.Context) error
- func (l *LimaQemuDriver) CreateSnapshot(_ context.Context, tag string) error
- func (l *LimaQemuDriver) DeleteSnapshot(_ context.Context, tag string) error
- func (l *LimaQemuDriver) GetDisplayConnection(_ context.Context) (string, error)
- func (l *LimaQemuDriver) GuestAgentConn(ctx context.Context) (net.Conn, error)
- func (l *LimaQemuDriver) ListSnapshots(_ context.Context) (string, error)
- func (l *LimaQemuDriver) Start(ctx context.Context) (chan error, error)
- func (l *LimaQemuDriver) Stop(ctx context.Context) error
- func (l *LimaQemuDriver) Validate() error
Constants ¶
View Source
const (
MinimumQemuVersion = "4.0.0"
)
MinimumQemuVersion is the minimum supported QEMU version
Variables ¶
This section is empty.
Functions ¶
func CreateDataDisk ¶ added in v0.14.0
func EnsureDisk ¶
EnsureDisk also ensures the kernel and the initrd
func FindVirtiofsd ¶ added in v0.17.0
func List ¶ added in v0.16.0
List returns a space-separated list of all snapshots, with header and newlines
func ResizeDataDisk ¶ added in v0.19.0
Types ¶
type LimaQemuDriver ¶ added in v0.14.0
type LimaQemuDriver struct { *driver.BaseDriver // contains filtered or unexported fields }
func New ¶ added in v0.14.0
func New(driver *driver.BaseDriver) *LimaQemuDriver
func (*LimaQemuDriver) ApplySnapshot ¶ added in v0.16.0
func (l *LimaQemuDriver) ApplySnapshot(_ context.Context, tag string) error
func (*LimaQemuDriver) ChangeDisplayPassword ¶ added in v0.15.0
func (l *LimaQemuDriver) ChangeDisplayPassword(_ context.Context, password string) error
func (*LimaQemuDriver) CreateDisk ¶ added in v0.14.0
func (l *LimaQemuDriver) CreateDisk(ctx context.Context) error
func (*LimaQemuDriver) CreateSnapshot ¶ added in v0.16.0
func (l *LimaQemuDriver) CreateSnapshot(_ context.Context, tag string) error
func (*LimaQemuDriver) DeleteSnapshot ¶ added in v0.16.0
func (l *LimaQemuDriver) DeleteSnapshot(_ context.Context, tag string) error
func (*LimaQemuDriver) GetDisplayConnection ¶ added in v0.15.0
func (l *LimaQemuDriver) GetDisplayConnection(_ context.Context) (string, error)
func (*LimaQemuDriver) GuestAgentConn ¶ added in v0.19.0
func (*LimaQemuDriver) ListSnapshots ¶ added in v0.16.0
func (l *LimaQemuDriver) ListSnapshots(_ context.Context) (string, error)
func (*LimaQemuDriver) Start ¶ added in v0.14.0
func (l *LimaQemuDriver) Start(ctx context.Context) (chan error, error)
func (*LimaQemuDriver) Stop ¶ added in v0.14.0
func (l *LimaQemuDriver) Stop(ctx context.Context) error
func (*LimaQemuDriver) Validate ¶ added in v0.14.0
func (l *LimaQemuDriver) Validate() 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.