s3cache

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type S3Cache

type S3Cache struct {
	Service             s3iface.S3API
	Bucket              string
	Prefix              string
	LoggingBucket       string
	LoggingBucketPrefix string
	HashingToken        string
}

func New

func New(s3cache *common.S3Cache) *S3Cache

New creates a new S3 session and adds some config data

func (*S3Cache) GetMetadata

func (s *S3Cache) GetMetadata(ctx context.Context, key string) ([]byte, error)

func (*S3Cache) HashedKey

func (s *S3Cache) HashedKey(key string) string

func (*S3Cache) Save

func (s *S3Cache) Save(ctx context.Context, key string, obj []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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