Versions in this module Expand all Collapse all v0 v0.6.28 Jan 17, 2024 Changes in this version + var ErrPageNotAvailable = errors.New("the requested page does not exist") + func Request(client *gcorecloud.ServiceClient, headers map[string]string, url string) (*http.Response, error) + type LinkedPageBase struct + LinkPath []string + func (current LinkedPageBase) GetBody() interface{} + func (current LinkedPageBase) IsEmpty() (bool, error) + func (current LinkedPageBase) NextPageURL() (string, error) + type MarkerPage interface + LastMarker func() (string, error) + type MarkerPageBase struct + Owner MarkerPage + func (current MarkerPageBase) GetBody() interface{} + func (current MarkerPageBase) IsEmpty() (bool, error) + func (current MarkerPageBase) NextPageURL() (string, error) + type Page interface + GetBody func() interface{} + IsEmpty func() (bool, error) + NextPageURL func() (string, error) + type PageResult struct + func PageResultFrom(resp *http.Response) (PageResult, error) + func PageResultFromParsed(resp *http.Response, body interface{}) PageResult + type Pager struct + Err error + Headers map[string]string + func NewPager(client *gcorecloud.ServiceClient, initialURL string, ...) Pager + func (p Pager) AllPages() (Page, error) + func (p Pager) EachPage(handler func(Page) (bool, error)) error + func (p Pager) WithPageCreator(createPage func(r PageResult) Page) Pager + type SinglePageBase PageResult + func (current SinglePageBase) GetBody() interface{} + func (current SinglePageBase) IsEmpty() (bool, error) + func (current SinglePageBase) NextPageURL() (string, error)