Documentation ¶
Index ¶
- Variables
- func SaveImage(name string, image *ImageData)
- type Client
- func (c *Client) AllocateImage(image *ImageData, datastoreID int) error
- func (c *Client) CheckImageExistence(name string) (*ImageData, error)
- func (c *Client) DeleteImage(imgID int) error
- func (c *Client) FetchDatastore(req *Request) (*Datastore, error)
- func (c *Client) FetchImage(req *Request) (*ImageData, error)
- func (c *Client) GetImageState(imID int) (*ImageData, error)
- func (c *Client) WaitForUnused(imID, tries, duration int, unit time.Duration) error
- type Datastore
- type DatastorePool
- type ImageData
- type ImagePersistentEnum
- type ImagePool
- type Request
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Client ¶
func (*Client) AllocateImage ¶
AllocateImage allocates an image in OpenNebula
func (*Client) CheckImageExistence ¶
func (*Client) DeleteImage ¶
type DatastorePool ¶
type ImageData ¶
type ImageData struct { XMLName xml.Name `xml:"IMAGE"` Name string `xml:"NAME"` ID int `xml:"ID,omitempty"` Description string Type string Persistent ImagePersistentEnum `xml:"PERSISTENT"` PersistentType string DevPrefix string Target string Driver string Path string Source string DiskType string AdapterType string ReadOnly bool Md5 string Sha1 string Size int `xml:"SIZE"` RunningVMs int `xml:"RUNNING_VMS,omitempty"` }
type ImagePersistentEnum ¶
type ImagePersistentEnum string
const ( ImagePersistentYES ImagePersistentEnum = "YES" ImagePersistentNO ImagePersistentEnum = "NO" )
Click to show internal directories.
Click to hide internal directories.