WithKeyringServiceName sets a custom keyring service name for testing purposes. This allows tests to use isolated keyring storage while still exercising the genuine storage backend selection logic in ensureTokenBackend().
(serviceName string)
| 904 | // This allows tests to use isolated keyring storage while still exercising the |
| 905 | // genuine storage backend selection logic in ensureTokenBackend(). |
| 906 | func (r *RootCmd) WithKeyringServiceName(serviceName string) { |
| 907 | r.keyringServiceName = serviceName |
| 908 | } |
| 909 | |
| 910 | // UseKeyringWithGlobalConfig enables the use of the keyring storage backend |
| 911 | // when the --global-config directory is set. This is only intended as an override |
no outgoing calls