huaweicloud

package
v21.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New authenticates and return interface stack

func NormalizeError

func NormalizeError(err error) fail.Error

NormalizeError translates gophercloud or openstack error to SafeScale error

func NullStack

func NullStack() *stack

NullStack is not exposed through API, is needed essentially by tests

Types

type FloatingIP

type FloatingIP struct {
	ID              string `json:"id"`
	Status          string `json:"status"`
	Type            string `json:"type"`
	PublicIPAddress string `json:"public_ip_address"`
	TenantID        string `json:"tenant_id"`
	CreateTime      string `json:"create_time"`
	BandwidthSize   int    `json:"bandwidth_size"`
}

FloatingIP represents a FlexibleEngine Floating IP

type ListOpts

type ListOpts struct {
	Marker string `json:"marker,omitempty"`
	Limit  int    `json:"limit,omitempty"`
}

ListOpts to define parameter of list

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 VPC

type VPC struct {
	ID      string `json:"id"`
	Name    string `json:"name,omitempty"`
	CIDR    string `json:"cidr,omitempty"`
	Status  string `json:"status,omitempty"`
	Network *networks.Network
	Router  *routers.Router
}

VPC contains information about a VPC

type VPCRequest

type VPCRequest struct {
	Name string `json:"name"`
	CIDR string `json:"cidr"`
}

VPCRequest defines a request to create a VPC

Jump to

Keyboard shortcuts

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