Documentation ¶
Index ¶
- func CleanRemoteObjectPrefix(raw string) string
- type Client
- func (c *Client) DownloadDir(ctx context.Context, where generated.DataStorageWhereUniqueInput, ...) error
- func (c *Client) DownloadFile(ctx context.Context, where generated.DataStorageWhereUniqueInput, ...) error
- func (c *Client) List(ctx context.Context, whereAccount generated.AccountWhereUniqueInput, ...) (dataStorages []generated.DataStorageFragment, err error)
- func (c *Client) NewListObjectsPager(ctx context.Context, where generated.DataStorageWhereUniqueInput, ...) (pager implementable.ListObjectsPager, err error)
- func (c *Client) UploadDir(ctx context.Context, where generated.DataStorageWhereUniqueInput, ...) error
- func (c *Client) UploadFile(ctx context.Context, where generated.DataStorageWhereUniqueInput, ...) error
- type DownloadDirInput
- type DownloadDirOptions
- type DownloadFileInput
- type ListObjectsInput
- type Options
- type UploadDirInput
- type UploadDirOptions
- type UploadFileInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanRemoteObjectPrefix ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewFromConfig ¶
func (*Client) DownloadDir ¶
func (c *Client) DownloadDir( ctx context.Context, where generated.DataStorageWhereUniqueInput, data DownloadDirInput, fileCountChan chan<- int, resultChan chan<- interface{}, options *DownloadDirOptions) error
func (*Client) DownloadFile ¶
func (c *Client) DownloadFile(ctx context.Context, where generated.DataStorageWhereUniqueInput, data DownloadFileInput) error
func (*Client) List ¶
func (c *Client) List(ctx context.Context, whereAccount generated.AccountWhereUniqueInput, whereDataStorage *generated.DataStorageWhereInput) (dataStorages []generated.DataStorageFragment, err error)
func (*Client) NewListObjectsPager ¶ added in v0.0.6
func (c *Client) NewListObjectsPager(ctx context.Context, where generated.DataStorageWhereUniqueInput, input *ListObjectsInput) (pager implementable.ListObjectsPager, err error)
func (*Client) UploadDir ¶
func (c *Client) UploadDir( ctx context.Context, where generated.DataStorageWhereUniqueInput, data UploadDirInput, fileCountChan chan<- int, resultChan chan<- interface{}, options *UploadDirOptions) error
UploadDir uploads a local directory to a remote directory in the data storage container. This function is meant to be used as a goroutine.
func (*Client) UploadFile ¶
func (c *Client) UploadFile(ctx context.Context, where generated.DataStorageWhereUniqueInput, data UploadFileInput) error
type DownloadDirInput ¶
type DownloadDirOptions ¶
type DownloadDirOptions struct { // Concurrency is the number of workers to execute. // Default is number of CPUs available. Concurrency *int }
type DownloadFileInput ¶
type ListObjectsInput ¶ added in v0.0.6
type ListObjectsInput = implementable.ListObjectsInput
type UploadDirInput ¶
type UploadDirOptions ¶
type UploadDirOptions struct { // Concurrency is the number of workers to execute. // Default is number of CPUs available. Concurrency *int }
type UploadFileInput ¶
Click to show internal directories.
Click to hide internal directories.