package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev
# Packages
ports unit tests.
# Functions
Create accepts a CreateOpts struct and creates a new network using the values provided.
Delete accepts a unique ID and deletes the port associated with it.
ExtractPorts accepts a Page struct, specifically a PortPage struct, and extracts the elements into a slice of Port structs.
No description provided by the author
Get retrieves a specific port based on its unique ID.
IDFromName is a convenience function that returns a port's ID, given its name.
List returns a Pager which allows you to iterate over a collection of ports.
Update accepts a UpdateOpts struct and updates an existing port using the values provided.
# Structs
AddressPair contains the IP Address and the MAC address.
CreateOpts represents the attributes used when creating a new port.
CreateResult represents the result of a create operation.
DeleteResult represents the result of a delete operation.
GetResult represents the result of a get operation.
IP is a sub-struct that represents an individual IP.
ListOpts allows the filtering and sorting of paginated collections through the API.
Port represents a Neutron port.
PortPage is the page returned by a pager when traversing over a collection of network ports.
UpdateOpts represents the attributes used when updating an existing port.
UpdateResult represents the result of an update operation.
# Interfaces
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
ListOptsBuilder allows extensions to add additional parameters to the List request.
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.