Documentation ¶
Index ¶
- func GetUnexpectedGophercloudErrorCode(err error) (int64, fail.Error)
- func IsServiceUnavailableError(err error) bool
- func New(auth stacks.AuthenticationOptions, authScope *gophercloud.AuthScope, ...) (*stack, fail.Error)
- func NormalizeError(err error) fail.Error
- func NullStack() api.Stack
- func OldNormalizeError(err error) fail.Error
- func ToAbstractIPVersion(v int) ipversion.Enum
- func ToGophercloudIPVersion(v ipversion.Enum) gophercloud.IPVersion
- type Router
- type RouterRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(auth stacks.AuthenticationOptions, authScope *gophercloud.AuthScope, cfg stacks.ConfigurationOptions, serviceVersions map[string]string) (*stack, fail.Error)
New authenticates and returns a stack pointer
func NormalizeError ¶
NormalizeError translates gophercloud or openstack error to SafeScale error
func OldNormalizeError ¶
OldNormalizeError translates gophercloud or openstack error to SafeScale error
func ToAbstractIPVersion ¶
ToAbstractIPVersion converts an int representation of IPVersion to an ipversion.Enum if v is invalid, returns ipversion.sIPv4
func ToGophercloudIPVersion ¶
func ToGophercloudIPVersion(v ipversion.Enum) gophercloud.IPVersion
ToGophercloudIPVersion converts ipversion.Enum (corresponding to SafeScale abstract) to gophercloud.IPVersion if v is invalid, returns gophercloud.IPv4
Types ¶
type Router ¶
type Router struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` // NetworkID is the Network ID which the router gateway is connected to. NetworkID string `json:"network_id,omitempty"` }
Router represents a router
type RouterRequest ¶
type RouterRequest struct { Name string `json:"name,omitempty"` // NetworkID is the Network ID which the router gateway is connected to. NetworkID string `json:"network_id,omitempty"` }
RouterRequest represents a router request
Click to show internal directories.
Click to hide internal directories.