file

package
v1.2.1161 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadToFile added in v1.0.15

func DownloadToFile(ctx context.Context, params files_sdk.FileDownloadParams, filePath string) (files_sdk.File, error)

func Find added in v1.0.175

func Find(ctx context.Context, Path string) (files_sdk.File, error)

func IsStreamError added in v1.2.1147

func IsStreamError(err error) bool

func Upload added in v1.0.15

func Upload(ctx context.Context, reader io.ReaderAt, size int64, beginUpload files_sdk.FileActionBeginUploadParams, progress func(int64), cm goccm.ConcurrencyManager) (files_sdk.File, error)

func UploadFile added in v1.0.15

func UploadFile(ctx context.Context, params *UploadParams) status.File

Types

type Client

type Client struct {
	files_sdk.Config
}

func (*Client) Create

func (c *Client) Create(ctx context.Context, params files_sdk.FileCreateParams) (files_sdk.File, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, params files_sdk.FileDeleteParams) (files_sdk.File, error)

func (*Client) Download

func (c *Client) Download(ctx context.Context, params files_sdk.FileDownloadParams) (files_sdk.File, error)

func (*Client) DownloadFolder added in v1.0.79

func (c *Client) DownloadFolder(ctx context.Context, params DownloadFolderParams) status.Job

func (*Client) DownloadRetry added in v1.2.1147

func (c *Client) DownloadRetry(ctx context.Context, params DownloadRetryParams) status.Job

func (*Client) DownloadToFile added in v1.0.15

func (c *Client) DownloadToFile(ctx context.Context, params files_sdk.FileDownloadParams, filePath string) (files_sdk.File, error)

func (*Client) Find added in v1.0.175

func (c *Client) Find(ctx context.Context, Path string) (files_sdk.File, error)

func (*Client) Update

func (c *Client) Update(ctx context.Context, params files_sdk.FileUpdateParams) (files_sdk.File, error)

func (*Client) Upload added in v1.0.15

func (c *Client) Upload(ctx context.Context, reader io.ReaderAt, size int64, params files_sdk.FileActionBeginUploadParams, progress func(int64), cm goccm.ConcurrencyManager) (files_sdk.File, error)

func (*Client) UploadFile added in v1.0.15

func (c *Client) UploadFile(ctx context.Context, params *UploadParams) status.File

func (*Client) UploadFolder added in v1.0.78

func (c *Client) UploadFolder(ctx context.Context, params *UploadParams) status.Job

func (*Client) UploadFolderOrFile added in v1.0.107

func (c *Client) UploadFolderOrFile(ctx context.Context, params *UploadParams) status.Job

func (*Client) UploadRetry added in v1.2.1147

func (c *Client) UploadRetry(ctx context.Context, params UploadRetryParams) status.File

type DownloadFolderParams added in v1.0.540

type DownloadFolderParams struct {
	files_sdk.FolderListForParams
	Sync bool
	*manager.Manager
	status.Reporter
	RootDestination string
	JobId           string
}

type DownloadRetryParams added in v1.2.1147

type DownloadRetryParams struct {
	status.File
	*manager.Manager
	status.Reporter
}

type DownloadStatus added in v1.1.1140

type DownloadStatus struct {
	files_sdk.File
	status.Status
	DownloadedBytes int64
	LocalPath       string
	RemotePath      string
	Sync            bool
	context.CancelFunc
	*status.Job
}

func (DownloadStatus) Id added in v1.1.1140

func (r DownloadStatus) Id() string

func (*DownloadStatus) SetStatus added in v1.1.1140

func (r *DownloadStatus) SetStatus(s status.Status)

func (DownloadStatus) ToStatusFile added in v1.2.1147

func (u DownloadStatus) ToStatusFile() status.File

type Downloader added in v1.0.540

type Downloader interface {
	Download(context.Context, files_sdk.FileDownloadParams) (files_sdk.File, error)
}

type Entity added in v1.0.107

type Entity struct {
	// contains filtered or unexported fields
}

type ProxyReader added in v1.0.541

type ProxyReader struct {
	io.ReaderAt
	// contains filtered or unexported fields
}

func (*ProxyReader) Close added in v1.0.541

func (x *ProxyReader) Close() error

func (*ProxyReader) Len added in v1.0.541

func (x *ProxyReader) Len() int

func (*ProxyReader) Read added in v1.0.541

func (x *ProxyReader) Read(p []byte) (int, error)

type UploadParams added in v1.0.107

type UploadParams struct {
	JobId       string
	Sync        bool
	Source      string
	Destination string
	status.Reporter
	*manager.Manager
}

type UploadRetryParams added in v1.2.1147

type UploadRetryParams struct {
	status.File
	*manager.Manager
	status.Reporter
}

type UploadStatus added in v1.1.1140

type UploadStatus struct {
	files_sdk.File
	status.Status
	context.CancelFunc
	Job           *status.Job
	LocalPath     string
	RemotePath    string
	UploadedBytes int64
	Sync          bool
}

func (UploadStatus) Id added in v1.1.1140

func (u UploadStatus) Id() string

func (*UploadStatus) SetStatus added in v1.1.1140

func (u *UploadStatus) SetStatus(s status.Status)

func (UploadStatus) ToStatusFile added in v1.2.1147

func (u UploadStatus) ToStatusFile() status.File

type Uploader added in v1.1.1140

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL