s3

package
v0.0.0-...-252c7c2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const S3_ACL = "private"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AccessKey       string
	SecretAccessKey string
	Region          string
	Bucket          string
	Endpoint        string
	FileName        string
}

func NewClient

func NewClient(accessKey, secretKey, region, bucket, endpoint, fileName string) *Client

func (*Client) CopyObject

func (s *Client) CopyObject(fileName string) error

func (*Client) GetObject

func (s *Client) GetObject(filename string) *s3.GetObjectOutput

func (*Client) HeadObject

func (s *Client) HeadObject() *s3.HeadObjectOutput

func (*Client) Initialize

func (s *Client) Initialize() *s3.S3

func (*Client) PutObject

func (s *Client) PutObject(rs io.ReadSeeker, fileName string) error

Jump to

Keyboard shortcuts

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