Documentation ¶
Index ¶
- Constants
- func BeginUpload(ctx context.Context, params files_sdk.FileBeginUploadParams) (files_sdk.FileUploadPartCollection, error)
- func Copy(ctx context.Context, params files_sdk.FileCopyParams) (files_sdk.FileAction, error)
- func Create(ctx context.Context, params files_sdk.FileCreateParams) (files_sdk.File, error)
- func Delete(ctx context.Context, params files_sdk.FileDeleteParams) (files_sdk.File, error)
- func Download(ctx context.Context, params files_sdk.FileDownloadParams) (files_sdk.File, error)
- func Find(ctx context.Context, params files_sdk.FileFindParams) (files_sdk.File, error)
- func Get(ctx context.Context, Path string) (files_sdk.File, error)
- func Move(ctx context.Context, params files_sdk.FileMoveParams) (files_sdk.FileAction, error)
- func RetryByPolicy(ctx context.Context, job *status.Job, policy RetryPolicy)
- func RetryByStatus(ctx context.Context, job *status.Job, s ...status.Status)
- func SetJobParams(r *status.Job, d direction.Type, params interface{})
- func Update(ctx context.Context, params files_sdk.FileUpdateParams) (files_sdk.File, error)
- type Client
- func (c *Client) BeginUpload(ctx context.Context, params files_sdk.FileBeginUploadParams) (files_sdk.FileUploadPartCollection, error)
- func (c *Client) Copy(ctx context.Context, params files_sdk.FileCopyParams) (files_sdk.FileAction, error)
- func (c *Client) Create(ctx context.Context, params files_sdk.FileCreateParams) (files_sdk.File, error)
- func (c *Client) Delete(ctx context.Context, params files_sdk.FileDeleteParams) (files_sdk.File, error)
- func (c *Client) Download(ctx context.Context, params files_sdk.FileDownloadParams) (files_sdk.File, error)
- func (c *Client) DownloadRetry(ctx context.Context, job status.Job) *status.Job
- func (c *Client) DownloadToFile(ctx context.Context, params files_sdk.FileDownloadParams, filePath string) (files_sdk.File, error)
- func (c *Client) Downloader(ctx context.Context, params DownloadFolderParams) *status.Job
- func (c *Client) Find(ctx context.Context, params files_sdk.FileFindParams) (files_sdk.File, error)
- func (c *Client) Get(ctx context.Context, Path string) (files_sdk.File, error)
- func (c *Client) Move(ctx context.Context, params files_sdk.FileMoveParams) (files_sdk.FileAction, error)
- func (c *Client) Update(ctx context.Context, params files_sdk.FileUpdateParams) (files_sdk.File, error)
- func (c *Client) Upload(parentCtx context.Context, reader io.ReaderAt, size int64, ...) (files_sdk.File, error)
- func (c *Client) UploadFile(ctx context.Context, params UploadParams) *status.Job
- func (c *Client) UploadFolder(ctx context.Context, params UploadParams) *status.Job
- func (c *Client) UploadRetry(ctx context.Context, job status.Job) *status.Job
- func (c *Client) Uploader(ctx context.Context, params UploadParams) *status.Job
- type DownloadFolderParams
- type DownloadStatus
- type Entity
- type FS
- type File
- func (f *File) Close() error
- func (f File) Info() (goFs.FileInfo, error)
- func (f File) IsDir() bool
- func (f File) Name() string
- func (f *File) Read(b []byte) (int, error)
- func (f *File) Reload() (File, error)
- func (f File) Stat() (goFs.FileInfo, error)
- func (f File) Type() goFs.FileMode
- func (f *File) WithContext(ctx context.Context)
- type Info
- type ProxyReader
- type ReadDirFile
- type RetryPolicy
- type UploadParams
- type UploadStatus
- type Uploader
Constants ¶
View Source
const ( RetryAll = RetryPolicy("RetryAll") RetryUnfinished = RetryPolicy("RetryUnfinished") RetryErroredIfSomeCompleted = RetryPolicy("RetryErroredIfSomeCompleted") )
Variables ¶
This section is empty.
Functions ¶
func BeginUpload ¶
func BeginUpload(ctx context.Context, params files_sdk.FileBeginUploadParams) (files_sdk.FileUploadPartCollection, error)
func Copy ¶
func Copy(ctx context.Context, params files_sdk.FileCopyParams) (files_sdk.FileAction, error)
func Move ¶
func Move(ctx context.Context, params files_sdk.FileMoveParams) (files_sdk.FileAction, error)
func RetryByPolicy ¶
func RetryByPolicy(ctx context.Context, job *status.Job, policy RetryPolicy)
Types ¶
type Client ¶
func (*Client) BeginUpload ¶
func (c *Client) BeginUpload(ctx context.Context, params files_sdk.FileBeginUploadParams) (files_sdk.FileUploadPartCollection, error)
func (*Client) Copy ¶
func (c *Client) Copy(ctx context.Context, params files_sdk.FileCopyParams) (files_sdk.FileAction, error)
func (*Client) DownloadRetry ¶
func (*Client) DownloadToFile ¶
func (*Client) Downloader ¶
func (*Client) Move ¶
func (c *Client) Move(ctx context.Context, params files_sdk.FileMoveParams) (files_sdk.FileAction, error)
func (*Client) UploadFile ¶
func (*Client) UploadFolder ¶
func (*Client) UploadRetry ¶
type DownloadFolderParams ¶
type DownloadFolderParams struct { RemotePath string RemoteFile files_sdk.File LocalPath string Sync bool RetryPolicy *manager.Manager status.EventsReporter }
type DownloadStatus ¶
type DownloadStatus struct { files_sdk.File status.Status *status.Job DownloadedBytes int64 LocalPath string RemotePath string Sync bool // contains filtered or unexported fields }
func (DownloadStatus) Id ¶
func (d DownloadStatus) Id() string
func (DownloadStatus) ToStatusFile ¶
func (d DownloadStatus) ToStatusFile() status.File
type FS ¶
type ProxyReader ¶
func (*ProxyReader) Close ¶
func (x *ProxyReader) Close() error
func (*ProxyReader) Len ¶
func (x *ProxyReader) Len() int
type ReadDirFile ¶
type ReadDirFile struct { File // contains filtered or unexported fields }
type RetryPolicy ¶
type RetryPolicy string
type UploadParams ¶
type UploadStatus ¶
type UploadStatus struct { files_sdk.File status.Status Job *status.Job LocalPath string RemotePath string UploadedBytes int64 Sync bool Uploader // contains filtered or unexported fields }
func (UploadStatus) Id ¶
func (u UploadStatus) Id() string
func (*UploadStatus) ToStatusFile ¶
func (u *UploadStatus) ToStatusFile() status.File
Source Files ¶
Click to show internal directories.
Click to hide internal directories.