s3

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	// GCS Blob Storage client
	Client *storage.Client
	Config config.S3Config
}

Implements Storage interface using AWS S3

func New

func New(config config.S3Config) *S3

New creates a new AWS S3 client

func (*S3) Delete

func (a *S3) Delete(key string) error

func (*S3) Get

func (a *S3) Get(key string) ([]byte, error)

func (*S3) List

func (a *S3) List(prefix string) ([]string, error)

func (*S3) Set

func (a *S3) Set(key string, data []byte, ttl int) error

Jump to

Keyboard shortcuts

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