cloudstorage

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

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 New

func New(ctx context.Context, bucket string) *Client

func (*Client) Close added in v0.0.24

func (c *Client) Close()

func (*Client) Download

func (c *Client) Download(ctx context.Context, filename string) ([]byte, error)

func (*Client) SignedURL added in v0.0.27

func (c *Client) SignedURL(ctx context.Context, filename string, expires time.Time) (string, error)

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, opts *UploadOptions) error

type UploadOptions added in v0.0.29

type UploadOptions struct {
	Filename     string
	Data         io.Reader
	CacheControl string
}

Jump to

Keyboard shortcuts

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