aws_s3

package module
v0.0.0-...-cee9364 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultClientName = "default-s3-client"

Variables

View Source
var StdLogger stdLogger

Functions

func InitService

func InitService(clientID, sk, token, region, point string) error

func IsNotFoundErr

func IsNotFoundErr(err error) bool

Types

type Service

type Service struct {
	Client   *s3.S3
	EndPoint string
	Region   string
}

func GetS3Client

func GetS3Client(clientName string) *Service

func (*Service) GetObj

func (s *Service) GetObj(key, bucket string) ([]byte, error)

func (*Service) PutObj

func (s *Service) PutObj(key, bucket string, data []byte) error

Jump to

Keyboard shortcuts

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