package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev

# Packages

subnets unit tests.

# Functions

Create accepts a CreateOpts struct and creates a new subnet using the values provided.
Delete accepts a unique ID and deletes the subnet associated with it.
ExtractSubnets accepts a Page struct, specifically a SubnetPage struct, and extracts the elements into a slice of Subnet structs.
Get retrieves a specific subnet based on its unique ID.
IDFromName is a convenience function that returns a subnet's ID, given its name.
List returns a Pager which allows you to iterate over a collection of subnets.
Update accepts a UpdateOpts struct and updates an existing subnet using the values provided.

# Structs

AllocationPool represents a sub-range of cidr available for dynamic allocation to ports, e.g.
CreateOpts represents the attributes used when creating a new subnet.
CreateResult represents the result of a create operation.
DeleteResult represents the result of a delete operation.
GetResult represents the result of a get operation.
HostRoute represents a route that should be used by devices with IPs from a subnet (not including local subnet route).
ListOpts allows the filtering and sorting of paginated collections through the API.
Subnet represents a subnet.
SubnetPage is the page returned by a pager when traversing over a collection of subnets.
UpdateOpts represents the attributes used when updating an existing subnet.
UpdateResult represents the result of an update operation.

# Interfaces

CreateOptsBuilder allows extensions to add additional parameters to the List request.
ListOptsBuilder allows extensions to add additional parameters to the List request.
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.