Documentation ¶
Index ¶
- func ChangeSecurityGroup(restClient *client.RestClient, serverId string, ...) error
- func Delete(restClient *client.RestClient, serverId string, macAddr string, ...) error
- func List(restClient *client.RestClient, serverId string, ...) (*[]VmNicInfo, error)
- func Put(restClient *client.RestClient, serverId string, ...)
- type SecurityGroupIDs
- type SecurityGroupInfo
- type VNicReqInfo
- type VmNicInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeSecurityGroup ¶ added in v0.5.3
func ChangeSecurityGroup(restClient *client.RestClient, serverId string, requestOpts *client.RequestOpts, nicMac string, sgIds []string) error
updateNIC
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)
func Put ¶ added in v0.3.15
func Put(restClient *client.RestClient, serverId string, requestOpts *client.RequestOpts, nicMac string)
updateNIC
Types ¶
type SecurityGroupIDs ¶ added in v0.5.3
type SecurityGroupIDs struct {
Secgroups []server.SecGroupInfo `json:"secgroups" required:"false"`
}
type SecurityGroupInfo ¶ added in v0.1.4
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 []SecurityGroupInfo `json:"secgroupMapInfo"` 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)
Click to show internal directories.
Click to hide internal directories.