openstack

package
v22.11.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnexpectedGophercloudErrorCode

func GetUnexpectedGophercloudErrorCode(err error) (int64, fail.Error)

func IsServiceUnavailableError

func IsServiceUnavailableError(err error) bool

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

func NormalizeError(err error) fail.Error

NormalizeError translates gophercloud or openstack error to SafeScale error

func NullStack

func NullStack() api.Stack

NullStack returns a null value of the stack

func OldNormalizeError

func OldNormalizeError(err error) fail.Error

OldNormalizeError translates gophercloud or openstack error to SafeScale error

func ToAbstractIPVersion

func ToAbstractIPVersion(v int) ipversion.Enum

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL