Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
List returns a Pager which allows you to iterate over a collection of ipadresses.
Types ¶
type GetResult ¶
type GetResult struct {
gophercloud.Result
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a IPAddress.
func Get ¶
func Get(c *gophercloud.ServiceClient, ipaddress string) (r GetResult)
Get retrieves a specific ipaddress.
func (GetResult) Extract ¶
Extract is a function that accepts a result and extracts a IPAddress resource.
func (GetResult) ExtractInto ¶
type IPAddress ¶
type IPAddress struct { IP string `json:"ipaddress"` PortUUID string `json:"port"` Description string `json:"description,omitempty"` Status string `json:"status,omitempty"` DeviceID string `json:"deviceID,omitempty"` DeviceOwner string `json:"deviceOwner,omitempty"` FixedPortID string `json:"fixedPortID,omitempty"` FixedIP string `json:"fixedIP,omitempty"` NetworkID string `json:"networkID,omitempty"` NetworkName string `json:"networkName,omitempty"` SubnetID string `json:"subnetID,omitempty"` SubnetName string `json:"subnetName,omitempty"` DomainID string `json:"domainID,omitempty"` DomainName string `json:"domainName,omitempty"` ProjectID string `json:"projectID,omitempty"` ProjectName string `json:"projectName,omitempty"` Created string `json:"created,omitempty"` LastChanged string `json:"lastChanged,omitempty"` }
type ListOpts ¶
type ListOpts struct { // IPAddresses will only return ipaddresses with the specified UUIDs. IPAddresses []string `q:"ip"` // CIDR will only return ipaddresses with the specified CIDR. CIDR []string `q:"cidr"` // DomainID will only return ipaddresses with the specified DomainID. DomainID string `q:"domain"` // ProjectID will only return ipaddresses with the specified ProjectID. ProjectID string `q:"project"` // Limit will limit the number of results returned per page. Limit int `q:"limit"` }
ListOpts is a structure that holds options for listing ipaddresses.
func (ListOpts) ToIPAddressListQuery ¶
ToIPAddressListQuery formats a ListOpts into a query string.
type ListOptsBuilder ¶
ListOptsBuilder allows extensions to add additional parameters to the List request.
Click to show internal directories.
Click to hide internal directories.