Files
decort-golang-sdk/pkg/cloudapi/image/models.go

215 lines
3.5 KiB
Go
Raw Normal View History

2022-10-03 16:56:47 +03:00
package image
2022-12-22 17:56:47 +03:00
// 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"`
2024-04-16 14:26:06 +03:00
// NetworkInterfaceNaming
NetworkInterfaceNaming string `json:"networkInterfaceNaming"`
2022-12-22 17:56:47 +03:00
// Pool
Pool string `json:"pool"`
// SepID
SepID uint64 `json:"sepId"`
// Size
Size uint64 `json:"size"`
// Status
Status string `json:"status"`
2025-09-19 13:45:58 +03:00
// Storage policy ID
StoragePolicyID uint64 `json:"storage_policy_id"`
2022-12-22 17:56:47 +03:00
// Type
Type string `json:"type"`
// Username
Username string `json:"username"`
// Virtual
Virtual bool `json:"virtual"`
2022-10-03 16:56:47 +03:00
}
2022-12-22 17:56:47 +03:00
// List of information about images
2023-07-07 12:40:03 +03:00
type ListImages struct {
// Data
Data []ItemImage `json:"data"`
// Entry count
EntryCount uint64 `json:"entryCount"`
}
2022-10-03 16:56:47 +03:00
2023-11-03 11:17:45 +03:00
// ListHistories of record image
type ListHistories []History
// History of record image
2022-10-03 16:56:47 +03:00
type History struct {
2022-12-22 17:56:47 +03:00
// GUID
GUID string `json:"guid"`
// ID
ID uint64 `json:"id"`
// Timestamp
2022-10-03 16:56:47 +03:00
Timestamp uint64 `json:"timestamp"`
}
2022-12-22 17:56:47 +03:00
// 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"`
2024-04-16 14:26:06 +03:00
// CdPresentedTo
CdPresentedTo interface{} `json:"cdPresentedTo"`
2022-12-22 17:56:47 +03:00
// 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
2023-11-03 11:17:45 +03:00
History ListHistories `json:"history"`
2022-12-22 17:56:47 +03:00
// 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"`
2024-04-16 14:26:06 +03:00
// NetworkInterfaceNaming
NetworkInterfaceNaming string `json:"networkInterfaceNaming"`
2022-12-22 17:56:47 +03:00
// Password
Password string `json:"password"`
// Pool
Pool string `json:"pool"`
2023-01-23 15:39:41 +03:00
// Present to
2025-04-09 11:21:07 +03:00
PresentTo map[string]uint64 `json:"presentTo"`
2023-01-23 15:39:41 +03:00
2022-12-22 17:56:47 +03:00
// 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"`
2025-04-09 11:21:07 +03:00
// snapshot ID
SnapshotID string `json:"snapshotId"`
2022-12-22 17:56:47 +03:00
// Status
Status string `json:"status"`
2025-08-29 12:51:25 +03:00
// Storage policy ID
StoragePolicyID uint64 `json:"storage_policy_id"`
2022-12-22 17:56:47 +03:00
// Tech status
TechStatus string `json:"techStatus"`
2025-11-14 17:38:59 +03:00
// Need to clean before destroy
ToClean bool `json:"to_clean"`
2022-12-22 17:56:47 +03:00
// Type
Type string `json:"type"`
// Username
Username string `json:"username"`
// Version
Version string `json:"version"`
2022-10-03 16:56:47 +03:00
}