testservices

package
Version: 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailabilityZoneIsNotAvailable = NewAvailabilityZoneIsNotAvailableError()

AvailabilityZoneIsNotAvailable corresponds to "HTTP 400 The requested availability zone is not available"

View Source
var ForbiddenRateLimitError = NewForbiddenRateLimitError()
View Source
var IPLimitExceeded = NewIPLimitExceededError()

IPLimitExceeded corresponds to "HTTP 413 Maximum number of floating ips exceeded"

View Source
var NoMoreFloatingIPs = NewNoMoreFloatingIpsError()

NoMoreFloatingIPs corresponds to "HTTP 404 Zero floating ips available."

View Source
var RateLimitExceededError = NewRateLimitExceededError()

Internal Openstack errors.

View Source
var ServiceUnavailRateLimitError = NewServiceUnavailRateLimitError()
View Source
var TooManyRequestsError = NewTooManyRequestsError()

Functions

This section is empty.

Types

type HttpService

type HttpService interface {
	SetupHTTP(mux *http.ServeMux)
	Stop()
}

An HttpService provides the HTTP API for a service double.

type ServerError

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

func NewAddFlavorError

func NewAddFlavorError(id string) *ServerError

func NewAvailabilityZoneIsNotAvailableError

func NewAvailabilityZoneIsNotAvailableError() *ServerError

func NewCannotAddTwiceRuleToGroupError

func NewCannotAddTwiceRuleToGroupError(ruleId, groupId string) *ServerError

func NewFloatingIPExistsError

func NewFloatingIPExistsError(ipID string) *ServerError

func NewFloatingIPNotFoundError

func NewFloatingIPNotFoundError(address string) *ServerError

func NewForbiddenRateLimitError

func NewForbiddenRateLimitError() *ServerError

func NewIPLimitExceededError

func NewIPLimitExceededError() *ServerError

func NewInternalServerError

func NewInternalServerError(message string) *ServerError

func NewInvalidDirectionSecurityGroupError

func NewInvalidDirectionSecurityGroupError(direction string) *ServerError

func NewNetworkAlreadyExistsError

func NewNetworkAlreadyExistsError(id string) *ServerError

func NewNetworkNotFoundError

func NewNetworkNotFoundError(network string) *ServerError

func NewNeutronSecurityGroupRuleAlreadyExistsError

func NewNeutronSecurityGroupRuleAlreadyExistsError(parentId string) *ServerError

func NewNoFloatingIPsError

func NewNoFloatingIPsError(serverId, ipId string) *ServerError

func NewNoFloatingIPsToRemoveError

func NewNoFloatingIPsToRemoveError(serverId string) *ServerError

func NewNoMoreFloatingIpsError

func NewNoMoreFloatingIpsError() *ServerError

func NewNoSuchFlavorError

func NewNoSuchFlavorError(id string) *ServerError

func NewNotFoundError

func NewNotFoundError(message string) *ServerError

func NewRateLimitExceededError

func NewRateLimitExceededError() *ServerError

func NewSecurityGroupAlreadyExistsError

func NewSecurityGroupAlreadyExistsError(id string) *ServerError

func NewSecurityGroupByIDNotFoundError

func NewSecurityGroupByIDNotFoundError(groupId string) *ServerError

func NewSecurityGroupByNameNotFoundError

func NewSecurityGroupByNameNotFoundError(name string) *ServerError

func NewSecurityGroupRuleAlreadyExistsError

func NewSecurityGroupRuleAlreadyExistsError(id string) *ServerError

func NewSecurityGroupRuleInvalidCIDR

func NewSecurityGroupRuleInvalidCIDR(cidr string) *ServerError

func NewSecurityGroupRuleInvalidEthernetType

func NewSecurityGroupRuleInvalidEthernetType(ethernetType string) *ServerError

func NewSecurityGroupRuleNotFoundError

func NewSecurityGroupRuleNotFoundError(ruleId string) *ServerError

func NewSecurityGroupRuleParameterConflict

func NewSecurityGroupRuleParameterConflict(param1 string, value1 string, param2 string, value2 string) *ServerError

func NewServerAlreadyExistsError

func NewServerAlreadyExistsError(id string) *ServerError

func NewServerBelongsToGroupError

func NewServerBelongsToGroupError(serverId, groupId string) *ServerError

func NewServerByIDNotFoundError

func NewServerByIDNotFoundError(id string) *ServerError

func NewServerByNameNotFoundError

func NewServerByNameNotFoundError(name string) *ServerError

func NewServerDoesNotBelongToGroupError

func NewServerDoesNotBelongToGroupError(serverId, groupId string) *ServerError

func NewServerDoesNotBelongToGroupsError

func NewServerDoesNotBelongToGroupsError(serverId string) *ServerError

func NewServerHasFloatingIPError

func NewServerHasFloatingIPError(serverId, ipId string) *ServerError

func NewServiceUnavailRateLimitError

func NewServiceUnavailRateLimitError() *ServerError

func NewSubnetAlreadyExistsError

func NewSubnetAlreadyExistsError(id string) *ServerError

func NewSubnetNotFoundError

func NewSubnetNotFoundError(subnet string) *ServerError

func NewTooManyRequestsError

func NewTooManyRequestsError() *ServerError

func NewUnknownSecurityGroupError

func NewUnknownSecurityGroupError(groupId string) *ServerError

func (*ServerError) AsJSON

func (n *ServerError) AsJSON() string

func (*ServerError) Code

func (n *ServerError) Code() int

func (*ServerError) Error

func (n *ServerError) Error() string

func (*ServerError) Name

func (n *ServerError) Name() string

type ServiceInstance

type ServiceInstance struct {
	identityservice.ServiceProvider
	hook.TestService
	IdentityService identityservice.IdentityService
	// For Keystone V3, V2 is also accepted as an identity service
	// this represents that possibility.
	FallbackIdentityService identityservice.IdentityService
	Scheme                  string
	Hostname                string
	VersionPath             string
	TenantId                string
	Region                  string
	RegionID                string
}

A ServiceInstance is an Openstack module, one of nova, swift, glance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL