MCPcopy
hub / github.com/grafana/dskit / CleanName

Method CleanName

ring/partition_ring_model.go:525–527  ·  view source on GitHub ↗

CleanName returns the PartitionState name without the "Partition" prefix.

()

Source from the content-addressed store, hash-verified

523
524// CleanName returns the PartitionState name without the "Partition" prefix.
525func (s PartitionState) CleanName() string {
526 return strings.TrimPrefix(s.String(), "Partition")
527}

Callers 3

changePartitionStateFunction · 0.80
updatePartitionRingMethod · 0.80

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected