s3

package
v0.0.0-...-5d83258 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Storage

func NewS3Storage(useAws bool, endpoint string, usePathStyle bool, ak string, sk string, bucket string, region string) (oss.OSS, error)

Types

type S3Storage

type S3Storage struct {
	// contains filtered or unexported fields
}

func (*S3Storage) Delete

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

func (*S3Storage) Exists

func (s *S3Storage) Exists(key string) (bool, error)

func (*S3Storage) List

func (s *S3Storage) List(prefix string) ([]oss.OSSPath, error)

func (*S3Storage) Load

func (s *S3Storage) Load(key string) ([]byte, error)

func (*S3Storage) Save

func (s *S3Storage) Save(key string, data []byte) error

func (*S3Storage) State

func (s *S3Storage) State(key string) (oss.OSSState, error)

func (*S3Storage) Type

func (s *S3Storage) Type() string

Jump to

Keyboard shortcuts

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