listblocks

package
v0.0.0-...-5d73d95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockSizeBytes

func GetBlockSizeBytes(b *block.Meta) uint64

func GetFormattedBlockSize

func GetFormattedBlockSize(b *block.Meta) string

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).

func SortBlocks

func SortBlocks(metas map[ulid.ULID]*block.Meta) []*block.Meta

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL