s3

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg aws.Config, bucket string) storage.StorageAction

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) DeletePatientFiles

func (c *Client) DeletePatientFiles(ctx context.Context, pk_key string) error

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, r io.Reader, length int, opts storage.Options) error

Upload sends "r" data to remote AWS "bucket" with key filename "key"

func (*Client) UploadFile

func (c *Client) UploadFile(ctx context.Context, fp string, opts storage.Options) error

type Options

type Options struct {
	Bucket string
	Key    string
}

Jump to

Keyboard shortcuts

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