package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev
# Functions
Create accepts a CreateOpts struct and uses the values to create a new firewall rule.
Delete will permanently delete a particular firewall rule based on its unique ID.
ExtractRules accepts a Page struct, specifically a RouterPage struct, and extracts the elements into a slice of Router structs.
Get retrieves a particular firewall rule based on its unique ID.
List returns a Pager which allows you to iterate over a collection of firewall rules.
Update allows firewall policies to be updated.
# Constants
ProtocolAny is to allow any protocol.
ProtocolICMP is to allow the ICMP protocol.
ProtocolTCP is to allow the TCP protocol.
ProtocolUDP is to allow the UDP protocol.
# Structs
CreateOpts contains all the values needed to create a new firewall rule.
CreateResult represents the result of a create operation.
DeleteResult represents the result of a delete operation.
GetResult represents the result of a get operation.
ListOpts allows the filtering and sorting of paginated collections through the API.
Rule represents a firewall rule.
RulePage is the page returned by a pager when traversing over a collection of firewall rules.
UpdateOpts contains the values used when updating a firewall rule.
UpdateResult represents the result of an update operation.
# Interfaces
CreateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Create operation in this package.
ListOptsBuilder allows extensions to add additional parameters to the List request.
UpdateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Update operation in this package.
# Type aliases
No description provided by the author