Documentation ¶
Index ¶
- func DiskDir(name string) (string, error)
- func Disks() ([]string, error)
- func InstanceDir(name string) (string, error)
- func Instances() ([]string, error)
- func LoadYAMLByFilePath(filePath string) (*limayaml.LimaYAML, error)
- func ReadPIDFile(path string) (int, error)
- type Disk
- type FormatData
- type Instance
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceDir ¶
InstanceDir returns the instance dir. InstanceDir does not check whether the instance exists
func LoadYAMLByFilePath ¶
LoadYAMLByFilePath loads and validates the yaml.
func ReadPIDFile ¶ added in v0.7.0
ReadPIDFile returns 0 if the PID file does not exist or the process has already terminated (in which case the PID file will be removed).
Types ¶
type Disk ¶ added in v0.14.0
type Disk struct { Name string `json:"name"` Size int64 `json:"size"` Dir string `json:"dir"` Instance string `json:"instance"` InstanceDir string `json:"instanceDir"` MountPoint string `json:"mountPoint"` }
func InspectDisk ¶ added in v0.14.0
type FormatData ¶ added in v0.8.0
type FormatData struct { Instance HostOS string HostArch string LimaHome string IdentityFile string }
func AddGlobalFields ¶ added in v0.8.0
func AddGlobalFields(inst *Instance) (FormatData, error)
type Instance ¶
type Instance struct { Name string `json:"name"` Status Status `json:"status"` Dir string `json:"dir"` VMType limayaml.VMType `json:"vmType"` Arch limayaml.Arch `json:"arch"` CPUType string `json:"cpuType"` CPUs int `json:"cpus,omitempty"` Memory int64 `json:"memory,omitempty"` // bytes Disk int64 `json:"disk,omitempty"` // bytes Message string `json:"message,omitempty"` AdditionalDisks []limayaml.Disk `json:"additionalDisks,omitempty"` Networks []limayaml.Network `json:"network,omitempty"` SSHLocalPort int `json:"sshLocalPort,omitempty"` HostAgentPID int `json:"hostAgentPID,omitempty"` QemuPID int `json:"qemuPID,omitempty"` Errors []error `json:"errors,omitempty"` }
Click to show internal directories.
Click to hide internal directories.