s3

package
v0.0.0-...-af5322b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Delimiter = "/"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Bucket          string `fig:"bucket,required"`
	Region          string `fig:"region,required"`
	AccessKey       string `fig:"access_key,required"`
	SecretAccessKey string `fig:"secret_access_key,required"`
}

type Connector

type Connector interface {
	GetObject(ctx context.Context, key string) (*s3.GetObjectOutput, error)
	ListObjects(ctx context.Context, limit int64, startAfter string) (*s3.ListObjectsV2Output, error)
}

func New

func New(cfg Config) (Connector, error)

Jump to

Keyboard shortcuts

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