Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateNode(params *CreateNodeParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNodeOK, error)
- func (a *Client) DeleteNode(params *DeleteNodeParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNodeOK, error)
- func (a *Client) Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DownloadOK, error)
- func (a *Client) GetNodeInfos(params *GetNodeInfosParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodeInfosOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateNode(params *UpdateNodeParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNodeOK, error)
- func (a *Client) UploadStream(params *UploadStreamParams, authInfo runtime.ClientAuthInfoWriter) (*UploadStreamOK, error)
- type CreateNodeOK
- type CreateNodeParams
- func (o *CreateNodeParams) SetContext(ctx context.Context)
- func (o *CreateNodeParams) SetCopySource(copySource *string)
- func (o *CreateNodeParams) SetDeleteSource(deleteSource *bool)
- func (o *CreateNodeParams) SetHTTPClient(client *http.Client)
- func (o *CreateNodeParams) SetOverride(override *bool)
- func (o *CreateNodeParams) SetPath(path string)
- func (o *CreateNodeParams) SetRecursive(recursive *bool)
- func (o *CreateNodeParams) SetTimeout(timeout time.Duration)
- func (o *CreateNodeParams) WithContext(ctx context.Context) *CreateNodeParams
- func (o *CreateNodeParams) WithCopySource(copySource *string) *CreateNodeParams
- func (o *CreateNodeParams) WithDeleteSource(deleteSource *bool) *CreateNodeParams
- func (o *CreateNodeParams) WithHTTPClient(client *http.Client) *CreateNodeParams
- func (o *CreateNodeParams) WithOverride(override *bool) *CreateNodeParams
- func (o *CreateNodeParams) WithPath(path string) *CreateNodeParams
- func (o *CreateNodeParams) WithRecursive(recursive *bool) *CreateNodeParams
- func (o *CreateNodeParams) WithTimeout(timeout time.Duration) *CreateNodeParams
- func (o *CreateNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNodeReader
- type DeleteNodeOK
- type DeleteNodeParams
- func (o *DeleteNodeParams) SetContext(ctx context.Context)
- func (o *DeleteNodeParams) SetHTTPClient(client *http.Client)
- func (o *DeleteNodeParams) SetPath(path string)
- func (o *DeleteNodeParams) SetTimeout(timeout time.Duration)
- func (o *DeleteNodeParams) WithContext(ctx context.Context) *DeleteNodeParams
- func (o *DeleteNodeParams) WithHTTPClient(client *http.Client) *DeleteNodeParams
- func (o *DeleteNodeParams) WithPath(path string) *DeleteNodeParams
- func (o *DeleteNodeParams) WithTimeout(timeout time.Duration) *DeleteNodeParams
- func (o *DeleteNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNodeReader
- type DownloadOK
- type DownloadParams
- func (o *DownloadParams) SetAdditionalParameters(additionalParameters *string)
- func (o *DownloadParams) SetAttachment(attachment *bool)
- func (o *DownloadParams) SetContext(ctx context.Context)
- func (o *DownloadParams) SetHTTPClient(client *http.Client)
- func (o *DownloadParams) SetPath(path string)
- func (o *DownloadParams) SetTimeout(timeout time.Duration)
- func (o *DownloadParams) WithAdditionalParameters(additionalParameters *string) *DownloadParams
- func (o *DownloadParams) WithAttachment(attachment *bool) *DownloadParams
- func (o *DownloadParams) WithContext(ctx context.Context) *DownloadParams
- func (o *DownloadParams) WithHTTPClient(client *http.Client) *DownloadParams
- func (o *DownloadParams) WithPath(path string) *DownloadParams
- func (o *DownloadParams) WithTimeout(timeout time.Duration) *DownloadParams
- func (o *DownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DownloadReader
- type GetNodeInfosOK
- type GetNodeInfosParams
- func (o *GetNodeInfosParams) SetChildren(children *string)
- func (o *GetNodeInfosParams) SetContext(ctx context.Context)
- func (o *GetNodeInfosParams) SetHTTPClient(client *http.Client)
- func (o *GetNodeInfosParams) SetMaxDepth(maxDepth *int64)
- func (o *GetNodeInfosParams) SetMaxNodes(maxNodes *int64)
- func (o *GetNodeInfosParams) SetMeta(meta string)
- func (o *GetNodeInfosParams) SetOrderColumn(orderColumn *string)
- func (o *GetNodeInfosParams) SetOrderDirection(orderDirection *string)
- func (o *GetNodeInfosParams) SetPagePosition(pagePosition *bool)
- func (o *GetNodeInfosParams) SetPath(path string)
- func (o *GetNodeInfosParams) SetRecursive(recursive *bool)
- func (o *GetNodeInfosParams) SetRemoteOrder(remoteOrder *bool)
- func (o *GetNodeInfosParams) SetTimeout(timeout time.Duration)
- func (o *GetNodeInfosParams) SetXIndexationRequired(xIndexationRequired *bool)
- func (o *GetNodeInfosParams) WithChildren(children *string) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithContext(ctx context.Context) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithHTTPClient(client *http.Client) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithMaxDepth(maxDepth *int64) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithMaxNodes(maxNodes *int64) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithMeta(meta string) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithOrderColumn(orderColumn *string) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithOrderDirection(orderDirection *string) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithPagePosition(pagePosition *bool) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithPath(path string) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithRecursive(recursive *bool) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithRemoteOrder(remoteOrder *bool) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithTimeout(timeout time.Duration) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WithXIndexationRequired(xIndexationRequired *bool) *GetNodeInfosParams
- func (o *GetNodeInfosParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNodeInfosReader
- type UpdateNodeOK
- type UpdateNodeParams
- func (o *UpdateNodeParams) SetContext(ctx context.Context)
- func (o *UpdateNodeParams) SetHTTPClient(client *http.Client)
- func (o *UpdateNodeParams) SetMetadata(metadata string)
- func (o *UpdateNodeParams) SetPath(path string)
- func (o *UpdateNodeParams) SetTimeout(timeout time.Duration)
- func (o *UpdateNodeParams) WithContext(ctx context.Context) *UpdateNodeParams
- func (o *UpdateNodeParams) WithHTTPClient(client *http.Client) *UpdateNodeParams
- func (o *UpdateNodeParams) WithMetadata(metadata string) *UpdateNodeParams
- func (o *UpdateNodeParams) WithPath(path string) *UpdateNodeParams
- func (o *UpdateNodeParams) WithTimeout(timeout time.Duration) *UpdateNodeParams
- func (o *UpdateNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateNodeReader
- type UploadStreamOK
- type UploadStreamParams
- func (o *UploadStreamParams) SetContext(ctx context.Context)
- func (o *UploadStreamParams) SetHTTPClient(client *http.Client)
- func (o *UploadStreamParams) SetPath(path string)
- func (o *UploadStreamParams) SetRaw(raw models.InputStream)
- func (o *UploadStreamParams) SetTimeout(timeout time.Duration)
- func (o *UploadStreamParams) SetXAppendTo(xAppendTo *string)
- func (o *UploadStreamParams) SetXPartialTargetBytesize(xPartialTargetBytesize *int64)
- func (o *UploadStreamParams) SetXPartialUpload(xPartialUpload *bool)
- func (o *UploadStreamParams) SetXRenameIfExists(xRenameIfExists *bool)
- func (o *UploadStreamParams) WithContext(ctx context.Context) *UploadStreamParams
- func (o *UploadStreamParams) WithHTTPClient(client *http.Client) *UploadStreamParams
- func (o *UploadStreamParams) WithPath(path string) *UploadStreamParams
- func (o *UploadStreamParams) WithRaw(raw models.InputStream) *UploadStreamParams
- func (o *UploadStreamParams) WithTimeout(timeout time.Duration) *UploadStreamParams
- func (o *UploadStreamParams) WithXAppendTo(xAppendTo *string) *UploadStreamParams
- func (o *UploadStreamParams) WithXPartialTargetBytesize(xPartialTargetBytesize *int64) *UploadStreamParams
- func (o *UploadStreamParams) WithXPartialUpload(xPartialUpload *bool) *UploadStreamParams
- func (o *UploadStreamParams) WithXRenameIfExists(xRenameIfExists *bool) *UploadStreamParams
- func (o *UploadStreamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadStreamReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for file API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new file API client.
func (*Client) CreateNode ¶
func (a *Client) CreateNode(params *CreateNodeParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNodeOK, error)
CreateNode Create new resources or move/copy existing resources: + Create a new folder (pass a path **with a trailing slash**), or a new empty file (no trailing slash). + Copy a resource to a new destination: pass destination as {path}, and origin via copy_from parameter. + Rename / Move a resource : basically a copy operation followed by a delete of original
func (*Client) DeleteNode ¶
func (a *Client) DeleteNode(params *DeleteNodeParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNodeOK, error)
DeleteNode Delete existing resource
func (*Client) Download ¶
func (a *Client) Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)
Download Get resource content. Depending on the attachment parameter, will try to either trigger a download, or send binary stream with appropriate headers. Depending on the active plugins, may be able to serve: + Plain text + MP3/Wav Stream + MP4 Stream + On-the-fly generated images + On-the-fly generated thumbnails for images or pdf
func (*Client) GetNodeInfos ¶
func (a *Client) GetNodeInfos(params *GetNodeInfosParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodeInfosOK, error)
GetNodeInfos Get information about a node and its metadata. By default, it will return Pydio "primary" metadata (stat, internal informations). Extended metadata can be added by some plugins. For collections (folders), pass the **children** parameter to list its content. To access the actual content of the nodes, see the I/O API.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateNode ¶
func (a *Client) UpdateNode(params *UpdateNodeParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNodeOK, error)
UpdateNode Update existing resources metadata (see I/O for content modification). Basic metadata is provided by core plugins, but they can be extended by other plugins. For example : `{"core": {"chmod": 777}}, {"user_meta":[{"metaName":"metaValue"}]}` `{"bookmarks":{"bookmarked": true}, "locks":{"locked":true}, "meta.watch":{"watch":true}}` etc...
func (*Client) UploadStream ¶
func (a *Client) UploadStream(params *UploadStreamParams, authInfo runtime.ClientAuthInfoWriter) (*UploadStreamOK, error)
UploadStream Create or update resource by posting to Input Stream
type CreateNodeOK ¶
type CreateNodeOK struct {
Payload *models.PydioResponse
}
CreateNodeOK handles this case with default header values.
Successful response
func NewCreateNodeOK ¶
func NewCreateNodeOK() *CreateNodeOK
NewCreateNodeOK creates a CreateNodeOK with default headers values
func (*CreateNodeOK) Error ¶
func (o *CreateNodeOK) Error() string
type CreateNodeParams ¶
type CreateNodeParams struct { /*CopySource If it's a move or a copy, indicated the path of the original node. Path must contain the original workspace Id, as it can be used for cross repository copy as well. */ CopySource *string /*DeleteSource If it's a move/rename, will remove original after copy operation */ DeleteSource *bool /*Override Ignore existing resource and override it */ Override *bool /*Path Workspace id or alias + full path to the node, e.g. "/my-files/path/to/node" */ Path string /*Recursive For directories, create parents if necessary */ Recursive *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateNodeParams contains all the parameters to send to the API endpoint for the create node operation typically these are written to a http.Request
func NewCreateNodeParams ¶
func NewCreateNodeParams() *CreateNodeParams
NewCreateNodeParams creates a new CreateNodeParams object with the default values initialized.
func NewCreateNodeParamsWithContext ¶
func NewCreateNodeParamsWithContext(ctx context.Context) *CreateNodeParams
NewCreateNodeParamsWithContext creates a new CreateNodeParams object with the default values initialized, and the ability to set a context for a request
func NewCreateNodeParamsWithHTTPClient ¶
func NewCreateNodeParamsWithHTTPClient(client *http.Client) *CreateNodeParams
NewCreateNodeParamsWithHTTPClient creates a new CreateNodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateNodeParamsWithTimeout ¶
func NewCreateNodeParamsWithTimeout(timeout time.Duration) *CreateNodeParams
NewCreateNodeParamsWithTimeout creates a new CreateNodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateNodeParams) SetContext ¶
func (o *CreateNodeParams) SetContext(ctx context.Context)
SetContext adds the context to the create node params
func (*CreateNodeParams) SetCopySource ¶
func (o *CreateNodeParams) SetCopySource(copySource *string)
SetCopySource adds the copySource to the create node params
func (*CreateNodeParams) SetDeleteSource ¶
func (o *CreateNodeParams) SetDeleteSource(deleteSource *bool)
SetDeleteSource adds the deleteSource to the create node params
func (*CreateNodeParams) SetHTTPClient ¶
func (o *CreateNodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create node params
func (*CreateNodeParams) SetOverride ¶
func (o *CreateNodeParams) SetOverride(override *bool)
SetOverride adds the override to the create node params
func (*CreateNodeParams) SetPath ¶
func (o *CreateNodeParams) SetPath(path string)
SetPath adds the path to the create node params
func (*CreateNodeParams) SetRecursive ¶
func (o *CreateNodeParams) SetRecursive(recursive *bool)
SetRecursive adds the recursive to the create node params
func (*CreateNodeParams) SetTimeout ¶
func (o *CreateNodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create node params
func (*CreateNodeParams) WithContext ¶
func (o *CreateNodeParams) WithContext(ctx context.Context) *CreateNodeParams
WithContext adds the context to the create node params
func (*CreateNodeParams) WithCopySource ¶
func (o *CreateNodeParams) WithCopySource(copySource *string) *CreateNodeParams
WithCopySource adds the copySource to the create node params
func (*CreateNodeParams) WithDeleteSource ¶
func (o *CreateNodeParams) WithDeleteSource(deleteSource *bool) *CreateNodeParams
WithDeleteSource adds the deleteSource to the create node params
func (*CreateNodeParams) WithHTTPClient ¶
func (o *CreateNodeParams) WithHTTPClient(client *http.Client) *CreateNodeParams
WithHTTPClient adds the HTTPClient to the create node params
func (*CreateNodeParams) WithOverride ¶
func (o *CreateNodeParams) WithOverride(override *bool) *CreateNodeParams
WithOverride adds the override to the create node params
func (*CreateNodeParams) WithPath ¶
func (o *CreateNodeParams) WithPath(path string) *CreateNodeParams
WithPath adds the path to the create node params
func (*CreateNodeParams) WithRecursive ¶
func (o *CreateNodeParams) WithRecursive(recursive *bool) *CreateNodeParams
WithRecursive adds the recursive to the create node params
func (*CreateNodeParams) WithTimeout ¶
func (o *CreateNodeParams) WithTimeout(timeout time.Duration) *CreateNodeParams
WithTimeout adds the timeout to the create node params
func (*CreateNodeParams) WriteToRequest ¶
func (o *CreateNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateNodeReader ¶
type CreateNodeReader struct {
// contains filtered or unexported fields
}
CreateNodeReader is a Reader for the CreateNode structure.
func (*CreateNodeReader) ReadResponse ¶
func (o *CreateNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteNodeOK ¶
type DeleteNodeOK struct {
Payload *models.PydioResponse
}
DeleteNodeOK handles this case with default header values.
Successful response
func NewDeleteNodeOK ¶
func NewDeleteNodeOK() *DeleteNodeOK
NewDeleteNodeOK creates a DeleteNodeOK with default headers values
func (*DeleteNodeOK) Error ¶
func (o *DeleteNodeOK) Error() string
type DeleteNodeParams ¶
type DeleteNodeParams struct { /*Path Workspace id or alias + full path to the node, e.g. "/my-files/path/to/node" */ Path string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteNodeParams contains all the parameters to send to the API endpoint for the delete node operation typically these are written to a http.Request
func NewDeleteNodeParams ¶
func NewDeleteNodeParams() *DeleteNodeParams
NewDeleteNodeParams creates a new DeleteNodeParams object with the default values initialized.
func NewDeleteNodeParamsWithContext ¶
func NewDeleteNodeParamsWithContext(ctx context.Context) *DeleteNodeParams
NewDeleteNodeParamsWithContext creates a new DeleteNodeParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteNodeParamsWithHTTPClient ¶
func NewDeleteNodeParamsWithHTTPClient(client *http.Client) *DeleteNodeParams
NewDeleteNodeParamsWithHTTPClient creates a new DeleteNodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteNodeParamsWithTimeout ¶
func NewDeleteNodeParamsWithTimeout(timeout time.Duration) *DeleteNodeParams
NewDeleteNodeParamsWithTimeout creates a new DeleteNodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteNodeParams) SetContext ¶
func (o *DeleteNodeParams) SetContext(ctx context.Context)
SetContext adds the context to the delete node params
func (*DeleteNodeParams) SetHTTPClient ¶
func (o *DeleteNodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete node params
func (*DeleteNodeParams) SetPath ¶
func (o *DeleteNodeParams) SetPath(path string)
SetPath adds the path to the delete node params
func (*DeleteNodeParams) SetTimeout ¶
func (o *DeleteNodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete node params
func (*DeleteNodeParams) WithContext ¶
func (o *DeleteNodeParams) WithContext(ctx context.Context) *DeleteNodeParams
WithContext adds the context to the delete node params
func (*DeleteNodeParams) WithHTTPClient ¶
func (o *DeleteNodeParams) WithHTTPClient(client *http.Client) *DeleteNodeParams
WithHTTPClient adds the HTTPClient to the delete node params
func (*DeleteNodeParams) WithPath ¶
func (o *DeleteNodeParams) WithPath(path string) *DeleteNodeParams
WithPath adds the path to the delete node params
func (*DeleteNodeParams) WithTimeout ¶
func (o *DeleteNodeParams) WithTimeout(timeout time.Duration) *DeleteNodeParams
WithTimeout adds the timeout to the delete node params
func (*DeleteNodeParams) WriteToRequest ¶
func (o *DeleteNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteNodeReader ¶
type DeleteNodeReader struct {
// contains filtered or unexported fields
}
DeleteNodeReader is a Reader for the DeleteNode structure.
func (*DeleteNodeReader) ReadResponse ¶
func (o *DeleteNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DownloadOK ¶
DownloadOK handles this case with default header values.
Successful Response
func NewDownloadOK ¶
func NewDownloadOK(writer io.Writer) *DownloadOK
NewDownloadOK creates a DownloadOK with default headers values
func (*DownloadOK) Error ¶
func (o *DownloadOK) Error() string
type DownloadParams ¶
type DownloadParams struct { /*AdditionalParameters some plugin can take more parameters to send various contents derived from main resource. For example, for images, you can pass get_thumb & dimension */ AdditionalParameters *string /*Attachment if set, send back a force-download, otherwise use Accept header to try to find the best response Content-Type. */ Attachment *bool /*Path Workspace id or alias + full path to the node, e.g. "/my-files/path/to/node" */ Path string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DownloadParams contains all the parameters to send to the API endpoint for the download operation typically these are written to a http.Request
func NewDownloadParams ¶
func NewDownloadParams() *DownloadParams
NewDownloadParams creates a new DownloadParams object with the default values initialized.
func NewDownloadParamsWithContext ¶
func NewDownloadParamsWithContext(ctx context.Context) *DownloadParams
NewDownloadParamsWithContext creates a new DownloadParams object with the default values initialized, and the ability to set a context for a request
func NewDownloadParamsWithHTTPClient ¶
func NewDownloadParamsWithHTTPClient(client *http.Client) *DownloadParams
NewDownloadParamsWithHTTPClient creates a new DownloadParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDownloadParamsWithTimeout ¶
func NewDownloadParamsWithTimeout(timeout time.Duration) *DownloadParams
NewDownloadParamsWithTimeout creates a new DownloadParams object with the default values initialized, and the ability to set a timeout on a request
func (*DownloadParams) SetAdditionalParameters ¶
func (o *DownloadParams) SetAdditionalParameters(additionalParameters *string)
SetAdditionalParameters adds the additionalParameters to the download params
func (*DownloadParams) SetAttachment ¶
func (o *DownloadParams) SetAttachment(attachment *bool)
SetAttachment adds the attachment to the download params
func (*DownloadParams) SetContext ¶
func (o *DownloadParams) SetContext(ctx context.Context)
SetContext adds the context to the download params
func (*DownloadParams) SetHTTPClient ¶
func (o *DownloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the download params
func (*DownloadParams) SetPath ¶
func (o *DownloadParams) SetPath(path string)
SetPath adds the path to the download params
func (*DownloadParams) SetTimeout ¶
func (o *DownloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the download params
func (*DownloadParams) WithAdditionalParameters ¶
func (o *DownloadParams) WithAdditionalParameters(additionalParameters *string) *DownloadParams
WithAdditionalParameters adds the additionalParameters to the download params
func (*DownloadParams) WithAttachment ¶
func (o *DownloadParams) WithAttachment(attachment *bool) *DownloadParams
WithAttachment adds the attachment to the download params
func (*DownloadParams) WithContext ¶
func (o *DownloadParams) WithContext(ctx context.Context) *DownloadParams
WithContext adds the context to the download params
func (*DownloadParams) WithHTTPClient ¶
func (o *DownloadParams) WithHTTPClient(client *http.Client) *DownloadParams
WithHTTPClient adds the HTTPClient to the download params
func (*DownloadParams) WithPath ¶
func (o *DownloadParams) WithPath(path string) *DownloadParams
WithPath adds the path to the download params
func (*DownloadParams) WithTimeout ¶
func (o *DownloadParams) WithTimeout(timeout time.Duration) *DownloadParams
WithTimeout adds the timeout to the download params
func (*DownloadParams) WriteToRequest ¶
func (o *DownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DownloadReader ¶
type DownloadReader struct {
// contains filtered or unexported fields
}
DownloadReader is a Reader for the Download structure.
func (*DownloadReader) ReadResponse ¶
func (o *DownloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNodeInfosOK ¶
GetNodeInfosOK handles this case with default header values.
Successful response
func NewGetNodeInfosOK ¶
func NewGetNodeInfosOK() *GetNodeInfosOK
NewGetNodeInfosOK creates a GetNodeInfosOK with default headers values
func (*GetNodeInfosOK) Error ¶
func (o *GetNodeInfosOK) Error() string
type GetNodeInfosParams ¶
type GetNodeInfosParams struct { /*XIndexationRequired Invalidate current index and trigger a background indexation */ XIndexationRequired *bool /*Children Load children if node is a collection */ Children *string /*MaxDepth If requiring children recursively, stop at the given depth. If -1, no limit. */ MaxDepth *int64 /*MaxNodes If requiring children recursively, stop at the given depth. If -1, no limit. */ MaxNodes *int64 /*Meta Level of precision for expected metadata */ Meta string /*OrderColumn Order column to use for server-side sorting */ OrderColumn *string /*OrderDirection Order direction to use for server-side sorting (asc or desc) */ OrderDirection *string /*PagePosition For a single file, try to detect the page position in the parent node listing. */ PagePosition *bool /*Path Workspace id or alias + full path to the node, e.g. "/my-files/path/to/node" */ Path string /*Recursive If requiring children, load grandchildren recursively */ Recursive *bool /*RemoteOrder Apply server-side sorting */ RemoteOrder *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNodeInfosParams contains all the parameters to send to the API endpoint for the get node infos operation typically these are written to a http.Request
func NewGetNodeInfosParams ¶
func NewGetNodeInfosParams() *GetNodeInfosParams
NewGetNodeInfosParams creates a new GetNodeInfosParams object with the default values initialized.
func NewGetNodeInfosParamsWithContext ¶
func NewGetNodeInfosParamsWithContext(ctx context.Context) *GetNodeInfosParams
NewGetNodeInfosParamsWithContext creates a new GetNodeInfosParams object with the default values initialized, and the ability to set a context for a request
func NewGetNodeInfosParamsWithHTTPClient ¶
func NewGetNodeInfosParamsWithHTTPClient(client *http.Client) *GetNodeInfosParams
NewGetNodeInfosParamsWithHTTPClient creates a new GetNodeInfosParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetNodeInfosParamsWithTimeout ¶
func NewGetNodeInfosParamsWithTimeout(timeout time.Duration) *GetNodeInfosParams
NewGetNodeInfosParamsWithTimeout creates a new GetNodeInfosParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetNodeInfosParams) SetChildren ¶
func (o *GetNodeInfosParams) SetChildren(children *string)
SetChildren adds the children to the get node infos params
func (*GetNodeInfosParams) SetContext ¶
func (o *GetNodeInfosParams) SetContext(ctx context.Context)
SetContext adds the context to the get node infos params
func (*GetNodeInfosParams) SetHTTPClient ¶
func (o *GetNodeInfosParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get node infos params
func (*GetNodeInfosParams) SetMaxDepth ¶
func (o *GetNodeInfosParams) SetMaxDepth(maxDepth *int64)
SetMaxDepth adds the maxDepth to the get node infos params
func (*GetNodeInfosParams) SetMaxNodes ¶
func (o *GetNodeInfosParams) SetMaxNodes(maxNodes *int64)
SetMaxNodes adds the maxNodes to the get node infos params
func (*GetNodeInfosParams) SetMeta ¶
func (o *GetNodeInfosParams) SetMeta(meta string)
SetMeta adds the meta to the get node infos params
func (*GetNodeInfosParams) SetOrderColumn ¶
func (o *GetNodeInfosParams) SetOrderColumn(orderColumn *string)
SetOrderColumn adds the orderColumn to the get node infos params
func (*GetNodeInfosParams) SetOrderDirection ¶
func (o *GetNodeInfosParams) SetOrderDirection(orderDirection *string)
SetOrderDirection adds the orderDirection to the get node infos params
func (*GetNodeInfosParams) SetPagePosition ¶
func (o *GetNodeInfosParams) SetPagePosition(pagePosition *bool)
SetPagePosition adds the pagePosition to the get node infos params
func (*GetNodeInfosParams) SetPath ¶
func (o *GetNodeInfosParams) SetPath(path string)
SetPath adds the path to the get node infos params
func (*GetNodeInfosParams) SetRecursive ¶
func (o *GetNodeInfosParams) SetRecursive(recursive *bool)
SetRecursive adds the recursive to the get node infos params
func (*GetNodeInfosParams) SetRemoteOrder ¶
func (o *GetNodeInfosParams) SetRemoteOrder(remoteOrder *bool)
SetRemoteOrder adds the remoteOrder to the get node infos params
func (*GetNodeInfosParams) SetTimeout ¶
func (o *GetNodeInfosParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get node infos params
func (*GetNodeInfosParams) SetXIndexationRequired ¶
func (o *GetNodeInfosParams) SetXIndexationRequired(xIndexationRequired *bool)
SetXIndexationRequired adds the xIndexationRequired to the get node infos params
func (*GetNodeInfosParams) WithChildren ¶
func (o *GetNodeInfosParams) WithChildren(children *string) *GetNodeInfosParams
WithChildren adds the children to the get node infos params
func (*GetNodeInfosParams) WithContext ¶
func (o *GetNodeInfosParams) WithContext(ctx context.Context) *GetNodeInfosParams
WithContext adds the context to the get node infos params
func (*GetNodeInfosParams) WithHTTPClient ¶
func (o *GetNodeInfosParams) WithHTTPClient(client *http.Client) *GetNodeInfosParams
WithHTTPClient adds the HTTPClient to the get node infos params
func (*GetNodeInfosParams) WithMaxDepth ¶
func (o *GetNodeInfosParams) WithMaxDepth(maxDepth *int64) *GetNodeInfosParams
WithMaxDepth adds the maxDepth to the get node infos params
func (*GetNodeInfosParams) WithMaxNodes ¶
func (o *GetNodeInfosParams) WithMaxNodes(maxNodes *int64) *GetNodeInfosParams
WithMaxNodes adds the maxNodes to the get node infos params
func (*GetNodeInfosParams) WithMeta ¶
func (o *GetNodeInfosParams) WithMeta(meta string) *GetNodeInfosParams
WithMeta adds the meta to the get node infos params
func (*GetNodeInfosParams) WithOrderColumn ¶
func (o *GetNodeInfosParams) WithOrderColumn(orderColumn *string) *GetNodeInfosParams
WithOrderColumn adds the orderColumn to the get node infos params
func (*GetNodeInfosParams) WithOrderDirection ¶
func (o *GetNodeInfosParams) WithOrderDirection(orderDirection *string) *GetNodeInfosParams
WithOrderDirection adds the orderDirection to the get node infos params
func (*GetNodeInfosParams) WithPagePosition ¶
func (o *GetNodeInfosParams) WithPagePosition(pagePosition *bool) *GetNodeInfosParams
WithPagePosition adds the pagePosition to the get node infos params
func (*GetNodeInfosParams) WithPath ¶
func (o *GetNodeInfosParams) WithPath(path string) *GetNodeInfosParams
WithPath adds the path to the get node infos params
func (*GetNodeInfosParams) WithRecursive ¶
func (o *GetNodeInfosParams) WithRecursive(recursive *bool) *GetNodeInfosParams
WithRecursive adds the recursive to the get node infos params
func (*GetNodeInfosParams) WithRemoteOrder ¶
func (o *GetNodeInfosParams) WithRemoteOrder(remoteOrder *bool) *GetNodeInfosParams
WithRemoteOrder adds the remoteOrder to the get node infos params
func (*GetNodeInfosParams) WithTimeout ¶
func (o *GetNodeInfosParams) WithTimeout(timeout time.Duration) *GetNodeInfosParams
WithTimeout adds the timeout to the get node infos params
func (*GetNodeInfosParams) WithXIndexationRequired ¶
func (o *GetNodeInfosParams) WithXIndexationRequired(xIndexationRequired *bool) *GetNodeInfosParams
WithXIndexationRequired adds the xIndexationRequired to the get node infos params
func (*GetNodeInfosParams) WriteToRequest ¶
func (o *GetNodeInfosParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNodeInfosReader ¶
type GetNodeInfosReader struct {
// contains filtered or unexported fields
}
GetNodeInfosReader is a Reader for the GetNodeInfos structure.
func (*GetNodeInfosReader) ReadResponse ¶
func (o *GetNodeInfosReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateNodeOK ¶
type UpdateNodeOK struct {
Payload *models.PydioResponse
}
UpdateNodeOK handles this case with default header values.
Successful response
func NewUpdateNodeOK ¶
func NewUpdateNodeOK() *UpdateNodeOK
NewUpdateNodeOK creates a UpdateNodeOK with default headers values
func (*UpdateNodeOK) Error ¶
func (o *UpdateNodeOK) Error() string
type UpdateNodeParams ¶
type UpdateNodeParams struct { /*Metadata Json-serialized metadata to update */ Metadata string /*Path Workspace id or alias + full path to the node, e.g. "/my-files/path/to/node" */ Path string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateNodeParams contains all the parameters to send to the API endpoint for the update node operation typically these are written to a http.Request
func NewUpdateNodeParams ¶
func NewUpdateNodeParams() *UpdateNodeParams
NewUpdateNodeParams creates a new UpdateNodeParams object with the default values initialized.
func NewUpdateNodeParamsWithContext ¶
func NewUpdateNodeParamsWithContext(ctx context.Context) *UpdateNodeParams
NewUpdateNodeParamsWithContext creates a new UpdateNodeParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateNodeParamsWithHTTPClient ¶
func NewUpdateNodeParamsWithHTTPClient(client *http.Client) *UpdateNodeParams
NewUpdateNodeParamsWithHTTPClient creates a new UpdateNodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateNodeParamsWithTimeout ¶
func NewUpdateNodeParamsWithTimeout(timeout time.Duration) *UpdateNodeParams
NewUpdateNodeParamsWithTimeout creates a new UpdateNodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateNodeParams) SetContext ¶
func (o *UpdateNodeParams) SetContext(ctx context.Context)
SetContext adds the context to the update node params
func (*UpdateNodeParams) SetHTTPClient ¶
func (o *UpdateNodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update node params
func (*UpdateNodeParams) SetMetadata ¶
func (o *UpdateNodeParams) SetMetadata(metadata string)
SetMetadata adds the metadata to the update node params
func (*UpdateNodeParams) SetPath ¶
func (o *UpdateNodeParams) SetPath(path string)
SetPath adds the path to the update node params
func (*UpdateNodeParams) SetTimeout ¶
func (o *UpdateNodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update node params
func (*UpdateNodeParams) WithContext ¶
func (o *UpdateNodeParams) WithContext(ctx context.Context) *UpdateNodeParams
WithContext adds the context to the update node params
func (*UpdateNodeParams) WithHTTPClient ¶
func (o *UpdateNodeParams) WithHTTPClient(client *http.Client) *UpdateNodeParams
WithHTTPClient adds the HTTPClient to the update node params
func (*UpdateNodeParams) WithMetadata ¶
func (o *UpdateNodeParams) WithMetadata(metadata string) *UpdateNodeParams
WithMetadata adds the metadata to the update node params
func (*UpdateNodeParams) WithPath ¶
func (o *UpdateNodeParams) WithPath(path string) *UpdateNodeParams
WithPath adds the path to the update node params
func (*UpdateNodeParams) WithTimeout ¶
func (o *UpdateNodeParams) WithTimeout(timeout time.Duration) *UpdateNodeParams
WithTimeout adds the timeout to the update node params
func (*UpdateNodeParams) WriteToRequest ¶
func (o *UpdateNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateNodeReader ¶
type UpdateNodeReader struct {
// contains filtered or unexported fields
}
UpdateNodeReader is a Reader for the UpdateNode structure.
func (*UpdateNodeReader) ReadResponse ¶
func (o *UpdateNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UploadStreamOK ¶
type UploadStreamOK struct {
Payload *models.PydioResponse
}
UploadStreamOK handles this case with default header values.
Successful Response
func NewUploadStreamOK ¶
func NewUploadStreamOK() *UploadStreamOK
NewUploadStreamOK creates a UploadStreamOK with default headers values
func (*UploadStreamOK) Error ¶
func (o *UploadStreamOK) Error() string
type UploadStreamParams ¶
type UploadStreamParams struct { /*XAppendTo Append uploaded data at the end of existing file */ XAppendTo *string /*XPartialTargetBytesize In case of partial upload, the size of the full file as expected at the end of upload. */ XPartialTargetBytesize *int64 /*XPartialUpload If the current put is a part of a file. If set, the X-Partial-Target-Bytesize header is required. */ XPartialUpload *bool /*XRenameIfExists Automatically increment filename if it already exists */ XRenameIfExists *bool /*Path Workspace id or alias + full path to the node, e.g. "/my-files/path/to/node" */ Path string /*Raw binary data */ Raw models.InputStream Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UploadStreamParams contains all the parameters to send to the API endpoint for the upload stream operation typically these are written to a http.Request
func NewUploadStreamParams ¶
func NewUploadStreamParams() *UploadStreamParams
NewUploadStreamParams creates a new UploadStreamParams object with the default values initialized.
func NewUploadStreamParamsWithContext ¶
func NewUploadStreamParamsWithContext(ctx context.Context) *UploadStreamParams
NewUploadStreamParamsWithContext creates a new UploadStreamParams object with the default values initialized, and the ability to set a context for a request
func NewUploadStreamParamsWithHTTPClient ¶
func NewUploadStreamParamsWithHTTPClient(client *http.Client) *UploadStreamParams
NewUploadStreamParamsWithHTTPClient creates a new UploadStreamParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUploadStreamParamsWithTimeout ¶
func NewUploadStreamParamsWithTimeout(timeout time.Duration) *UploadStreamParams
NewUploadStreamParamsWithTimeout creates a new UploadStreamParams object with the default values initialized, and the ability to set a timeout on a request
func (*UploadStreamParams) SetContext ¶
func (o *UploadStreamParams) SetContext(ctx context.Context)
SetContext adds the context to the upload stream params
func (*UploadStreamParams) SetHTTPClient ¶
func (o *UploadStreamParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload stream params
func (*UploadStreamParams) SetPath ¶
func (o *UploadStreamParams) SetPath(path string)
SetPath adds the path to the upload stream params
func (*UploadStreamParams) SetRaw ¶
func (o *UploadStreamParams) SetRaw(raw models.InputStream)
SetRaw adds the raw to the upload stream params
func (*UploadStreamParams) SetTimeout ¶
func (o *UploadStreamParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload stream params
func (*UploadStreamParams) SetXAppendTo ¶
func (o *UploadStreamParams) SetXAppendTo(xAppendTo *string)
SetXAppendTo adds the xAppendTo to the upload stream params
func (*UploadStreamParams) SetXPartialTargetBytesize ¶
func (o *UploadStreamParams) SetXPartialTargetBytesize(xPartialTargetBytesize *int64)
SetXPartialTargetBytesize adds the xPartialTargetBytesize to the upload stream params
func (*UploadStreamParams) SetXPartialUpload ¶
func (o *UploadStreamParams) SetXPartialUpload(xPartialUpload *bool)
SetXPartialUpload adds the xPartialUpload to the upload stream params
func (*UploadStreamParams) SetXRenameIfExists ¶
func (o *UploadStreamParams) SetXRenameIfExists(xRenameIfExists *bool)
SetXRenameIfExists adds the xRenameIfExists to the upload stream params
func (*UploadStreamParams) WithContext ¶
func (o *UploadStreamParams) WithContext(ctx context.Context) *UploadStreamParams
WithContext adds the context to the upload stream params
func (*UploadStreamParams) WithHTTPClient ¶
func (o *UploadStreamParams) WithHTTPClient(client *http.Client) *UploadStreamParams
WithHTTPClient adds the HTTPClient to the upload stream params
func (*UploadStreamParams) WithPath ¶
func (o *UploadStreamParams) WithPath(path string) *UploadStreamParams
WithPath adds the path to the upload stream params
func (*UploadStreamParams) WithRaw ¶
func (o *UploadStreamParams) WithRaw(raw models.InputStream) *UploadStreamParams
WithRaw adds the raw to the upload stream params
func (*UploadStreamParams) WithTimeout ¶
func (o *UploadStreamParams) WithTimeout(timeout time.Duration) *UploadStreamParams
WithTimeout adds the timeout to the upload stream params
func (*UploadStreamParams) WithXAppendTo ¶
func (o *UploadStreamParams) WithXAppendTo(xAppendTo *string) *UploadStreamParams
WithXAppendTo adds the xAppendTo to the upload stream params
func (*UploadStreamParams) WithXPartialTargetBytesize ¶
func (o *UploadStreamParams) WithXPartialTargetBytesize(xPartialTargetBytesize *int64) *UploadStreamParams
WithXPartialTargetBytesize adds the xPartialTargetBytesize to the upload stream params
func (*UploadStreamParams) WithXPartialUpload ¶
func (o *UploadStreamParams) WithXPartialUpload(xPartialUpload *bool) *UploadStreamParams
WithXPartialUpload adds the xPartialUpload to the upload stream params
func (*UploadStreamParams) WithXRenameIfExists ¶
func (o *UploadStreamParams) WithXRenameIfExists(xRenameIfExists *bool) *UploadStreamParams
WithXRenameIfExists adds the xRenameIfExists to the upload stream params
func (*UploadStreamParams) WriteToRequest ¶
func (o *UploadStreamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UploadStreamReader ¶
type UploadStreamReader struct {
// contains filtered or unexported fields
}
UploadStreamReader is a Reader for the UploadStream structure.
func (*UploadStreamReader) ReadResponse ¶
func (o *UploadStreamReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_node_parameters.go
- create_node_responses.go
- delete_node_parameters.go
- delete_node_responses.go
- download_parameters.go
- download_responses.go
- file_client.go
- get_node_infos_parameters.go
- get_node_infos_responses.go
- update_node_parameters.go
- update_node_responses.go
- upload_stream_parameters.go
- upload_stream_responses.go