Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReq ¶
type CreateResp ¶
type CreateResp struct{}
func Create ¶
func Create(ctx *cloudplatform.Context, req *CreateReq) (*CreateResp, error)
Create 添加IP地址
type DeleteResp ¶
type DeleteResp struct{}
func Delete ¶
func Delete(ctx *cloudplatform.Context, req *DeleteReq) (*DeleteResp, error)
Delete 删除实例IP
type ListReq ¶
type ListResp ¶
type ListResp struct {
Data []struct {
Id int `json:"id"`
Ip string `json:"ip"`
Hostid int `json:"hostid"`
Hostname string `json:"hostname"`
Kvm string `json:"kvm"`
} `json:"data"`
Meta struct {
Total int `json:"total"`
TotalPage int `json:"total_page"`
Page int `json:"page"`
PerPage int `json:"per_page"`
} `json:"meta"`
}
Click to show internal directories.
Click to hide internal directories.