neutronservice

package
v3.0.0-...-1c69814 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Neutron

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

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

func New

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

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

func (*Neutron) AddNeutronModel

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

AddNeutronModel setups up the test double for shared data between the nova and neutron test doubles. Required for the neutron test double.

func (*Neutron) Endpoints

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

func (*Neutron) HandleRoot

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

func (*Neutron) SetupHTTP

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

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

func (*Neutron) SetupRootHandler

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

func (*Neutron) Stop

func (n *Neutron) Stop()

func (*Neutron) V3Endpoints

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

Jump to

Keyboard shortcuts

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