nic

package
v0.0.0-...-9c72d28 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0, Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

func List

func List(restClient *client.RestClient, serverId string, requestOpts *client.RequestOpts) (*[]VmNicInfo, error)

Types

type VNicReqInfo

type VNicReqInfo struct {
	SubnetAddr string                             `json:"subnetAddr" required:"true"`
	VmId       string                             `json:"vmId" required:"true"`
	Type       string                             `json:"type" required:"true"`
	Secgroups  []securitygroup.SecurityGroupRules `json:"secgroups" required:"true"`
	IP         string                             `json:"ip" required:"true"`
}

type VmNicInfo

type VmNicInfo struct {
	TenantId        string
	VmId            string
	Type            string
	Mac             string
	Dev             string
	Ip              string
	SubnetAddr      string
	Creator         string
	CreatedAt       string
	VmName          string
	NetworkName     string
	AdaptiveIp      string
	State           string
	Template        string
	SpecName        string
	CpuNum          string
	MemSize         string
	VolumeSize      string
	Qos             int
	SecGroups       []securitygroup.SecurityGroupRules
	AdaptiveMapInfo interface{}
}

func Create

func Create(restClient *client.RestClient, serverId string, requestOpts *client.RequestOpts) (*VmNicInfo, error)

func Get

func Get(restClient *client.RestClient, serverId string, macAddr string, requestOpts *client.RequestOpts) (*VmNicInfo, error)

Jump to

Keyboard shortcuts

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