MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / newBackend

Function newBackend

server/s3/backend.go:43–47  ·  view source on GitHub ↗

newBackend creates a new SimpleBucketBackend.

()

Source from the content-addressed store, hash-verified

41
42// newBackend creates a new SimpleBucketBackend.
43func newBackend() gofakes3.Backend {
44 return &s3Backend{
45 meta: new(sync.Map),
46 }
47}
48
49// ListBuckets always returns the default bucket.
50func (b *s3Backend) ListBuckets(ctx context.Context) ([]gofakes3.BucketInfo, error) {

Callers 1

NewServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected