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 { | ||||
11 | return AgentPage{pagination.LinkedPageBase{PageResult: r}} | ||||
12 | }) | ||||
13 | } |