MCPcopy
hub / github.com/perkeep/perkeep / tailscaleAuth

Struct tailscaleAuth

pkg/auth/tailscaleauth.go:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41type tailscaleAuth struct {
42 any bool // whether all access is permitted to anybody in the tailnet
43
44 lc *tailscale.LocalClient
45 anyForUser string // if non-empty, the user for whom any access is permitted
46}
47
48func (ta *tailscaleAuth) AllowedAccess(req *http.Request) Operation {
49 // AddAuthHeader inserts in req the credentials needed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected