| 1 | package config |
| 2 | |
| 3 | import "strings" |
| 4 | |
| 5 | // WithAPIKeyForProbe returns a private copy with a draft credential. It neither |
| 6 | // persists the value nor mutates process environment shared by other requests. |
| 7 | func (e ProviderEntry) WithAPIKeyForProbe(value string) ProviderEntry { |
| 8 | e.resolvedAPIKey = strings.TrimSpace(value) |
| 9 | e.resolvedSource = CredentialSource{Kind: CredentialSourceEnvironment, Label: "settings probe"} |
| 10 | return e |
| 11 | } |
| 12 |