Documentation
¶
Overview ¶
API to manage FLIPGroup instances
Index ¶
- type ComputeAddRequest
- type ComputeRemoveRequest
- type CreateRequest
- type DeleteRequest
- type EditRequest
- type FLIPGroup
- func (f FLIPGroup) ComputeAdd(ctx context.Context, req ComputeAddRequest) (bool, error)
- func (f FLIPGroup) ComputeRemove(ctx context.Context, req ComputeRemoveRequest) (bool, error)
- func (f FLIPGroup) Create(ctx context.Context, req CreateRequest) (*RecordFLIPGroup, error)
- func (f FLIPGroup) Delete(ctx context.Context, req DeleteRequest) (bool, error)
- func (f FLIPGroup) Edit(ctx context.Context, req EditRequest) (bool, error)
- func (f FLIPGroup) Get(ctx context.Context, req GetRequest) (*ItemFLIPGroup, error)
- func (f FLIPGroup) List(ctx context.Context, req ListRequest) (ListFLIPGroups, error)
- type GetRequest
- type ItemFLIPGroup
- type ListFLIPGroups
- type ListRequest
- type RecordFLIPGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeAddRequest ¶
type ComputeAddRequest struct {
// ID of the Floating IP group to add compute instance to
// Required: true
FLIPGroupID uint64 `url:"flipgroupId" json:"flipgroupId"`
// ID of the compute instance to add to this group
// Required: true
ComputeID uint64 `url:"computeId" json:"computeId"`
}
Request struct for add compute instance
type ComputeRemoveRequest ¶
type ComputeRemoveRequest struct {
// ID of the Floating IP group to remove compute instance from
// Required: true
FLIPGroupID uint64 `url:"flipgroupId" json:"flipgroupId"`
// ID of the compute instance to remove
// Required: true
ComputeID uint64 `url:"computeId" json:"computeId"`
}
Request struct for remove compute instance
type CreateRequest ¶
type CreateRequest struct {
// Account ID
// Required: true
AccountID uint64 `url:"accountId" json:"accountId"`
// FLIPGroup name
// Required: true
Name string `url:"name" json:"name"`
// Network type
// Should be one of:
// - EXTNET
// - VINS
// Required: true
NetType string `url:"netType" json:"netType"`
// ID of external network or VINS
// Required: true
NetID uint64 `url:"netId" json:"netId"`
// Type of client
// - 'compute'
// - 'vins' (will be later)
// Required: true
ClientType string `url:"clientType" json:"clientType"`
// IP address to associate with this group. If empty, the platform will autoselect IP address
// Required: false
IP string `url:"ip,omitempty" json:"ip,omitempty"`
// Text description of this FLIPGorup instance
// Required: false
Description string `url:"desc,omitempty" json:"desc,omitempty"`
}
Request struct for create FLIPGroup
type DeleteRequest ¶
type DeleteRequest struct {
// FLIPGroup ID
// Required: true
FLIPGroupID uint64 `url:"flipgroupId" json:"flipgroupId"`
}
Request struct for delete FLIPGroup
type EditRequest ¶
type EditRequest struct {
// FLIPGroup ID
// Required: true
FLIPGroupID uint64 `url:"flipgroupId" json:"flipgroupId"`
// FLIPGroup name
// Required: true
Name string `url:"name,omitempty" json:"name,omitempty"`
// FLIPGroup description
// Required: true
Description string `url:"desc,omitempty" json:"desc,omitempty"`
}
Request struct for edit FLIPGroup
type FLIPGroup ¶
type FLIPGroup struct {
// contains filtered or unexported fields
}
Structure for creating request to FLIPGroup
func (FLIPGroup) ComputeAdd ¶
ComputeAdd add compute instance to the Floating IP group
func (FLIPGroup) ComputeRemove ¶
ComputeRemove remove compute instance from the Floating IP group
func (FLIPGroup) Create ¶
func (f FLIPGroup) Create(ctx context.Context, req CreateRequest) (*RecordFLIPGroup, error)
Create method will create a new FLIPGorup in the specified Account
func (FLIPGroup) Get ¶
func (f FLIPGroup) Get(ctx context.Context, req GetRequest) (*ItemFLIPGroup, error)
Get gets details of the specified Floating IP group
func (FLIPGroup) List ¶
func (f FLIPGroup) List(ctx context.Context, req ListRequest) (ListFLIPGroups, error)
List gets list FLIPGroup managed cluster instances available to the current user
type GetRequest ¶
type GetRequest struct {
// FLIPGroup ID
// Required: true
FLIPGroupID uint64 `url:"flipgroupId" json:"flipgroupId"`
}
Request struct for get information about FLIPGroup
type ItemFLIPGroup ¶
type ItemFLIPGroup struct {
// Account ID
AccountID uint64 `json:"accountId"`
// Account name
AccountName string `json:"accountName"`
// List of client IDs
ClientIDs []uint64 `json:"clientIds"`
// Client names list
ClientNames []string `json:"clientNames"`
// Client type
ClientType string `json:"clientType"`
// Connection ID
ConnID uint64 `json:"connId"`
// Connection type
ConnType string `json:"connType"`
// Created by
CreatedBy string `json:"createdBy"`
// Created time
CreatedTime uint64 `json:"createdTime"`
// Default GW
DefaultGW string `json:"defaultGW"`
// Deleted by
DeletedBy string `json:"deletedBy"`
// Deleted time
DeletedTime uint64 `json:"deletedTime"`
// Description
Description string `json:"desc"`
// Grid ID
GID uint64 `json:"gid"`
// GUID
GUID uint64 `json:"guid"`
// ID
ID uint64 `json:"id"`
// IP
IP string `json:"ip"`
// Milestones
Milestones uint64 `json:"milestones"`
// Name
Name string `json:"name"`
// Network ID
NetID uint64 `json:"netId"`
// Network type
NetType string `json:"netType"`
// Network
Network string `json:"network"`
// Resource group ID
RGID uint64 `json:"rgId"`
// Resource group name
RGName string `json:"rgName"`
// Status
Status string `json:"status"`
// Updated by
UpdatedBy string `json:"updatedBy"`
// Updated time
UpdatedTime uint64 `json:"updatedTime"`
}
Detailed information about FLIPGroup
type ListRequest ¶
type ListRequest struct {
// Page number
// Required: false
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
// Page size
// Required: false
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
}
Request struct for get list FLIPGroup available to the current user