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

Method readAllWithModTime

tempodb/backend/azure/compactor.go:116–127  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

114}
115
116func (rw *Azure) readAllWithModTime(ctx context.Context, name string) ([]byte, time.Time, error) {
117 bytes, _, err := rw.readAll(ctx, name)
118 if err != nil {
119 return nil, time.Time{}, err
120 }
121
122 att, err := rw.getAttributes(ctx, name)
123 if err != nil {
124 return nil, time.Time{}, err
125 }
126 return bytes, att.LastModified, nil
127}
128
129// getAttributes returns information about the specified blob using its name.
130func (rw *Azure) getAttributes(ctx context.Context, name string) (BlobAttributes, error) {

Callers 1

CompactedBlockMetaMethod · 0.95

Calls 2

readAllMethod · 0.95
getAttributesMethod · 0.95

Tested by

no test coverage detected