Documentation ¶
Index ¶
- Constants
- type PolicyMatches
- type TailscaleAuth
- func (ta *TailscaleAuth) Authenticate(w http.ResponseWriter, r *http.Request) (caddyauth.User, bool, error)
- func (*TailscaleAuth) CaddyModule() caddy.ModuleInfo
- func (ta *TailscaleAuth) Cleanup() error
- func (ta *TailscaleAuth) Provision(ctx caddy.Context) error
- func (ta *TailscaleAuth) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Constants ¶
View Source
const ( PolicyAllow = "allow" PolicyDeny = "deny" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyMatches ¶
type TailscaleAuth ¶
type TailscaleAuth struct { APITailnet string `json:"api_tailnet,omitempty"` ExpectedTailnet string `json:"expected_tailnet,omitempty"` DefaultPolicy string `json:"default_policy,omitempty"` CapabilityName string `json:"capability_name,omitempty"` Policies []PolicyMatches `json:"policies,omitempty"` Groups map[string][]string `json:"groups,omitempty"` TailscaleAPIRefreshInterval time.Duration `json:"tailscale_api_refresh_interval,omitempty"` TailscaleOAuthClientID string `json:"tailscale_oauth_client_id,omitempty"` TailscaleOAuthClientSecret string `json:"tailscale_oauth_client_secret,omitempty"` // contains filtered or unexported fields }
func (*TailscaleAuth) Authenticate ¶
func (ta *TailscaleAuth) Authenticate(w http.ResponseWriter, r *http.Request) (caddyauth.User, bool, error)
func (*TailscaleAuth) CaddyModule ¶
func (*TailscaleAuth) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*TailscaleAuth) Cleanup ¶
func (ta *TailscaleAuth) Cleanup() error
func (*TailscaleAuth) Provision ¶
func (ta *TailscaleAuth) Provision(ctx caddy.Context) error
func (*TailscaleAuth) UnmarshalCaddyfile ¶
func (ta *TailscaleAuth) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.