Krzysztof Szukiełojć | 6b2d29f | 2017-05-15 11:55:02 +0200 | [diff] [blame] | 1 | package os_services |
| 2 | |
| 3 | import ( |
| 4 | gophercloud "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
| 5 | "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination" |
| 6 | ) |
| 7 | |
| 8 | // List returns a Pager that allows you to iterate over a collection of Network. |
| 9 | func List(client *gophercloud.ServiceClient) pagination.Pager { |
| 10 | return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page { |
| 11 | return OsServicePage{pagination.SinglePageBase(r)} |
| 12 | }) |
| 13 | } |