Documentation ¶
Index ¶
- type Neutron
- func (n *Neutron) AddNeutronModel(neutronModel *neutronmodel.NeutronModel)
- func (n *Neutron) Endpoints() []identityservice.Endpoint
- func (n *Neutron) HandleRoot(w http.ResponseWriter, r *http.Request)
- func (n *Neutron) SetupHTTP(mux *http.ServeMux)
- func (n *Neutron) SetupRootHandler(mux *http.ServeMux)
- func (n *Neutron) Stop()
- func (n *Neutron) V3Endpoints() []identityservice.V3Endpoint
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) SetupRootHandler ¶
func (*Neutron) V3Endpoints ¶
func (n *Neutron) V3Endpoints() []identityservice.V3Endpoint
Click to show internal directories.
Click to hide internal directories.