file

package
v1.1.1140 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 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 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.Job, error)

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, error)

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.Job, error)

func (*Client) UploadFolder added in v1.0.78

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

func (*Client) UploadFolderOrFile added in v1.0.107

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

type DownloadFolderParams added in v1.0.540

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

type DownloadStatus added in v1.1.1140

type DownloadStatus struct {
	status.Status
	DownloadedBytes int64
	// contains filtered or unexported fields
}

func (DownloadStatus) Cancel added in v1.1.1140

func (r DownloadStatus) Cancel()

func (DownloadStatus) Destination added in v1.1.1140

func (r DownloadStatus) Destination() string

func (DownloadStatus) File added in v1.1.1140

func (r DownloadStatus) File() files_sdk.File

func (DownloadStatus) Id added in v1.1.1140

func (r DownloadStatus) Id() string

func (DownloadStatus) Job added in v1.1.1140

func (r DownloadStatus) Job() status.Job

func (*DownloadStatus) SetStatus added in v1.1.1140

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

func (DownloadStatus) TransferBytes added in v1.1.1140

func (r DownloadStatus) TransferBytes() int64

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 Reporter added in v1.0.540

type Reporter func(status.Report, error)

type UploadParams added in v1.0.107

type UploadParams struct {
	JobId       string
	Sync        bool
	Source      string
	Destination string
	Reporter    func(status.Report, error)
	*manager.Manager
}

type UploadStatus added in v1.1.1140

type UploadStatus struct {
	status.Status

	Source string

	UploadedBytes int64
	// contains filtered or unexported fields
}

func (UploadStatus) Cancel added in v1.1.1140

func (u UploadStatus) Cancel()

func (UploadStatus) Destination added in v1.1.1140

func (u UploadStatus) Destination() string

func (UploadStatus) File added in v1.1.1140

func (u UploadStatus) File() files_sdk.File

func (UploadStatus) Id added in v1.1.1140

func (u UploadStatus) Id() string

func (UploadStatus) Job added in v1.1.1140

func (u UploadStatus) Job() status.Job

func (*UploadStatus) SetStatus added in v1.1.1140

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

func (UploadStatus) TransferBytes added in v1.1.1140

func (u UploadStatus) TransferBytes() int64

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