package
1.19.0
Repository: https://github.com/cortexproject/cortex.git
Documentation: pkg.go.dev

# Functions

BlockDeletionMarkFilepath returns the path, relative to the tenant's bucket location, of a block deletion mark in the bucket markers location.
No description provided by the author
No description provided by the author
BucketWithGlobalMarkers wraps the input bucket into a bucket which also keeps track of markers in the global markers location.
DeleteIndex deletes the bucket index from the storage.
DeleteIndexSyncStatus deletes the bucket index sync status file from the storage.
IsBlockDeletionMarkFilename returns whether the input filename matches the expected pattern of block deletion markers stored in the markers location.
IsBlockNoCompactMarkFilename returns whether the input filename matches the expected pattern of block no compact markers stored in the markers location.
MigrateBlockDeletionMarksToGlobalLocation list all tenant's blocks and, for each of them, look for a deletion mark in the block location.
No description provided by the author
NewLoader makes a new Loader.
No description provided by the author
NoCompactMarkFilenameMarkFilepath returns the path, relative to the tenant's bucket location, of a block no compact mark in the bucket markers location.
ReadIndex reads, parses and returns a bucket index from the bucket.
ReadSyncStatus retrieves the SyncStatus from the sync status file If the file is not found, it returns `Unknown`.
WriteIndex uploads the provided index to the storage.
WriteSyncStatus upload the sync status file with the corresponding SyncStatus This file is not encrypted using the CMK configuration.

# Constants

Possible SyncStatus.
Possible SyncStatus.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible SyncStatus.
SegmentsFormat1Based6Digits defined segments numbered with 6 digits numbers in a sequence starting from number 1 eg.
No description provided by the author
SyncStatusFile is the known json filename for representing the most recent bucket index sync.
SyncStatusFileVersion is the current supported version of bucket-index-sync-status.json file.
Possible SyncStatus.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Block holds the information about a block in the index.
BlockDeletionMark holds the information about a block's deletion mark in the index.
No description provided by the author
Index contains all known blocks and markers of a tenant.
Loader is responsible to lazy load bucket indexes and, once loaded for the first time, keep them updated in background.
No description provided by the author
No description provided by the author
Updater is responsible to generate an update in-memory bucket index.

# Type aliases

BlockDeletionMarks holds a set of block deletion marks in the index.
Blocks holds a set of blocks in the index.
SyncStatus is an enum for the possibles sync status.