Krzysztof Szukiełojć | ab14998 | 2017-05-10 14:49:39 +0200 | [diff] [blame] | 1 | package agents |
| 2 | |
| 3 | import ( |
| 4 | gophercloud "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
| 5 | "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination" |
| 6 | ) |
| 7 | |
| 8 | func List(c *gophercloud.ServiceClient) pagination.Pager { |
| 9 | u := listURL(c) |
| 10 | return pagination.NewPager(c, u, func(r pagination.PageResult) pagination.Page { |
Dmitry Kalashnik | 4b70b46 | 2017-06-01 20:46:04 +0400 | [diff] [blame] | 11 | return AgentPage{pagination.SinglePageBase(r)} |
Krzysztof Szukiełojć | ab14998 | 2017-05-10 14:49:39 +0200 | [diff] [blame] | 12 | }) |
| 13 | } |