MCPcopy Create free account
hub / github.com/perkeep/perkeep / OptionAuthMode

Function OptionAuthMode

pkg/client/client.go:419–421  ·  view source on GitHub ↗

OptionAuthMode returns a Client constructor option that sets the client's authentication mode.

(m auth.AuthMode)

Source from the content-addressed store, hash-verified

417// OptionAuthMode returns a Client constructor option that sets the
418// client's authentication mode.
419func OptionAuthMode(m auth.AuthMode) ClientOption {
420 return optionAuthMode{m}
421}
422
423// noop is for use with syncutil.Onces.
424func noop() error { return nil }

Callers 2

ClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected