Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { XMLName xml.Name `xml:"IMAGE"` ID int `xml:"ID,omitempty"` UID int `xml:"UID,omitempty"` GID int `xml:"GID,omitempty"` UName string `xml:"UNAME,omitempty"` GName string `xml:"GNAME,omitempty"` Name string `xml:"NAME"` LockInfos *shared.Lock `xml:"LOCK,omitempty"` Permissions *shared.Permissions `xml:"PERMISSIONS,omitempty"` Type string `xml:"TYPE,omitempty"` DiskType *int `xml:"DISK_TYPE,omitempty"` Persistent *int `xml:"PERSISTENT,omitempty"` RegTime int `xml:"REGTIME,omitempty"` Source string `xml:"SOURCE,omitempty"` Path string `xml:"PATH,omitempty"` Fs string `xml:"FS,omitempty"` Driver string `xml:"DRIVER,omitempty"` Format string `xml:"FORMAT,omitempty"` Size int `xml:"SIZE,omitempty"` StateRaw int `xml:"STATE,omitempty"` RunningVMs int `xml:"RUNNING_VMS,omitempty"` CloningOps int `xml:"CLONING_OPS,omitempty"` CloningID int `xml:"CLONING_ID,omitempty"` TargetSnapshot int `xml:"TARGET_SNAPSHOT,omitempty"` DatastoreID *int `xml:"DATASTORE_ID,omitempty"` Datastore string `xml:"DATASTORE,omitempty"` VMs shared.EntitiesID `xml:"VMS,omitempty"` Clones shared.EntitiesID `xml:"CLONES,omitempty"` AppClones shared.EntitiesID `xml:"APP_CLONES,omitempty"` Snapshots shared.DiskSnapshot `xml:"SNAPSHOTS,omitempty"` Template Template `xml:"TEMPLATE"` }
Image represents an OpenNebula Image
func (*Image) StateString ¶
StateString returns the state in string format
type State ¶
type State int
State is the state of the Image
const ( // Init image is being initialized Init State = iota // Ready image is ready to be used Ready // Used image is in use Used // Disabled image is in disabled Disabled // Locked image is locked Locked // Error image is in error state Error // Clone image is in clone state Clone // Delete image is in delete state Delete // UsedPers image is in use and persistent UsedPers // LockUsed image is in locked state (non-persistent) LockUsed // LockUsedPers image is in locked state (persistent) LockUsedPers )
type Template ¶
Template is the dynamic part of the image entity
Click to show internal directories.
Click to hide internal directories.