reader

package
v0.0.0-...-1399f6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func CreateReader(oneClient *onego.Client, limiter *rate.Limiter) *Reader

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

func (r *Reader) ListAllClusters() ([]*resources.Cluster, error)

ListAllClusters lists all clusters.

func (*Reader) ListAllHosts

func (r *Reader) ListAllHosts() ([]*resources.Host, error)

ListAllHosts lists all hosts.

func (*Reader) ListAllImages

func (r *Reader) ListAllImages() ([]*resources.Image, error)

ListAllImages lists all images.

func (*Reader) ListAllUsers

func (r *Reader) ListAllUsers() ([]*resources.User, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL