MCPcopy
hub / github.com/perkeep/perkeep / AddMode

Function AddMode

pkg/auth/auth.go:208–210  ·  view source on GitHub ↗

AddMode adds the given authentication mode to the list of modes that future requests can authenticate against.

(am AuthMode)

Source from the content-addressed store, hash-verified

206// AddMode adds the given authentication mode to the list of modes that future
207// requests can authenticate against.
208func AddMode(am AuthMode) {
209 modes = append(modes, am)
210}
211
212type tokenAuth struct {
213 token string

Callers 2

setupHandlerMethod · 0.92
TestMultiModeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMultiModeFunction · 0.68