MCPcopy Create free account
hub / github.com/cozystack/cozystack / ShardName

Function ShardName

internal/fluxshardoperator/config.go:91–93  ·  view source on GitHub ↗

ShardName returns the canonical shard key value for index i (shard0..).

(i int)

Source from the content-addressed store, hash-verified

89
90// ShardName returns the canonical shard key value for index i (shard0..).
91func ShardName(i int) string {
92 return shardPrefix + strconv.Itoa(i)
93}
94
95// ShardDeploymentName returns the Deployment name for shard index i.
96func ShardDeploymentName(i int) string {

Callers 9

ComputePlacementFunction · 0.85
rebalanceFunction · 0.85
pruneExtraShardsMethod · 0.85
BuildShardDeploymentFunction · 0.85
majorityShardFunction · 0.85
observeShardsMethod · 0.85
reportMethod · 0.85
ShardDeploymentNameFunction · 0.85
ParseShardIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected