gaws

package
v0.0.0-...-8cde2e0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 9 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 {
	Storage *StorageService
	// contains filtered or unexported fields
}

func New

func New(bucket *string) (*Client, error)

type StorageService

type StorageService service

func (*StorageService) Download

func (pkg *StorageService) Download(ctx context.Context, key *string) (io.Reader, error)

func (*StorageService) ListObjects

func (pkg *StorageService) ListObjects(ctx context.Context) ([]*domain.FileInfo, error)

func (*StorageService) PreSign

func (pkg *StorageService) PreSign(ctx context.Context, key, contentType *string) (*string, error)

func (*StorageService) Upload

func (pkg *StorageService) Upload(ctx context.Context, key, contentType *string, data io.Reader) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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