package iterator

Import Path
	google.golang.org/api/iterator (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 7 packages

Involved Source Files Package iterator provides support for standard Google API iterators. See https://github.com/GoogleCloudPlatform/gcloud-golang/wiki/Iterator-Guidelines.
Package-Level Type Names (total 3, all are exported)
/* sort exporteds by: | */
Pageable is implemented by iterators that support paging. PageInfo returns paging information associated with the iterator. *cloud.google.com/go/cloudtasks/apiv2.QueueIterator *cloud.google.com/go/cloudtasks/apiv2.TaskIterator *cloud.google.com/go/container/apiv1.UsableSubnetworkIterator *cloud.google.com/go/errorreporting/apiv1beta1.ErrorEventIterator *cloud.google.com/go/errorreporting/apiv1beta1.ErrorGroupStatsIterator *cloud.google.com/go/logging/apiv2.LogEntryIterator *cloud.google.com/go/logging/apiv2.LogExclusionIterator *cloud.google.com/go/logging/apiv2.LogMetricIterator *cloud.google.com/go/logging/apiv2.LogSinkIterator *cloud.google.com/go/logging/apiv2.MonitoredResourceDescriptorIterator *cloud.google.com/go/logging/apiv2.StringIterator *cloud.google.com/go/monitoring/apiv3.AlertPolicyIterator *cloud.google.com/go/monitoring/apiv3.GroupIterator *cloud.google.com/go/monitoring/apiv3.MetricDescriptorIterator *cloud.google.com/go/monitoring/apiv3.MonitoredResourceDescriptorIterator *cloud.google.com/go/monitoring/apiv3.MonitoredResourceIterator *cloud.google.com/go/monitoring/apiv3.NotificationChannelDescriptorIterator *cloud.google.com/go/monitoring/apiv3.NotificationChannelIterator *cloud.google.com/go/monitoring/apiv3.ServiceIterator *cloud.google.com/go/monitoring/apiv3.ServiceLevelObjectiveIterator *cloud.google.com/go/monitoring/apiv3.TimeSeriesIterator *cloud.google.com/go/monitoring/apiv3.UptimeCheckConfigIterator *cloud.google.com/go/monitoring/apiv3.UptimeCheckIpIterator *cloud.google.com/go/secretmanager/apiv1.SecretIterator *cloud.google.com/go/secretmanager/apiv1.SecretVersionIterator *cloud.google.com/go/storage.BucketIterator *cloud.google.com/go/storage.HMACKeysIterator *cloud.google.com/go/storage.ObjectIterator func NewPager(iter Pageable, pageSize int, pageToken string) *Pager
PageInfo contains information about an iterator's paging state. MaxSize is the maximum number of items returned by a call to the API. Set MaxSize as a hint to optimize the buffering behavior of the iterator. If zero, the page size is determined by the underlying service. Use Pager to retrieve a page of a specific, exact size. Token is the token used to retrieve the next page of items from the API. You may set Token immediately after creating an iterator to begin iteration at a particular point. If Token is the empty string, the iterator will begin with the first eligible item. The result of setting Token after the first call to Next is undefined. After the underlying API method is called to retrieve a page of items, Token is set to the next-page token in the response. Remaining returns the number of items available before the iterator makes another API call. func Pageable.PageInfo() *PageInfo func cloud.google.com/go/cloudtasks/apiv2.(*QueueIterator).PageInfo() *PageInfo func cloud.google.com/go/cloudtasks/apiv2.(*TaskIterator).PageInfo() *PageInfo func cloud.google.com/go/container/apiv1.(*UsableSubnetworkIterator).PageInfo() *PageInfo func cloud.google.com/go/errorreporting/apiv1beta1.(*ErrorEventIterator).PageInfo() *PageInfo func cloud.google.com/go/errorreporting/apiv1beta1.(*ErrorGroupStatsIterator).PageInfo() *PageInfo func cloud.google.com/go/logging/apiv2.(*LogEntryIterator).PageInfo() *PageInfo func cloud.google.com/go/logging/apiv2.(*LogExclusionIterator).PageInfo() *PageInfo func cloud.google.com/go/logging/apiv2.(*LogMetricIterator).PageInfo() *PageInfo func cloud.google.com/go/logging/apiv2.(*LogSinkIterator).PageInfo() *PageInfo func cloud.google.com/go/logging/apiv2.(*MonitoredResourceDescriptorIterator).PageInfo() *PageInfo func cloud.google.com/go/logging/apiv2.(*StringIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*AlertPolicyIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*GroupIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*MetricDescriptorIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*MonitoredResourceDescriptorIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*MonitoredResourceIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*NotificationChannelDescriptorIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*NotificationChannelIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*ServiceIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*ServiceLevelObjectiveIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*TimeSeriesIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*UptimeCheckConfigIterator).PageInfo() *PageInfo func cloud.google.com/go/monitoring/apiv3.(*UptimeCheckIpIterator).PageInfo() *PageInfo func cloud.google.com/go/secretmanager/apiv1.(*SecretIterator).PageInfo() *PageInfo func cloud.google.com/go/secretmanager/apiv1.(*SecretVersionIterator).PageInfo() *PageInfo func cloud.google.com/go/storage.(*BucketIterator).PageInfo() *PageInfo func cloud.google.com/go/storage.(*HMACKeysIterator).PageInfo() *PageInfo func cloud.google.com/go/storage.(*ObjectIterator).PageInfo() *PageInfo
Pager supports retrieving iterator items a page at a time. NextPage retrieves a sequence of items from the iterator and appends them to slicep, which must be a pointer to a slice of the iterator's item type. Exactly p.pageSize items will be appended, unless fewer remain. The first return value is the page token to use for the next page of items. If empty, there are no more pages. Aside from checking for the end of the iteration, the returned page token is only needed if the iteration is to be resumed a later time, in another context (possibly another process). The second return value is non-nil if an error occurred. It will never be the special iterator sentinel value Done. To recognize the end of the iteration, compare nextPageToken to the empty string. It is possible for NextPage to return a single zero-length page along with an empty page token when there are no more items in the iteration. func NewPager(iter Pageable, pageSize int, pageToken string) *Pager
Package-Level Functions (total 2, in which 1 are exported)
NewPager returns a pager that uses iter. Calls to its NextPage method will obtain exactly pageSize items, unless fewer remain. The pageToken argument indicates where to start the iteration. Pass the empty string to start at the beginning, or pass a token retrieved from a call to Pager.NextPage. If you use an iterator with a Pager, you must not call Next on the iterator.
Package-Level Variables (total 3, in which 2 are exported)
Done is returned by an iterator's Next method when the iteration is complete; when there are no more items to return.
NewPageInfo exposes internals for iterator implementations. It is not a stable interface.