Documentation ¶
Index ¶
- func DeleteURL(c *golangsdk.ServiceClient, securityGroupID string) string
- func GetURL(c *golangsdk.ServiceClient, securityGroupID string) string
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type GetResult
- type ListOpts
- type ListResult
- type ListSecurityGroupsOptsBuilder
- type RespSecurityGroupEntity
- type SecurityGroups
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type CreateOpts struct { Name string `json:"name,true"` Description string `json:"description,omitempty"` }
func (CreateOpts) ToSecurityGroupCreateMap ¶
func (opts CreateOpts) ToSecurityGroupCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*RespSecurityGroupEntity, error)
type DeleteResult ¶
func Delete ¶
func Delete(client *golangsdk.ServiceClient, securityGroupID string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) Extract ¶
func (r GetResult) Extract() (*RespSecurityGroupEntity, error)
type ListOpts ¶
func (ListOpts) ToListSecurityGroupsQuery ¶
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
func List ¶
func List(client *golangsdk.ServiceClient, opts ListSecurityGroupsOptsBuilder) (r ListResult)
func (ListResult) Extract ¶
func (r ListResult) Extract() (*SecurityGroups, error)
type RespSecurityGroupEntity ¶
type RespSecurityGroupEntity struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` SecurityGroupRules []common.RespSecurityGroupRuleEntity `json:"security_group_rules"` }
RespSecurityGroupEntity 获取安全组信息时候,返回结构体
type SecurityGroups ¶
type SecurityGroups struct { SecurityGroups []RespSecurityGroupEntity `json:"security_groups"` Count int `json:"count"` }
SecurityGroups 安全组列表对象
Click to show internal directories.
Click to hide internal directories.