s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package s3 adapts AWS S3 to the provider-neutral storage contracts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client Client, bucket string) storage.Reader

New returns storage backed by one S3 bucket without accessing it.

Types

type Client

type Client interface {
	// HeadObject returns object metadata.
	HeadObject(context.Context, *awss3.HeadObjectInput, ...func(*awss3.Options)) (*awss3.HeadObjectOutput, error)
	// GetObject opens an object's contents.
	GetObject(context.Context, *awss3.GetObjectInput, ...func(*awss3.Options)) (*awss3.GetObjectOutput, error)
}

Client is the subset of the AWS SDK v2 S3 client used by the reader.

Jump to

Keyboard shortcuts

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