processor

package
v0.0.0-...-371bc73 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	ListProjects(chan projects.Project)
	ListResources(chan projects.Project, chan resource.Resource, gophercloud.AuthOptions)
}

Interface to process Resource data.

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor to process resource data.

func CreateProcessor

func CreateProcessor(proc processorI) *Processor

CreateProcessor creates Processor to manage reading from OpenNebula.

func (*Processor) ListProjects

func (p *Processor) ListProjects(projChan chan projects.Project)

ListProjects lists projects from Openstack to create individual service clients.

func (*Processor) ListResources

func (p *Processor) ListResources(projChan chan projects.Project, read chan resource.Resource,
	opts gophercloud.AuthOptions)

ListResources calls method to list resource from OpenNebula.

Jump to

Keyboard shortcuts

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