Documentation
¶
Overview ¶
Package history is the Files.com API client package for the files_sdk.History model.
Index ¶
- type Client
- func (c *Client) List(params files_sdk.HistoryListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
- func (c *Client) ListForFile(params files_sdk.HistoryListForFileParams, ...) (*Iter, error)
- func (c *Client) ListForFolder(params files_sdk.HistoryListForFolderParams, ...) (*Iter, error)
- func (c *Client) ListForUser(params files_sdk.HistoryListForUserParams, ...) (*Iter, error)
- func (c *Client) ListLogins(params files_sdk.HistoryListLoginsParams, ...) (*Iter, error)
- type Iter
- func List(params files_sdk.HistoryListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
- func ListForFile(params files_sdk.HistoryListForFileParams, ...) (*Iter, error)
- func ListForFolder(params files_sdk.HistoryListForFolderParams, ...) (*Iter, error)
- func ListForUser(params files_sdk.HistoryListForUserParams, ...) (*Iter, error)
- func ListLogins(params files_sdk.HistoryListLoginsParams, ...) (*Iter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client calls the History API using its embedded Config.
func (*Client) List ¶
func (c *Client) List(params files_sdk.HistoryListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /history. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List site full action history.
func (*Client) ListForFile ¶
func (c *Client) ListForFile(params files_sdk.HistoryListForFileParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListForFile returns an iterator for GET /history/files/{path}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List history for specific file.
func (*Client) ListForFolder ¶
func (c *Client) ListForFolder(params files_sdk.HistoryListForFolderParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListForFolder returns an iterator for GET /history/folders/{path}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List history for specific folder.
func (*Client) ListForUser ¶
func (c *Client) ListForUser(params files_sdk.HistoryListForUserParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListForUser returns an iterator for GET /history/users/{user_id}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List history for specific user.
func (*Client) ListLogins ¶
func (c *Client) ListLogins(params files_sdk.HistoryListLoginsParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListLogins returns an iterator for GET /history/login. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List site login history.
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.HistoryListParams, 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 ListForFile ¶
func ListForFile(params files_sdk.HistoryListForFileParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListForFile returns a listing iterator using the default configuration. See Client.ListForFile for the operation and paging behavior.
func ListForFolder ¶
func ListForFolder(params files_sdk.HistoryListForFolderParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListForFolder returns a listing iterator using the default configuration. See Client.ListForFolder for the operation and paging behavior.
func ListForUser ¶
func ListForUser(params files_sdk.HistoryListForUserParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListForUser returns a listing iterator using the default configuration. See Client.ListForUser for the operation and paging behavior.
func ListLogins ¶
func ListLogins(params files_sdk.HistoryListLoginsParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
ListLogins returns a listing iterator using the default configuration. See Client.ListLogins for the operation and paging behavior.