gS3

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session added in v1.1.0

type Session struct {
	*session.Session
}

func NewS3Session

func NewS3Session(endpoint string, region string, accessKeyId string, secretAccessKey string, stsToken string, pathStyle bool, allowInsecure bool) (sess *Session)

func (*Session) CreateBucket added in v1.1.0

func (s *Session) CreateBucket(bucket string) (result *s3.CreateBucketOutput, err error)

func (*Session) DeleteBucket added in v1.1.0

func (s *Session) DeleteBucket(bucket string) (result *s3.DeleteBucketOutput, err error)

func (*Session) DeleteObject added in v1.1.0

func (s *Session) DeleteObject(bucket string, filename string) (result *s3.DeleteObjectOutput, err error)

func (*Session) DownloadObject added in v1.1.0

func (s *Session) DownloadObject(bucket string, filename string, downloadFilename string) (n int64, err error)

func (*Session) GetObject added in v1.1.0

func (s *Session) GetObject(bucket string, filename string) (result *s3.GetObjectOutput, err error)

func (*Session) HeadBucket added in v1.1.0

func (s *Session) HeadBucket(bucket string) (result *s3.HeadBucketOutput, err error)

func (*Session) HeadObject added in v1.1.0

func (s *Session) HeadObject(bucket string, filename string) (result *s3.HeadObjectOutput, err error)

func (*Session) ListBuckets added in v1.1.0

func (s *Session) ListBuckets() (result *s3.ListBucketsOutput, err error)

func (*Session) ListObjectVersions added in v1.1.0

func (s *Session) ListObjectVersions(bucket string, filename string) (result *s3.ListObjectVersionsOutput, err error)

func (*Session) ListObjectsV2 added in v1.1.0

func (s *Session) ListObjectsV2(bucket string) (result *s3.ListObjectsV2Output, err error)

func (*Session) NewS3Client added in v1.1.0

func (s *Session) NewS3Client() (client *s3.S3)

func (*Session) PutObject added in v1.1.0

func (s *Session) PutObject(bucket string, filename string, data []byte) (result *s3.PutObjectOutput, err error)

func (*Session) UploadObject added in v1.1.0

func (s *Session) UploadObject(bucket string, filename string, data []byte) (result *s3manager.UploadOutput, err error)

Jump to

Keyboard shortcuts

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