acd

package
v0.0.0-...-36298b4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Backend connection to Amazon Cloud Drive

Index

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
}

func MakeClient

func MakeClient(remote config.RemoteObject) *Client

func (*Client) CreateFolder

func (c *Client) CreateFolder(folder string) error

Create a folder at Amazon Cloud Drive

func (*Client) DownloadWithWriter

func (c *Client) DownloadWithWriter(_ string, _ io.WriterAt) error

func (*Client) GetEndpoint

func (c *Client) GetEndpoint() error

Get endpoint urls for Amazon Cloud Drive (both for content and meta data access)

func (*Client) List

func (c *Client) List(_ string, action func(key string)) ([]string, error)

List with a prefix string in Amazon Cloud Drive

func (*Client) UploadWithReader

func (c *Client) UploadWithReader(hash string, r io.Reader, size int64) error

Upload a file to Amazon Cloud Drive

func (*Client) VerifyHash

func (c *Client) VerifyHash(hash string) (bool, error)

Verify the existence of a hash in Amazon Cloud Drive

Jump to

Keyboard shortcuts

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