package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev
# Packages
secgroups unit tests.
# Functions
AddServer will associate a server and a security group, enforcing the rules of the group on the server.
Create will create a new security group.
CreateRule will add a new rule to an existing security group (whose ID is specified in CreateRuleOpts).
Delete will permanently delete a security group from the project.
DeleteRule will permanently delete a rule from a security group.
ExtractSecurityGroups returns a slice of SecurityGroups contained in a single page of results.
Get will return details for a particular security group.
List will return a collection of all the security groups for a particular tenant.
ListByServer will return a collection of all the security groups which are associated with a particular server.
RemoveServer will disassociate a server from a security group.
Update will modify the mutable properties of a security group, notably its name and description.
# Structs
AddServerResult is the response from an AddServer operation.
CreateResult represents the result of a create operation.
CreateRuleOpts represents the configuration for adding a new rule to an existing security group.
CreateRuleResult represents the result when adding rules to a security group.
DeleteResult is the response from delete operation.
DeleteRuleResult is the response from a DeleteRule operation.
GetResult represents the result of a get operation.
Group represents a group.
GroupOpts is the underlying struct responsible for creating or updating security groups.
IPRange represents the IP range whose traffic will be accepted by the security group.
RemoveServerResult is the response from a RemoveServer operation.
Rule represents a security group rule, a policy which determines how a security group operates and what inbound traffic it allows in.
SecurityGroup represents a security group.
SecurityGroupPage is a single page of a SecurityGroup collection.
UpdateResult represents the result of an update operation.
# Interfaces
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
CreateRuleOptsBuilder allows extensions to add additional parameters to the CreateRule request.
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.
# Type aliases
CreateOpts is the struct responsible for creating a security group.
UpdateOpts is the struct responsible for updating an existing security group.