MCPcopy
hub / github.com/perkeep/perkeep / checkValidAuth

Method checkValidAuth

pkg/serverinit/serverinit.go:590–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588}
589
590func (c *Config) checkValidAuth() error {
591 authConfig := c.jconf.OptionalString("auth", "")
592 mode, err := auth.FromConfig(authConfig)
593 if err == nil {
594 auth.SetMode(mode)
595 }
596 return err
597}
598
599func (c *Config) SetReindex(v bool) {
600 prefixes, _ := c.jconf["prefixes"].(map[string]interface{})

Callers 1

InstallHandlersMethod · 0.80

Calls 2

FromConfigFunction · 0.92
SetModeFunction · 0.92

Tested by

no test coverage detected