String returns the stable env-suffix form of a Tier, used for AGENT_VAULT_RATELIMIT_ _ variable names.
()
| 66 | // String returns the stable env-suffix form of a Tier, used for |
| 67 | // AGENT_VAULT_RATELIMIT_<TIER>_<KNOB> variable names. |
| 68 | func (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 |
no outgoing calls