You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
3.3 KiB
203 lines
3.3 KiB
package image
|
|
|
|
// Main information about image
|
|
type ItemImage struct {
|
|
// Account ID
|
|
AccountID uint64 `json:"accountId"`
|
|
|
|
// Architecture
|
|
Architecture string `json:"architecture"`
|
|
|
|
// Boot type
|
|
BootType string `json:"bootType"`
|
|
|
|
// Bootable
|
|
Bootable bool `json:"bootable"`
|
|
|
|
// CDROM
|
|
CDROM bool `json:"cdrom"`
|
|
|
|
// Description
|
|
Description string `json:"desc"`
|
|
|
|
// List drivers
|
|
Drivers []string `json:"drivers"`
|
|
|
|
// HotResize
|
|
HotResize bool `json:"hotResize"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Link to
|
|
LinkTo uint64 `json:"linkTo"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// NetworkInterfaceNaming
|
|
NetworkInterfaceNaming string `json:"networkInterfaceNaming"`
|
|
|
|
// Pool
|
|
Pool string `json:"pool"`
|
|
|
|
// SepID
|
|
SepID uint64 `json:"sepId"`
|
|
|
|
// Size
|
|
Size uint64 `json:"size"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
|
|
// Type
|
|
Type string `json:"type"`
|
|
|
|
// Username
|
|
Username string `json:"username"`
|
|
|
|
// Virtual
|
|
Virtual bool `json:"virtual"`
|
|
}
|
|
|
|
// List of information about images
|
|
type ListImages struct {
|
|
// Data
|
|
Data []ItemImage `json:"data"`
|
|
|
|
// Entry count
|
|
EntryCount uint64 `json:"entryCount"`
|
|
}
|
|
|
|
// ListHistories of record image
|
|
type ListHistories []History
|
|
|
|
// History of record image
|
|
type History struct {
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Timestamp
|
|
Timestamp uint64 `json:"timestamp"`
|
|
}
|
|
|
|
// Detailed information about image
|
|
type RecordImage struct {
|
|
// UNCPathj
|
|
UNCPath string `json:"UNCPath"`
|
|
|
|
// CKey
|
|
CKey string `json:"_ckey"`
|
|
|
|
// Account ID
|
|
AccountID uint64 `json:"accountId"`
|
|
|
|
// Access Control List
|
|
ACL interface{} `json:"acl"`
|
|
|
|
// Architecture
|
|
Architecture string `json:"architecture"`
|
|
|
|
// Boot type
|
|
BootType string `json:"bootType"`
|
|
|
|
// Bootable
|
|
Bootable bool `json:"bootable"`
|
|
|
|
// CdPresentedTo
|
|
CdPresentedTo interface{} `json:"cdPresentedTo"`
|
|
|
|
// ComputeCI ID
|
|
ComputeCIID uint64 `json:"computeciId"`
|
|
|
|
// Deleted time
|
|
DeletedTime uint64 `json:"deletedTime"`
|
|
|
|
// Description
|
|
Description string `json:"desc"`
|
|
|
|
// List of drivers
|
|
Drivers []string `json:"drivers"`
|
|
|
|
// Enabled
|
|
Enabled bool `json:"enabled"`
|
|
|
|
// Grid ID
|
|
GID uint64 `json:"gid"`
|
|
|
|
// GUID
|
|
GUID uint64 `json:"guid"`
|
|
|
|
// History
|
|
History ListHistories `json:"history"`
|
|
|
|
// HotResize
|
|
HotResize bool `json:"hotResize"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Last modified
|
|
LastModified uint64 `json:"lastModified"`
|
|
|
|
// Link to
|
|
LinkTo uint64 `json:"linkTo"`
|
|
|
|
// Milestones
|
|
Milestones uint64 `json:"milestones"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// NetworkInterfaceNaming
|
|
NetworkInterfaceNaming string `json:"networkInterfaceNaming"`
|
|
|
|
// Password
|
|
Password string `json:"password"`
|
|
|
|
// Pool
|
|
Pool string `json:"pool"`
|
|
|
|
// Present to
|
|
PresentTo []uint64 `json:"presentTo"`
|
|
|
|
// ProviderName
|
|
ProviderName string `json:"provider_name"`
|
|
|
|
// Purge attempts
|
|
PurgeAttempts uint64 `json:"purgeAttempts"`
|
|
|
|
// Resource ID
|
|
ResID string `json:"resId"`
|
|
|
|
// RescueCD
|
|
RescueCD bool `json:"rescuecd"`
|
|
|
|
// SepID
|
|
SepID uint64 `json:"sepId"`
|
|
|
|
// SharedWith list
|
|
SharedWith []uint64 `json:"sharedWith"`
|
|
|
|
// Size
|
|
Size uint64 `json:"size"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
|
|
// Tech status
|
|
TechStatus string `json:"techStatus"`
|
|
|
|
// Type
|
|
Type string `json:"type"`
|
|
|
|
// Username
|
|
Username string `json:"username"`
|
|
|
|
// Version
|
|
Version string `json:"version"`
|
|
}
|