MCPcopy
hub / github.com/perkeep/perkeep / SetupAuthFromString

Method SetupAuthFromString

pkg/client/config.go:359–364  ·  view source on GitHub ↗

SetupAuthFromString configures the clients authentication mode from an explicit auth string.

(a string)

Source from the content-addressed store, hash-verified

357// SetupAuthFromString configures the clients authentication mode from
358// an explicit auth string.
359func (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

Callers 1

newFromConfigFunction · 0.80

Calls 1

FromConfigFunction · 0.92

Tested by

no test coverage detected