Documentation
¶
Overview ¶
Package folder provides the Files.com Folder API client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(params files_sdk.FolderCreateParams, opts ...files_sdk.RequestResponseOption) (file files_sdk.File, err error)
Create calls Client.Create using the default configuration.
Types ¶
type Client ¶
Client calls the Folder API using its embedded Config.
func (*Client) Create ¶
func (c *Client) Create(params files_sdk.FolderCreateParams, opts ...files_sdk.RequestResponseOption) (file files_sdk.File, err error)
Create calls POST /folders/{path}.
func (*Client) ListFor ¶
func (c *Client) ListFor(params files_sdk.FolderListForParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListFor returns an iterator for GET /folders/{path}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List Folders by Path.
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 ListFor ¶
func ListFor(params files_sdk.FolderListForParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListFor returns a listing iterator using the default configuration. See Client.ListFor 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.