Documentation
¶
Overview ¶
Package remote_server provides the Files.com RemoteServer API client.
Index ¶
- func AgentNodes(params files_sdk.RemoteServerAgentNodesParams, ...) (agentNode files_sdk.AgentNode, err error)
- func AgentPushUpdate(params files_sdk.RemoteServerAgentPushUpdateParams, ...) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
- func AgentPushUpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
- func Create(params files_sdk.RemoteServerCreateParams, ...) (remoteServer files_sdk.RemoteServer, err error)
- func Delete(params files_sdk.RemoteServerDeleteParams, ...) (err error)
- func Find(params files_sdk.RemoteServerFindParams, ...) (remoteServer files_sdk.RemoteServer, err error)
- func FindConfigurationFile(params files_sdk.RemoteServerFindConfigurationFileParams, ...) (remoteServerConfigurationFile files_sdk.RemoteServerConfigurationFile, ...)
- func Update(params files_sdk.RemoteServerUpdateParams, ...) (remoteServer files_sdk.RemoteServer, err error)
- func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
- type Client
- func (c *Client) AgentNodes(params files_sdk.RemoteServerAgentNodesParams, ...) (agentNode files_sdk.AgentNode, err error)
- func (c *Client) AgentPushUpdate(params files_sdk.RemoteServerAgentPushUpdateParams, ...) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
- func (c *Client) AgentPushUpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
- func (c *Client) Create(params files_sdk.RemoteServerCreateParams, ...) (remoteServer files_sdk.RemoteServer, err error)
- func (c *Client) Delete(params files_sdk.RemoteServerDeleteParams, ...) (err error)
- func (c *Client) Find(params files_sdk.RemoteServerFindParams, ...) (remoteServer files_sdk.RemoteServer, err error)
- func (c *Client) FindConfigurationFile(params files_sdk.RemoteServerFindConfigurationFileParams, ...) (remoteServerConfigurationFile files_sdk.RemoteServerConfigurationFile, ...)
- func (c *Client) List(params files_sdk.RemoteServerListParams, ...) (*Iter, error)
- func (c *Client) Update(params files_sdk.RemoteServerUpdateParams, ...) (remoteServer files_sdk.RemoteServer, err error)
- func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
- type Iter
- func (i *Iter) All() iter.Seq2[files_sdk.RemoteServer, 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) RemoteServer() files_sdk.RemoteServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentNodes ¶ added in v3.3.217
func AgentNodes(params files_sdk.RemoteServerAgentNodesParams, opts ...files_sdk.RequestResponseOption) (agentNode files_sdk.AgentNode, err error)
AgentNodes calls Client.AgentNodes using the default configuration.
func AgentPushUpdate ¶ added in v3.3.19
func AgentPushUpdate(params files_sdk.RemoteServerAgentPushUpdateParams, opts ...files_sdk.RequestResponseOption) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
AgentPushUpdate calls Client.AgentPushUpdate using the default configuration.
func AgentPushUpdateWithMap ¶ added in v3.3.19
func AgentPushUpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
AgentPushUpdateWithMap calls Client.AgentPushUpdateWithMap using the default configuration.
func Create ¶
func Create(params files_sdk.RemoteServerCreateParams, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
Create calls Client.Create using the default configuration.
func Delete ¶
func Delete(params files_sdk.RemoteServerDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls Client.Delete using the default configuration.
func Find ¶
func Find(params files_sdk.RemoteServerFindParams, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
Find calls Client.Find using the default configuration.
func FindConfigurationFile ¶
func FindConfigurationFile(params files_sdk.RemoteServerFindConfigurationFileParams, opts ...files_sdk.RequestResponseOption) (remoteServerConfigurationFile files_sdk.RemoteServerConfigurationFile, err error)
FindConfigurationFile calls Client.FindConfigurationFile using the default configuration.
func Update ¶
func Update(params files_sdk.RemoteServerUpdateParams, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
Update calls Client.Update using the default configuration.
func UpdateWithMap ¶
func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
UpdateWithMap calls Client.UpdateWithMap using the default configuration.
Types ¶
type Client ¶
Client calls the RemoteServer API using its embedded Config.
func (*Client) AgentNodes ¶ added in v3.3.217
func (c *Client) AgentNodes(params files_sdk.RemoteServerAgentNodesParams, opts ...files_sdk.RequestResponseOption) (agentNode files_sdk.AgentNode, err error)
AgentNodes calls GET /remote_servers/{id}/agent_nodes.
API operation: List Files.com Agent nodes.
func (*Client) AgentPushUpdate ¶ added in v3.3.19
func (c *Client) AgentPushUpdate(params files_sdk.RemoteServerAgentPushUpdateParams, opts ...files_sdk.RequestResponseOption) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
AgentPushUpdate calls POST /remote_servers/{id}/agent_push_update.
API operation: Push update to Files Agent.
func (*Client) AgentPushUpdateWithMap ¶ added in v3.3.19
func (c *Client) AgentPushUpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (agentPushUpdate files_sdk.AgentPushUpdate, err error)
AgentPushUpdateWithMap calls POST /remote_servers/{id}/agent_push_update 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.
func (*Client) Create ¶
func (c *Client) Create(params files_sdk.RemoteServerCreateParams, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
Create calls POST /remote_servers.
func (*Client) Delete ¶
func (c *Client) Delete(params files_sdk.RemoteServerDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls DELETE /remote_servers/{id}.
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.RemoteServerFindParams, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
Find calls GET /remote_servers/{id}.
func (*Client) FindConfigurationFile ¶
func (c *Client) FindConfigurationFile(params files_sdk.RemoteServerFindConfigurationFileParams, opts ...files_sdk.RequestResponseOption) (remoteServerConfigurationFile files_sdk.RemoteServerConfigurationFile, err error)
FindConfigurationFile calls GET /remote_servers/{id}/configuration_file.
API operation: Download configuration file (required for some Remote Server integrations, such as the Files.com Agent).
func (*Client) List ¶
func (c *Client) List(params files_sdk.RemoteServerListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /remote_servers. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) Update ¶
func (c *Client) Update(params files_sdk.RemoteServerUpdateParams, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
Update calls PATCH /remote_servers/{id}.
func (*Client) UpdateWithMap ¶
func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (remoteServer files_sdk.RemoteServer, err error)
UpdateWithMap calls PATCH /remote_servers/{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.RemoteServerListParams, 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.
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) RemoteServer ¶
func (i *Iter) RemoteServer() files_sdk.RemoteServer
RemoteServer returns the current resource. Call it only after Next returns true.