Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2014 Changes in this version + func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type AdminState *bool + var Down AdminState = &iFalse + var Up AdminState = &iTrue + type CreateOpts struct + AdminStateUp *bool + DeviceID string + DeviceOwner string + FixedIPs interface{} + MACAddress string + Name string + NetworkID string + SecurityGroups []string + TenantID string + func (opts CreateOpts) ToPortCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToPortCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) CreateResult + func (r CreateResult) Extract() (*Port, error) + type DeleteResult struct + func Delete(c *gophercloud.ServiceClient, id string) DeleteResult + type GetResult struct + func Get(c *gophercloud.ServiceClient, id string) GetResult + func (r GetResult) Extract() (*Port, error) + type IP struct + IPAddress string + SubnetID string + type ListOpts struct + AdminStateUp *bool + DeviceID string + DeviceOwner string + ID string + Limit int + MACAddress string + Marker string + Name string + NetworkID string + SortDir string + SortKey string + Status string + TenantID string + func (opts ListOpts) ToPortListQuery() (string, error) + type ListOptsBuilder interface + ToPortListQuery func() (string, error) + type Port struct + AdminStateUp bool + DeviceID string + DeviceOwner string + FixedIPs []IP + ID string + MACAddress string + Name string + NetworkID string + SecurityGroups []string + Status string + TenantID string + func ExtractPorts(page pagination.Page) ([]Port, error) + type PortPage struct + func (p PortPage) IsEmpty() (bool, error) + func (p PortPage) NextPageURL() (string, error) + type UpdateOpts struct + AdminStateUp *bool + DeviceID string + DeviceOwner string + FixedIPs interface{} + Name string + SecurityGroups []string + func (opts UpdateOpts) ToPortUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToPortUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) UpdateResult + func (r UpdateResult) Extract() (*Port, error)