subnet

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

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)

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)

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