package
0.37.2
Repository: https://github.com/thanos-io/thanos.git
Documentation: pkg.go.dev

# Functions

DeepCopy copies labels and each label's string to separate bytes.
ExtendSortedLabels extend given labels by extend in labels format.
HashWithPrefix returns a hash for the given prefix and labels.
ReAllocAndInternZLabelsStrings re-allocates all underlying bytes for string, detaching it from bigger memory pool.
ValidateLabels validates label names and values (checks for empty names and values, out of order labels and duplicate label names) Returns appropriate error if validation fails on a label.
ZLabelSetsFromPromLabels converts []labels.labels to []labelpb.ZLabelSet.
ZLabelSetsToPromLabelSets converts slice of labelpb.ZLabelSet to slice of Prometheus labels.
ZLabelsFromPromLabels converts Prometheus labels to slice of labelpb.ZLabel in type unsafe manner.
ZLabelsToPromLabels convert slice of labelpb.ZLabel to Prometheus labels in type unsafe manner.

# Variables

# Structs

# Type aliases

ZLabel is a Label (also easily transformable to Prometheus labels.Labels) that can be unmarshalled from protobuf reusing the same memory address for string bytes.
ZLabelSets is a sortable list of ZLabelSet.