Documentation
¶
Overview ¶
Package automation_run provides the Files.com AutomationRun API client.
Index ¶
- func Cancel(params files_sdk.AutomationRunCancelParams, ...) (automationRun files_sdk.AutomationRun, err error)
- func Find(params files_sdk.AutomationRunFindParams, ...) (automationRun files_sdk.AutomationRun, err error)
- func FindNode(params files_sdk.AutomationRunFindNodeParams, ...) (automationExecutionNode files_sdk.AutomationExecutionNode, err error)
- func Rerun(params files_sdk.AutomationRunRerunParams, ...) (automationRun files_sdk.AutomationRun, err error)
- type Client
- func (c *Client) Cancel(params files_sdk.AutomationRunCancelParams, ...) (automationRun files_sdk.AutomationRun, err error)
- func (c *Client) Find(params files_sdk.AutomationRunFindParams, ...) (automationRun files_sdk.AutomationRun, err error)
- func (c *Client) FindNode(params files_sdk.AutomationRunFindNodeParams, ...) (automationExecutionNode files_sdk.AutomationExecutionNode, err error)
- func (c *Client) List(params files_sdk.AutomationRunListParams, ...) (*Iter, error)
- func (c *Client) Rerun(params files_sdk.AutomationRunRerunParams, ...) (automationRun files_sdk.AutomationRun, err error)
- type Iter
- func (i *Iter) All() iter.Seq2[files_sdk.AutomationRun, error]
- func (i *Iter) AutomationRun() files_sdk.AutomationRun
- func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
- func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶ added in v3.3.188
func Cancel(params files_sdk.AutomationRunCancelParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
Cancel calls Client.Cancel using the default configuration.
func Find ¶
func Find(params files_sdk.AutomationRunFindParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
Find calls Client.Find using the default configuration.
func FindNode ¶ added in v3.3.191
func FindNode(params files_sdk.AutomationRunFindNodeParams, opts ...files_sdk.RequestResponseOption) (automationExecutionNode files_sdk.AutomationExecutionNode, err error)
FindNode calls Client.FindNode using the default configuration.
func Rerun ¶ added in v3.3.191
func Rerun(params files_sdk.AutomationRunRerunParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
Rerun calls Client.Rerun using the default configuration.
Types ¶
type Client ¶
Client calls the AutomationRun API using its embedded Config.
func (*Client) Cancel ¶ added in v3.3.188
func (c *Client) Cancel(params files_sdk.AutomationRunCancelParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
Cancel calls POST /automation_runs/{id}/cancel.
API operation: Cancel Automation Run.
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.AutomationRunFindParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
Find calls GET /automation_runs/{id}.
func (*Client) FindNode ¶ added in v3.3.191
func (c *Client) FindNode(params files_sdk.AutomationRunFindNodeParams, opts ...files_sdk.RequestResponseOption) (automationExecutionNode files_sdk.AutomationExecutionNode, err error)
FindNode calls GET /automation_runs/{id}/node.
func (*Client) List ¶
func (c *Client) List(params files_sdk.AutomationRunListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /automation_runs. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) Rerun ¶ added in v3.3.191
func (c *Client) Rerun(params files_sdk.AutomationRunRerunParams, opts ...files_sdk.RequestResponseOption) (automationRun files_sdk.AutomationRun, err error)
Rerun calls POST /automation_runs/{id}/rerun.
API operation: Re-run Automation from Node.
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.AutomationRunListParams, 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) AutomationRun ¶
func (i *Iter) AutomationRun() files_sdk.AutomationRun
AutomationRun returns the current resource. Call it only after Next returns true.
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.