MCPcopy
hub / github.com/benbjohnson/litestream / S3API

Interface S3API

s3/leaser.go:36–40  ·  view source on GitHub ↗

S3API is the interface for S3 operations needed by Leaser.

Source from the content-addressed store, hash-verified

34
35// S3API is the interface for S3 operations needed by Leaser.
36type S3API interface {
37 GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
38 PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
39 DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
40}
41
42type Leaser struct {
43 s3 S3API

Callers 7

OpenLTXFileMethod · 0.80
readLeaseMethod · 0.80
OpenLTXFileMethod · 0.80
OpenSnapshotV3Method · 0.80
OpenWALSegmentV3Method · 0.80
writeLeaseMethod · 0.80
ReleaseLeaseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected