amazonS3

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 11 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 {
	Endpoint         string         `env:""`
	Region           string         `env:""`
	AccessKeyID      string         `env:""`
	SecretAccessKey  types.Password `env:""`
	SessionToken     string         `env:""`
	BucketName       string         `env:""`
	UrlExpire        types.Duration `env:""`
	S3ForcePathStyle bool           `env:""`
	// contains filtered or unexported fields
}

func (*AmazonS3) Delete

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

func (*AmazonS3) DownloadUrl added in v1.2.3

func (s *AmazonS3) DownloadUrl(key string) (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) SetDefault added in v1.2.3

func (s *AmazonS3) SetDefault()

func (*AmazonS3) StatObject added in v1.4.6

func (s *AmazonS3) StatObject(key string) (*filesystem.ObjectMeta, 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