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

Function ShardDeploymentName

internal/fluxshardoperator/config.go:96–98  ·  view source on GitHub ↗

ShardDeploymentName returns the Deployment name for shard index i.

(i int)

Source from the content-addressed store, hash-verified

94
95// ShardDeploymentName returns the Deployment name for shard index i.
96func ShardDeploymentName(i int) string {
97 return shardDeploymentPrefix + ShardName(i)
98}
99
100// ParseShardIndex parses a canonical shard key value ("shard<i>") back into
101// its index. Non-canonical values (including the legacy "tenants" bucket)

Callers 1

BuildShardDeploymentFunction · 0.85

Calls 1

ShardNameFunction · 0.85

Tested by

no test coverage detected