subnet

package
v0.0.0-...-8fc61e2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(restClient *client.RestClient, addr string, requestOpts *client.RequestOpts) error

func List

func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]SubnetInfo, error)

func ListCreatableSubnet

func ListCreatableSubnet(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]SubnetInfo, error)

Types

type SubnetInfo

type SubnetInfo struct {
	ID          string
	TenantId    string
	Addr        string
	Prefix      string
	Gateway     string
	Creator     string
	Protection  int
	Name        string
	State       string
	Vlan        int
	CreatedAt   string
	NicCount    int
	Description string
}

func Create

func Create(restClient *client.RestClient, requestOpts *client.RequestOpts) (*SubnetInfo, error)

func Get

func Get(restClient *client.RestClient, subnetId string, requestOpts *client.RequestOpts) (*SubnetInfo, error)

type VNetworkReqInfo

type VNetworkReqInfo struct {
	Name       string `json:"name" required:"true"`
	Addr       string `json:"addr" required:"true"`
	Prefix     string `json:"prefix" required:"true"`
	Gateway    string `json:"gateway" required:"false"`
	Protection int    `json:"protection" required:"false"`
}

Jump to

Keyboard shortcuts

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