resource

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PageSize = 100

PageSize is a number of read resources in one call. It is used for resources with pagination.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterReader

type ClusterReader struct {
}

ClusterReader structure for a Reader which read an array of clusters.

func (*ClusterReader) ReadResources

func (cr *ClusterReader) ReadResources(ctx context.Context, client *onego.Client) ([]Resource, error)

ReadResources reads an array of clusters.

type HostReader

type HostReader struct {
}

HostReader structure for a Reader which read an array of hosts.

func (*HostReader) ReadResources

func (hr *HostReader) ReadResources(ctx context.Context, client *onego.Client) ([]Resource, error)

ReadResources reads an array of hosts.

type Resource

type Resource interface {
	ID() (int, error)
	Attribute(path string) (string, error)
}

Resource interface represents resource from OpenNebula.

type UserReader

type UserReader struct {
}

UserReader structure for a Reader which read an array of users.

func (*UserReader) ReadResources

func (ur *UserReader) ReadResources(ctx context.Context, client *onego.Client) ([]Resource, error)

ReadResources reads an array of users.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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