novaservice

package
v1.0.0-...-3228e4f Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: LGPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nova

type Nova struct {
	testservices.ServiceInstance
	// contains filtered or unexported fields
}

Nova implements a OpenStack Nova testing service and contains the service double's internal state.

func New

func New(hostURL, versionPath, tenantId, region string, identityService, fallbackIdentity identityservice.IdentityService) *Nova

New creates an instance of the Nova object, given the parameters.

func (*Nova) AddNeutronModel

func (n *Nova) AddNeutronModel(neutronModel *neutronmodel.NeutronModel)

AddNeutronModel setups up the test double to use Neutron networking which requires shared data between the nova and neutron test doubles.

func (*Nova) Endpoints

func (n *Nova) Endpoints() []identityservice.Endpoint

func (*Nova) HandleRoot

func (n *Nova) HandleRoot(w http.ResponseWriter, r *http.Request)

func (*Nova) SetAvailabilityZones

func (n *Nova) SetAvailabilityZones(zones ...nova.AvailabilityZone)

SetAvailabilityZones sets the availability zones for setting availability zones.

Note: this is implemented as a public method rather than as an HTTP API for two reasons: availability zones are created indirectly via "host aggregates", which are a cloud-provider concept that we have not implemented, and because we want to be able to synthesize zone state changes.

func (*Nova) SetupHTTP

func (n *Nova) SetupHTTP(mux *http.ServeMux)

SetupHTTP attaches all the needed handlers to provide the HTTP API.

func (*Nova) SetupRootHandler

func (n *Nova) SetupRootHandler(mux *http.ServeMux)

func (*Nova) Stop

func (n *Nova) Stop()

func (*Nova) V3Endpoints

func (n *Nova) V3Endpoints() []identityservice.V3Endpoint

Jump to

Keyboard shortcuts

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