s3

package
v0.0.0-...-804b954 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package s3 adapts an S3-compatible object store to temporalpayload.BlobStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Put(context.Context, string, string, []byte) error
	Get(context.Context, string, string, int) ([]byte, error)
}

Client is the narrow S3-compatible data-plane interface used by Store.

It intentionally contains neither credentials nor endpoint configuration; applications configure those at their composition root and pass the resulting MinIO client to New.

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is an immutable temporalpayload.BlobStore backed by one explicit S3 bucket.

func New

func New(client *minio.Client, bucket string) (*Store, error)

New adapts a configured MinIO S3-compatible client and one declared bucket.

func NewWithClient

func NewWithClient(client Client, bucket string) (*Store, error)

NewWithClient creates a Store from a narrow S3-compatible client seam.

func (*Store) Get

func (store *Store) Get(ctx context.Context, key temporalpayload.BlobKey, maxBytes int) ([]byte, error)

Get reads no more than maxBytes from key.

func (*Store) Put

func (store *Store) Put(ctx context.Context, key temporalpayload.BlobKey, value []byte) error

Put stores one immutable content-addressed value under key.

Jump to

Keyboard shortcuts

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