MCPcopy
hub / github.com/Infisical/agent-vault / String

Method String

internal/ratelimit/ratelimit.go:68–73  ·  view source on GitHub ↗

String returns the stable env-suffix form of a Tier, used for AGENT_VAULT_RATELIMIT_ _ variable names.

()

Source from the content-addressed store, hash-verified

66// String returns the stable env-suffix form of a Tier, used for
67// AGENT_VAULT_RATELIMIT_<TIER>_<KNOB> variable names.
68func (t Tier) String() string {
69 if t < 0 || int(t) >= len(tierNames) {
70 return fmt.Sprintf("TIER_%d", int(t))
71 }
72 return tierNames[t]
73}
74
75// TierByName returns the Tier matching name, or (0, false) if name is
76// not recognized. Case-sensitive — callers that accept user input

Callers 15

BuildProxyEnvFunction · 0.45
listenEphemeralFunction · 0.45
DetectAuthMethodFunction · 0.45
tickMethod · 0.45
refreshMethod · 0.45
recordFailureMethod · 0.45
EnumerateMethod · 0.45
ensureLeaseMethod · 0.45
persistLeaseMethod · 0.45

Calls

no outgoing calls