MCPcopy
hub / github.com/grafana/tempo / New

Function New

tempodb/backend/s3/s3.go:106–109  ·  view source on GitHub ↗

New gets the S3 backend

(cfg *Config)

Source from the content-addressed store, hash-verified

104
105// New gets the S3 backend
106func New(cfg *Config) (backend.RawReader, backend.RawWriter, backend.Compactor, error) {
107 rw, err := internalNew(cfg, true)
108 return rw, rw, rw, err
109}
110
111// NewVersionedReaderWriter creates a client to perform versioned requests. Note that write requests are
112// best-effort since the S3 API does not support precondition headers.

Callers 14

NewFunction · 0.92
TestPollerOwnershipFunction · 0.92
TestTenantDeletionFunction · 0.92
loadBackendFunction · 0.92
initUsageReportMethod · 0.92
initBackendSchedulerMethod · 0.92
TestMarkBlockCompactedFunction · 0.70
TestHedgeFunction · 0.70
TestRetryConfigurationFunction · 0.70
TestNilConfigFunction · 0.70
TestObjectBlockTagsFunction · 0.70
TestObjectWithPrefixFunction · 0.70

Calls 1

internalNewFunction · 0.70

Tested by 10

TestPollerOwnershipFunction · 0.74
TestTenantDeletionFunction · 0.74
TestMarkBlockCompactedFunction · 0.56
TestHedgeFunction · 0.56
TestRetryConfigurationFunction · 0.56
TestNilConfigFunction · 0.56
TestObjectBlockTagsFunction · 0.56
TestObjectWithPrefixFunction · 0.56
TestDeleteFunction · 0.56
TestObjectStorageClassFunction · 0.56