Documentation ¶
Index ¶
- func Delete(restClient *client.RestClient, securitygroupId string, ...) error
- func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]SecurityGroupInfo, error)
- func ListRule(restClient *client.RestClient, securitygroupId string, ...) (*[]SecurityGroupRules, error)
- type SecurityGroupInfo
- type SecurityGroupRules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(restClient *client.RestClient, securitygroupId string, requestOpts *client.RequestOpts) error
func List ¶
func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]SecurityGroupInfo, error)
func ListRule ¶
func ListRule(restClient *client.RestClient, securitygroupId string, requestOpts *client.RequestOpts) (*[]SecurityGroupRules, error)
Types ¶
type SecurityGroupInfo ¶
type SecurityGroupInfo struct { ID string Name string TenantID string Creator string State string CreatedAt string Protection int Rules []SecurityGroupRules RulesCount int Description string AsID string }
func Create ¶
func Create(restClient *client.RestClient, requestOpts *client.RequestOpts) (*SecurityGroupInfo, error)
func Get ¶
func Get(restClient *client.RestClient, securitygroupId string, requestOpts *client.RequestOpts) (*SecurityGroupInfo, error)
type SecurityGroupRules ¶
type SecurityGroupRules struct { ID string `json:"id"` SecGroupID string `json:"secgroupId"` Name string `json:"name"` Type string `json:"type"` Port string `json:"port"` Target string `json:"target"` Protocol string `json:"protocol"` Creator string `json:"creator"` CreatedAt string `json:"createdAt"` }
Click to show internal directories.
Click to hide internal directories.