registryutil

package
v0.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFQName

func BuildFQName(separator string, parts ...string) (name string)

BuildFQName returns name parts joined by given separator. Mainly used to append prefix to registry

func BuildRegistryKey

func BuildRegistryKey(prefix string, tags map[string]string) string

BuildRegistryKey creates registry name based on given prefix and tags

func MergeTags

func MergeTags(leftTags map[string]string, rightTags map[string]string) map[string]string

MergeTags merges 2 sets of tags with the tags from tagsRight overriding values from tagsLeft

func StringifyTags

func StringifyTags(tags map[string]string, buffer *bytes.Buffer)

StringifyTags returns string representation of given tags map. It is guaranteed that equal sets of tags will produce equal strings.

func VectorHash

func VectorHash(tags map[string]string, labels []string) (uint64, error)

VectorHash computes hash of metrics vector element

Types

This section is empty.

Jump to

Keyboard shortcuts

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