Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Ready datastore is ready Ready = iota // Disable datastore is disabled Disable )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct { XMLName xml.Name `xml:"DATASTORE"` 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"` Permissions *shared.Permissions `xml:"PERMISSIONS,omitempty"` DSMad string `xml:"DS_MAD,omitempty"` TMMad string `xml:"TM_MAD,omitempty"` BasePath string `xml:"BASE_PATH,omitempty"` Type string `xml:"TYPE,omitempty"` DiskType string `xml:"DISK_TYPE,omitempty"` StateRaw int `xml:"STATE,omitempty"` Clusters shared.EntitiesID `xml:"CLUSTERS,omitempty"` TotalMB int `xml:"TOTAL_MB,omitempty"` FreeMB int `xml:"FREE_MB,omitempty"` UsedMB int `xml:"USED_MB,omitempty"` Images shared.EntitiesID `xml:"IMAGES,omitempty"` Template Template `xml:"TEMPLATE,omitempty"` }
Datastore represents an OpenNebula Datastore
func (*Datastore) StateString ¶
StateString returns the state in string format
type Pool ¶
type Pool struct { XMLName xml.Name `xml:"DATASTORE_POOL"` Datastores []Datastore `xml:"DATASTORE"` }
Pool represents an OpenNebula Datastore pool
Click to show internal directories.
Click to hide internal directories.