PaginatedResources represents a page of resources returned by the Cloud Controller.
| 16 | // PaginatedResources represents a page of resources returned by the Cloud |
| 17 | // Controller. |
| 18 | type PaginatedResources struct { |
| 19 | // Pagination represents information about the paginated resource. |
| 20 | Pagination struct { |
| 21 | // Next represents a link to the next page. |
| 22 | Next struct { |
| 23 | // HREF is the HREF of the next page. |
| 24 | HREF string `json:"href"` |
| 25 | } `json:"next"` |
| 26 | } `json:"pagination"` |
| 27 | // ResourceBytes is the list of resources for the current page. |
| 28 | ResourcesBytes json.RawMessage `json:"resources"` |
| 29 | resourceType reflect.Type |
| 30 | IncludedResources IncludedResources `json:"included"` |
| 31 | } |
| 32 | |
| 33 | // NextPage returns the HREF of the next page of results. |
| 34 | func (pr PaginatedResources) NextPage() string { |
nothing calls this directly
no outgoing calls
no test coverage detected