Versions in this module Expand all Collapse all v1 v1.0.0 Dec 28, 2021 Changes in this version + func ExtractPortsInto(r pagination.Page, v interface{}) error + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func ListDetail(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type CreateOpts struct + Address string + Extra map[string]interface{} + IsSmartNIC *bool + LocalLinkConnection map[string]interface{} + NodeUUID string + PXEEnabled *bool + PhysicalNetwork string + PortGroupUUID string + func (opts CreateOpts) ToPortCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToPortCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Port, error) + func (r CreateResult) ExtractInto(v interface{}) error + type DeleteResult struct + func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult) + type GetResult struct + func Get(client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Port, error) + func (r GetResult) ExtractInto(v interface{}) error + type ListOpts struct + Address string + Fields []string + Limit int + Marker string + Node string + NodeUUID string + PortGroup string + SortDir string + SortKey string + func (opts ListOpts) ToPortListDetailQuery() (string, error) + func (opts ListOpts) ToPortListQuery() (string, error) + type ListOptsBuilder interface + ToPortListDetailQuery func() (string, error) + ToPortListQuery func() (string, error) + type Patch interface + ToPortUpdateMap func() map[string]interface{} + type Port struct + Address string + CreatedAt time.Time + Extra map[string]interface{} + InternalInfo map[string]interface{} + IsSmartNIC bool + Links []interface{} + LocalLinkConnection map[string]interface{} + NodeUUID string + PXEEnabled bool + PhysicalNetwork string + PortGroupUUID string + UUID string + UpdatedAt time.Time + func ExtractPorts(r pagination.Page) ([]Port, error) + type PortPage struct + func (r PortPage) IsEmpty() (bool, error) + func (r PortPage) NextPageURL() (string, error) + type UpdateOp string + const AddOp + const RemoveOp + const ReplaceOp + type UpdateOperation struct + Op UpdateOp + Path string + Value interface{} + func (opts UpdateOperation) ToPortUpdateMap() map[string]interface{} + type UpdateOpts []Patch + type UpdateResult struct + func Update(client *gophercloud.ServiceClient, id string, opts UpdateOpts) (r UpdateResult) + func (r UpdateResult) Extract() (*Port, error) + func (r UpdateResult) ExtractInto(v interface{}) error Other modules containing this package github.com/pierreprinetti/gophercloud/v2 github.com/pierreprinetti/gophercloud/v3