MCPcopy
hub / github.com/perkeep/perkeep / FromEnv

Function FromEnv

pkg/auth/auth.go:82–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func FromEnv() (AuthMode, error) {
83 return FromConfig(os.Getenv("CAMLI_AUTH"))
84}
85
86// An AuthConfigParser parses a registered authentication type's option
87// and returns an AuthMode.

Callers 1

SetupAuthMethod · 0.92

Calls 1

FromConfigFunction · 0.85

Tested by

no test coverage detected