blob: 9600e2c844b793444c8ff6b8617aa3e8f3471a63 [file] [log] [blame]
package tenantnetworks
import (
"github.com/gophercloud/gophercloud"
"gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination"
)
// List returns a Pager that allows you to iterate over a collection of Network.
func List(client *gophercloud.ServiceClient) pagination.Pager {
return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page {
return NetworkPage{pagination.SinglePageBase(r)}
})
}
// Get returns data about a previously created Network.
func Get(client *gophercloud.ServiceClient, id string) (r GetResult) {
_, r.Err = client.Get(getURL(client, id), &r.Body, nil)
return
}