Documentation ¶
Index ¶
- Variables
- type HttpService
- type ServerError
- func NewAddFlavorError(id string) *ServerError
- func NewAvailabilityZoneIsNotAvailableError() *ServerError
- func NewCannotAddTwiceRuleToGroupError(ruleId, groupId string) *ServerError
- func NewFloatingIPExistsError(ipID string) *ServerError
- func NewFloatingIPNotFoundError(address string) *ServerError
- func NewIPLimitExceededError() *ServerError
- func NewInternalServerError(message string) *ServerError
- func NewInvalidDirectionSecurityGroupError(direction string) *ServerError
- func NewNetworkAlreadyExistsError(id string) *ServerError
- func NewNetworkNotFoundError(network string) *ServerError
- func NewNeutronSecurityGroupRuleAlreadyExistsError(parentId string) *ServerError
- func NewNoFloatingIPsError(serverId, ipId string) *ServerError
- func NewNoFloatingIPsToRemoveError(serverId string) *ServerError
- func NewNoMoreFloatingIpsError() *ServerError
- func NewNoSuchFlavorError(id string) *ServerError
- func NewNotFoundError(message string) *ServerError
- func NewRateLimitExceededError() *ServerError
- func NewSecurityGroupAlreadyExistsError(id string) *ServerError
- func NewSecurityGroupByIDNotFoundError(groupId string) *ServerError
- func NewSecurityGroupByNameNotFoundError(name string) *ServerError
- func NewSecurityGroupRuleAlreadyExistsError(id string) *ServerError
- func NewSecurityGroupRuleInvalidCIDR(cidr string) *ServerError
- func NewSecurityGroupRuleInvalidEthernetType(ethernetType string) *ServerError
- func NewSecurityGroupRuleNotFoundError(ruleId string) *ServerError
- func NewSecurityGroupRuleParameterConflict(param1 string, value1 string, param2 string, value2 string) *ServerError
- func NewServerAlreadyExistsError(id string) *ServerError
- func NewServerBelongsToGroupError(serverId, groupId string) *ServerError
- func NewServerByIDNotFoundError(id string) *ServerError
- func NewServerByNameNotFoundError(name string) *ServerError
- func NewServerDoesNotBelongToGroupError(serverId, groupId string) *ServerError
- func NewServerDoesNotBelongToGroupsError(serverId string) *ServerError
- func NewServerHasFloatingIPError(serverId, ipId string) *ServerError
- func NewSubnetAlreadyExistsError(id string) *ServerError
- func NewSubnetNotFoundError(subnet string) *ServerError
- func NewUnknownSecurityGroupError(groupId string) *ServerError
- type ServiceInstance
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 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()
Functions ¶
This section is empty.
Types ¶
type HttpService ¶
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 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 NewSubnetAlreadyExistsError ¶
func NewSubnetAlreadyExistsError(id string) *ServerError
func NewSubnetNotFoundError ¶
func NewSubnetNotFoundError(subnet string) *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.
Click to show internal directories.
Click to hide internal directories.