s3

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: MIT Imports: 6 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
}

Client represents the wrapper of S3 API Client

func New

func New(api s3iface.S3API) *Client

New creates new Client

func (*Client) GetPresignedURL

func (c *Client) GetPresignedURL(bucket, key string, duration int64) (string, error)

GetPresignedURL returns S3 object pre-signed URL

func (*Client) UploadToS3

func (c *Client) UploadToS3(bucket, key string, reader io.ReadSeeker) error

UploadToS3 uploads local file to the specified S3 location

Jump to

Keyboard shortcuts

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