Documentation ¶
Index ¶
- Constants
- func CreateResourceWithRetry(ctx context.Context, createFunc func() error, ...) error
- func GetAvailableSDNs(c *gophercloud.ServiceClient) ([]string, error)
- func RetryNeutronError(actual error, retryableErrors []ExpectedNeutronError, retryUnknown bool) bool
- func SelectSDN(c *gophercloud.ServiceClient, sdn string) error
- type ExpectedNeutronError
- type NeutronError
- type SDNExt
Constants ¶
View Source
const ( NeutronErrTypeDBObjectDuplicateEntry = "NeutronDbObjectDuplicateEntry" NeutronErrIPAddressGenerationFailure = "IpAddressGenerationFailure" NeutronErrExternalIPAddressExhausted = "ExternalIpAddressExhausted" )
View Source
const ( NeutronSDN = "neutron" SprutSDN = "sprut" SearchInAllSDNs = "all" DefaultSDN = NeutronSDN )
Variables ¶
This section is empty.
Functions ¶
func CreateResourceWithRetry ¶ added in v0.8.2
func GetAvailableSDNs ¶ added in v0.7.4
func GetAvailableSDNs(c *gophercloud.ServiceClient) ([]string, error)
func RetryNeutronError ¶ added in v0.8.2
func RetryNeutronError(actual error, retryableErrors []ExpectedNeutronError, retryUnknown bool) bool
func SelectSDN ¶
func SelectSDN(c *gophercloud.ServiceClient, sdn string) error
Types ¶
type ExpectedNeutronError ¶ added in v0.8.2
type NeutronError ¶ added in v0.8.2
type NeutronError struct { Message string `json:"message"` Type string `json:"type"` Detail string `json:"detail"` }
func DecodeNeutronError ¶ added in v0.8.2
func DecodeNeutronError(body []byte) (*NeutronError, error)
Click to show internal directories.
Click to hide internal directories.