Michal Kobus | a1c3ca9 | 2019-08-21 14:29:23 +0200 | [diff] [blame^] | 1 | package drivers |
2 | |||||
3 | import ( | ||||
4 | "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 | return pagination.NewPager(c, listURL(c), func(r pagination.PageResult) pagination.Page { | ||||
10 | return DriverPage{pagination.SinglePageBase(r)} | ||||
11 | }) | ||||
12 | } |