Documentation
¶
Overview ¶
Package shared_workflow is the Files.com API client package for the files_sdk.SharedWorkflow model.
Index ¶
- func Find(params files_sdk.SharedWorkflowFindParams, ...) (sharedWorkflow files_sdk.SharedWorkflow, err error)
- func FindRun(params files_sdk.SharedWorkflowFindRunParams, ...) (automationRun files_sdk.AutomationRun, err error)
- func RunWorkflow(params files_sdk.SharedWorkflowRunWorkflowParams, ...) (automationRun files_sdk.AutomationRun, err error)
- type Client
- func (c *Client) Find(params files_sdk.SharedWorkflowFindParams, ...) (sharedWorkflow files_sdk.SharedWorkflow, err error)
- func (c *Client) FindRun(params files_sdk.SharedWorkflowFindRunParams, ...) (automationRun files_sdk.AutomationRun, err error)
- func (c *Client) List(params files_sdk.SharedWorkflowListParams, ...) (*Iter, error)
- func (c *Client) RunWorkflow(params files_sdk.SharedWorkflowRunWorkflowParams, ...) (automationRun files_sdk.AutomationRun, err error)
- type Iter
- func (i *Iter) All() iter.Seq2[files_sdk.SharedWorkflow, error]
- func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
- func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI
- func (i *Iter) SharedWorkflow() files_sdk.SharedWorkflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find(params files_sdk.SharedWorkflowFindParams, opts ...files_sdk.RequestResponseOption) (sharedWorkflow files_sdk.SharedWorkflow, err error)
Find calls Client.Find using the default configuration.
func FindRun ¶
func FindRun(params files_sdk.SharedWorkflowFindRunParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
FindRun calls Client.FindRun using the default configuration.
func RunWorkflow ¶
func RunWorkflow(params files_sdk.SharedWorkflowRunWorkflowParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
RunWorkflow calls Client.RunWorkflow using the default configuration.
Types ¶
type Client ¶
Client calls the SharedWorkflow API using its embedded Config.
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.SharedWorkflowFindParams, opts ...files_sdk.RequestResponseOption) (sharedWorkflow files_sdk.SharedWorkflow, err error)
Find calls GET /shared_workflows/{id}.
func (*Client) FindRun ¶
func (c *Client) FindRun(params files_sdk.SharedWorkflowFindRunParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
FindRun calls GET /shared_workflows/{id}/runs/{run_id}.
API operation: Show a Shared Workflow run started by the recipient.
func (*Client) List ¶
func (c *Client) List(params files_sdk.SharedWorkflowListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /shared_workflows. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) RunWorkflow ¶
func (c *Client) RunWorkflow(params files_sdk.SharedWorkflowRunWorkflowParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
RunWorkflow calls POST /shared_workflows/{id}/run_workflow.
API operation: Run a Shared Workflow.
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.SharedWorkflowListParams, 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 ¶
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.
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) SharedWorkflow ¶
func (i *Iter) SharedWorkflow() files_sdk.SharedWorkflow
SharedWorkflow returns the current resource. Call it only after Next returns true.