Documentation ¶
Index ¶
- func GetBlockSizeBytes(b *block.Meta) uint64
- func GetFormattedBlockSize(b *block.Meta) string
- func LoadMetaFilesAndMarkers(ctx context.Context, bkt objstore.BucketReader, user string, showDeleted bool, ...) (metas map[ulid.ULID]*block.Meta, ...)
- func SortBlocks(metas map[ulid.ULID]*block.Meta) []*block.Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockSizeBytes ¶
func GetFormattedBlockSize ¶
func LoadMetaFilesAndMarkers ¶
func LoadMetaFilesAndMarkers(ctx context.Context, bkt objstore.BucketReader, user string, showDeleted bool, ulidMinTime time.Time) (metas map[ulid.ULID]*block.Meta, deletionDetails map[ulid.ULID]block.DeletionMark, noCompactDetails map[ulid.ULID]block.NoCompactMark, _ error)
LoadMetaFilesAndMarkers reads the bucket and loads the meta files for the provided user. No-compact marker files are also read and returned all the time. If showDeleted is true, then deletion marker files are also read and returned. If ulidMinTime is non-zero, then only blocks with ULID time higher than that are read, this is useful to filter the results for users with high amount of blocks without reading the metas (but it can be inexact since ULID time can differ from block min/max times range).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.