Documentation ¶
Index ¶
- type Reader
- func (r *Reader) ListAllActiveVirtualMachinesForUser(userID int) ([]*resources.VirtualMachine, error)
- func (r *Reader) ListAllClusters() ([]*resources.Cluster, error)
- func (r *Reader) ListAllHosts() ([]*resources.Host, error)
- func (r *Reader) ListAllImages() ([]*resources.Image, error)
- func (r *Reader) ListAllUsers() ([]*resources.User, error)
- func (r *Reader) ListAllVirtualMachines(pageOffset int) ([]*resources.VirtualMachine, error)
- func (r *Reader) RetrieveVirtualMachineInfo(id int) (*resources.VirtualMachine, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader structure to list resources and retrieve info for specific resource from OpenNebula.
func CreateReader ¶
CreateReader creates reader with onego client, rate limiter and timeout.
func (*Reader) ListAllActiveVirtualMachinesForUser ¶
func (r *Reader) ListAllActiveVirtualMachinesForUser(userID int) ([]*resources.VirtualMachine, error)
ListAllActiveVirtualMachinesForUser lists all virtual machines by page offset specific for a user given by id.
func (*Reader) ListAllClusters ¶
ListAllClusters lists all clusters.
func (*Reader) ListAllHosts ¶
ListAllHosts lists all hosts.
func (*Reader) ListAllImages ¶
ListAllImages lists all images.
func (*Reader) ListAllUsers ¶
ListAllUsers lists all users.
func (*Reader) ListAllVirtualMachines ¶
func (r *Reader) ListAllVirtualMachines(pageOffset int) ([]*resources.VirtualMachine, error)
ListAllVirtualMachines lists all virtual machines by page offset.
func (*Reader) RetrieveVirtualMachineInfo ¶
func (r *Reader) RetrieveVirtualMachineInfo(id int) (*resources.VirtualMachine, error)
RetrieveVirtualMachineInfo returns virtual machines info by id.
Click to show internal directories.
Click to hide internal directories.