amazonS3

package
v1.1.0-rc8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonS3

type AmazonS3 struct {
	Region          string `env:""`
	AccessKeyID     string `env:""`
	SecretAccessKey string `env:""`
	SessionToken    string `env:""`
	BucketName      string `env:""`
	// contains filtered or unexported fields
}

func NewAmazonS3

func NewAmazonS3(regin, accessKeyID, secretAccessKey, sessionToken, bucketName string) *AmazonS3

func (*AmazonS3) Delete

func (s *AmazonS3) Delete(key string) error

func (*AmazonS3) Init

func (s *AmazonS3) Init() error

func (*AmazonS3) IsZero

func (s *AmazonS3) IsZero() bool

func (*AmazonS3) Name

func (s *AmazonS3) Name() string

func (*AmazonS3) Read

func (s *AmazonS3) Read(key string) ([]byte, error)

func (*AmazonS3) Upload

func (s *AmazonS3) Upload(key string, data []byte) error

Jump to

Keyboard shortcuts

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