Documentation
¶
Overview ¶
Package usage_snapshot is the Files.com API client package for the files_sdk.UsageSnapshot model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client calls the UsageSnapshot API using its embedded Config.
func (*Client) List ¶
func (c *Client) List(params files_sdk.UsageSnapshotListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /usage_snapshots. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
type Iter ¶
Iter traverses a paginated API response. Range over All to get each resource with a nil error, followed by the error that stopped the listing, if any. Alternatively, call Next before reading the current resource, then check Err after Next returns false.
func List ¶
func List(params files_sdk.UsageSnapshotListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns a listing iterator using the default configuration. See Client.List for the operation and paging behavior.
func (*Iter) All ¶ added in v3.3.301
All returns an iterator over the listing's remaining resources, each with a nil error, followed by the error that stops the listing, if any. Pages are requested as the loop reaches them. See files_sdk.IterAll.
func (*Iter) Reload ¶
func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI
Reload returns a new iterator for the same listing, starting at the first page. See files_sdk.Iter.Reload for parameter and request-option handling.
func (*Iter) UsageSnapshot ¶
func (i *Iter) UsageSnapshot() files_sdk.UsageSnapshot
UsageSnapshot returns the current resource. Call it only after Next returns true.