Documentation
¶
Overview ¶
Package sync provides the Files.com Sync API client.
Index ¶
- func Create(params files_sdk.SyncCreateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- func Delete(params files_sdk.SyncDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
- func DryRun(params files_sdk.SyncDryRunParams, opts ...files_sdk.RequestResponseOption) (err error)
- func Find(params files_sdk.SyncFindParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- func ManualRun(params files_sdk.SyncManualRunParams, opts ...files_sdk.RequestResponseOption) (err error)
- func Update(params files_sdk.SyncUpdateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- type Client
- func (c *Client) Create(params files_sdk.SyncCreateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- func (c *Client) Delete(params files_sdk.SyncDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
- func (c *Client) DryRun(params files_sdk.SyncDryRunParams, opts ...files_sdk.RequestResponseOption) (err error)
- func (c *Client) Find(params files_sdk.SyncFindParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- func (c *Client) List(params files_sdk.SyncListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
- func (c *Client) ManualRun(params files_sdk.SyncManualRunParams, opts ...files_sdk.RequestResponseOption) (err error)
- func (c *Client) Update(params files_sdk.SyncUpdateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(params files_sdk.SyncCreateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
Create calls Client.Create using the default configuration.
func Delete ¶
func Delete(params files_sdk.SyncDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls Client.Delete using the default configuration.
func DryRun ¶ added in v3.2.212
func DryRun(params files_sdk.SyncDryRunParams, opts ...files_sdk.RequestResponseOption) (err error)
DryRun calls Client.DryRun using the default configuration.
func Find ¶
func Find(params files_sdk.SyncFindParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
Find calls Client.Find using the default configuration.
func ManualRun ¶ added in v3.2.179
func ManualRun(params files_sdk.SyncManualRunParams, opts ...files_sdk.RequestResponseOption) (err error)
ManualRun calls Client.ManualRun using the default configuration.
func Update ¶
func Update(params files_sdk.SyncUpdateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
Update calls Client.Update using the default configuration.
func UpdateWithMap ¶
func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
UpdateWithMap calls Client.UpdateWithMap using the default configuration.
Types ¶
type Client ¶
Client calls the Sync API using its embedded Config.
func (*Client) Create ¶
func (c *Client) Create(params files_sdk.SyncCreateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
Create calls POST /syncs.
func (*Client) Delete ¶
func (c *Client) Delete(params files_sdk.SyncDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls DELETE /syncs/{id}.
func (*Client) DryRun ¶ added in v3.2.212
func (c *Client) DryRun(params files_sdk.SyncDryRunParams, opts ...files_sdk.RequestResponseOption) (err error)
DryRun calls POST /syncs/{id}/dry_run.
API operation: Dry Run Sync.
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.SyncFindParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
Find calls GET /syncs/{id}.
func (*Client) List ¶
func (c *Client) List(params files_sdk.SyncListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /syncs. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) ManualRun ¶ added in v3.2.179
func (c *Client) ManualRun(params files_sdk.SyncManualRunParams, opts ...files_sdk.RequestResponseOption) (err error)
ManualRun calls POST /syncs/{id}/manual_run.
API operation: Manually Run Sync.
func (*Client) Update ¶
func (c *Client) Update(params files_sdk.SyncUpdateParams, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
Update calls PATCH /syncs/{id}.
func (*Client) UpdateWithMap ¶
func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (sync files_sdk.Sync, err error)
UpdateWithMap calls PATCH /syncs/{id} using API parameter names as map keys. Include any path parameters in the map. Unlike optional struct fields, explicit zero values in the map are included in the request.
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.SyncListParams, 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) LoadResource ¶
func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
LoadResource fetches a resource by its ID. identifier must have type int64.