Documentation ¶
Index ¶
- type Client
- func (c *Client) DownloadWithWriter(hash string, w io.WriterAt) error
- func (c *Client) GetPresignedUrl(key string) (string, error)
- func (c *Client) List(prefix string, action func(key string)) ([]string, error)
- func (c *Client) UploadWithReader(hash string, r io.Reader, size int64) error
- func (c *Client) VerifyHash(hash string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Bucket string Region string AccessKey string SecretKey string Endpoint string }
func MakeClient ¶
func MakeClient(remote config.RemoteObject) *Client
func (*Client) DownloadWithWriter ¶
func (*Client) UploadWithReader ¶
Upload a file to S3
Click to show internal directories.
Click to hide internal directories.