MCPcopy Create free account
hub / github.com/cloudfoundry/cli / PaginatedResources

Struct PaginatedResources

api/cloudcontroller/ccv3/paginated_resources.go:18–31  ·  view source on GitHub ↗

PaginatedResources represents a page of resources returned by the Cloud Controller.

Source from the content-addressed store, hash-verified

16// PaginatedResources represents a page of resources returned by the Cloud
17// Controller.
18type 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.
34func (pr PaginatedResources) NextPage() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected