Documentation ¶
Index ¶
- func Download(fileName string, url string, size int) error
- func ExtractAsset(zipFileName string) (string, error)
- func GetLatestXMLFile(api string, repo string) (string, error)
- func Load(fileName string, callback EntryLoad) error
- type Asset
- type Driver
- type EntryLoad
- type Input
- type Machine
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAsset ¶
ExtractAsset extracts compressed assest
func GetLatestXMLFile ¶
GetLatestXMLFile finds, downloads, extracts latest release asset
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` ContentType string `json:"content_type"` Size int `json:"size"` Created string `json:"created_at"` Updated string `json:"updated_at"` URL string `json:"browser_download_url"` }
Asset artifacts from a release
type Machine ¶
type Machine struct { Name string `xml:"name,attr"` Description string `xml:"description"` Driver Driver `xml:"driver"` Input Input `xml:"input"` IsDevice bool IsBios bool IsRunnable bool IsMechanical bool CloneOf string `xml:"cloneof,attr"` RomOf string `xml:"romof,attr"` SampleOf string `xml:"sampleof,attr"` }
Machine basic element
Click to show internal directories.
Click to hide internal directories.