s3set

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package s3set provides a set store backed by AWS S3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBinaryStore

func NewBinaryStore(
	client *s3.Client,
	bucket string,
	options ...Option,
) set.BinaryStore

NewBinaryStore returns a new set.BinaryStore that uses the given S3 client to store set members in the given bucket.

Types

type Option

type Option func(*store)

Option is a functional option that changes the behavior of NewBinaryStore.

func WithRequestHook

func WithRequestHook(fn func(any) []func(*s3.Options)) Option

WithRequestHook is an Option that configures fn as a pre-request hook.

Before each S3 API request, fn is passed a pointer to the input struct, e.g. s3.HeadObjectInput, which it may modify in-place. It may be called with any S3 request type. The types of requests used may change in any version without notice.

Any functions returned by fn will be applied to the request's options before the request is sent.

Jump to

Keyboard shortcuts

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