SetupAuthFromString configures the clients authentication mode from an explicit auth string.
(a string)
| 357 | // SetupAuthFromString configures the clients authentication mode from |
| 358 | // an explicit auth string. |
| 359 | func (c *Client) SetupAuthFromString(a string) error { |
| 360 | // TODO(mpl): review the one using that (pkg/blobserver/remote/remote.go) |
| 361 | var err error |
| 362 | c.authMode, err = auth.FromConfig(a) |
| 363 | return err |
| 364 | } |
| 365 | |
| 366 | // SecretRingFile returns the filename to the user's GPG secret ring. |
| 367 | // The value comes from either the --secret-keyring flag, the |
no test coverage detected