Versions in this module Expand all Collapse all v0 v0.1.1 Oct 21, 2026 v0.1.0 Oct 21, 2026 Changes in this version + const BasePath + func Handler(si ServerInterface) http.Handler + func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler + func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler + func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler + type APIToken struct + Admin string + CreatedAt time.Time + Description string + ExpiresAt *time.Time + Id string + LastUsed *time.Time + type APITokenCreate struct + Description *string + TtlSeconds int + type APITokenCreated struct + Secret string + Token APIToken + type AuditEntry struct + Action string + Actor string + Detail string + Id int64 + Target string + Time time.Time + type AuthKey struct + CreatedAt time.Time + Description string + ExpiresAt *time.Time + Id string + Reusable bool + Revoked bool + Tags []string + UsedCount int + Valid bool + type AuthKeyCreate struct + Description *string + Reusable bool + Tags *[]string + TtlSeconds int + type AuthKeyCreated struct + Key AuthKey + Secret string + type AuthMethods struct + Oidc bool + OidcName *string + Password bool + type ChangePasswordJSONRequestBody = PasswordChange + type CheckPolicyJSONRequestBody = PolicyCheck + type CompleteSetupJSONRequestBody = SetupRequest + type CreateAPITokenJSONRequestBody = APITokenCreate + type CreateAuthKeyJSONRequestBody = AuthKeyCreate + type DNSConfig struct + Domain string + MagicDNS bool + Split []SplitDNS + type Error struct + Error string + type InvalidParamFormatError struct + Err error + ParamName string + func (e *InvalidParamFormatError) Error() string + func (e *InvalidParamFormatError) Unwrap() error + type ListAuditParams struct + Before *int64 + Limit *int + type LoginJSONRequestBody = LoginRequest + type LoginRequest struct + Password string + Username string + type Me struct + HasPassword bool + Username string + type MiddlewareFunc func(http.Handler) http.Handler + type Node struct + Addresses []string + AdvertisedRoutes []string + ApprovedRoutes []string + CreatedAt time.Time + Endpoints []string + ExpiresAt *time.Time + Hostname string + Id string + KeyExpiryDisabled bool + LastSeen time.Time + Name string + Online bool + Os string + PublicKey string + Routes []string + Tags []string + type NodeUpdate struct + ApprovedRoutes *[]string + ExpireNow *bool + KeyExpiryDisabled *bool + Name *string + Tags *[]string + type OIDCConfig struct + Allowed []string + ClientID string + ClientSecret string + Issuer string + Name string + RedirectURL string + type OidcCallbackParams struct + Code *string + Error *string + State *string + type Options struct + OIDC *OIDCConfig + SetupCode string + type PasswordChange struct + CurrentPassword string + NewPassword string + type Policy struct + Policy string + type PolicyCheck struct + Dst string + Policy *string + Port int + Proto *PolicyCheckProto + Src string + type PolicyCheckProto string + const Icmp + const Tcp + const Udp + func (e PolicyCheckProto) Valid() bool + type PolicyCheckResult struct + Allowed bool + DstAddr string + Reason string + Rule *int + SrcAddr string + type PolicyError struct + Details []string + Error string + type RequiredHeaderError struct + Err error + ParamName string + func (e *RequiredHeaderError) Error() string + func (e *RequiredHeaderError) Unwrap() error + type RequiredParamError struct + ParamName string + func (e *RequiredParamError) Error() string + type ServeMux interface + HandleFunc func(pattern string, handler func(http.ResponseWriter, *http.Request)) + type Server struct + func New(ctx context.Context, st *store.Store, ctl *control.Service, opts Options, ...) (*Server, error) + func (s *Server) ChangePassword(w http.ResponseWriter, r *http.Request) + func (s *Server) CheckPolicy(w http.ResponseWriter, r *http.Request) + func (s *Server) CompleteSetup(w http.ResponseWriter, r *http.Request) + func (s *Server) CreateAPIToken(w http.ResponseWriter, r *http.Request) + func (s *Server) CreateAuthKey(w http.ResponseWriter, r *http.Request) + func (s *Server) DeleteAPIToken(w http.ResponseWriter, r *http.Request, id string) + func (s *Server) DeleteNode(w http.ResponseWriter, r *http.Request, id string) + func (s *Server) GetAuthMethods(w http.ResponseWriter, _ *http.Request) + func (s *Server) GetDNS(w http.ResponseWriter, r *http.Request) + func (s *Server) GetMe(w http.ResponseWriter, r *http.Request) + func (s *Server) GetNode(w http.ResponseWriter, r *http.Request, id string) + func (s *Server) GetPolicy(w http.ResponseWriter, r *http.Request) + func (s *Server) GetSettings(w http.ResponseWriter, r *http.Request) + func (s *Server) GetSetup(w http.ResponseWriter, _ *http.Request) + func (s *Server) GetStats(w http.ResponseWriter, r *http.Request) + func (s *Server) GetTopology(w http.ResponseWriter, _ *http.Request) + func (s *Server) GetVersion(w http.ResponseWriter, _ *http.Request) + func (s *Server) Handler() http.Handler + func (s *Server) ListAPITokens(w http.ResponseWriter, r *http.Request) + func (s *Server) ListAudit(w http.ResponseWriter, r *http.Request, params ListAuditParams) + func (s *Server) ListAuthKeys(w http.ResponseWriter, r *http.Request) + func (s *Server) ListNodes(w http.ResponseWriter, r *http.Request) + func (s *Server) Login(w http.ResponseWriter, r *http.Request) + func (s *Server) Logout(w http.ResponseWriter, r *http.Request) + func (s *Server) OidcCallback(w http.ResponseWriter, r *http.Request, params OidcCallbackParams) + func (s *Server) OidcLogin(w http.ResponseWriter, r *http.Request) + func (s *Server) RevokeAuthKey(w http.ResponseWriter, r *http.Request, id string) + func (s *Server) SetDNS(w http.ResponseWriter, r *http.Request) + func (s *Server) SetPolicy(w http.ResponseWriter, r *http.Request) + func (s *Server) StreamEvents(w http.ResponseWriter, r *http.Request) + func (s *Server) UpdateNode(w http.ResponseWriter, r *http.Request, id string) + func (s *Server) UpdateSettings(w http.ResponseWriter, r *http.Request) + type ServerInterface interface + ChangePassword func(w http.ResponseWriter, r *http.Request) + CheckPolicy func(w http.ResponseWriter, r *http.Request) + CompleteSetup func(w http.ResponseWriter, r *http.Request) + CreateAPIToken func(w http.ResponseWriter, r *http.Request) + CreateAuthKey func(w http.ResponseWriter, r *http.Request) + DeleteAPIToken func(w http.ResponseWriter, r *http.Request, id string) + DeleteNode func(w http.ResponseWriter, r *http.Request, id string) + GetAuthMethods func(w http.ResponseWriter, r *http.Request) + GetDNS func(w http.ResponseWriter, r *http.Request) + GetMe func(w http.ResponseWriter, r *http.Request) + GetNode func(w http.ResponseWriter, r *http.Request, id string) + GetPolicy func(w http.ResponseWriter, r *http.Request) + GetSettings func(w http.ResponseWriter, r *http.Request) + GetSetup func(w http.ResponseWriter, r *http.Request) + GetStats func(w http.ResponseWriter, r *http.Request) + GetTopology func(w http.ResponseWriter, r *http.Request) + GetVersion func(w http.ResponseWriter, r *http.Request) + ListAPITokens func(w http.ResponseWriter, r *http.Request) + ListAudit func(w http.ResponseWriter, r *http.Request, params ListAuditParams) + ListAuthKeys func(w http.ResponseWriter, r *http.Request) + ListNodes func(w http.ResponseWriter, r *http.Request) + Login func(w http.ResponseWriter, r *http.Request) + Logout func(w http.ResponseWriter, r *http.Request) + OidcCallback func(w http.ResponseWriter, r *http.Request, params OidcCallbackParams) + OidcLogin func(w http.ResponseWriter, r *http.Request) + RevokeAuthKey func(w http.ResponseWriter, r *http.Request, id string) + SetDNS func(w http.ResponseWriter, r *http.Request) + SetPolicy func(w http.ResponseWriter, r *http.Request) + StreamEvents func(w http.ResponseWriter, r *http.Request) + UpdateNode func(w http.ResponseWriter, r *http.Request, id string) + UpdateSettings func(w http.ResponseWriter, r *http.Request) + type ServerInterfaceWrapper struct + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) CheckPolicy(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) CompleteSetup(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) CreateAPIToken(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) CreateAuthKey(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) DeleteAPIToken(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) DeleteNode(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetAuthMethods(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetDNS(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetMe(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetNode(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetPolicy(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetSettings(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetSetup(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetStats(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetTopology(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ListAPITokens(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ListAudit(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ListAuthKeys(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ListNodes(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) OidcCallback(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) OidcLogin(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) RevokeAuthKey(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) SetDNS(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) SetPolicy(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) StreamEvents(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) UpdateNode(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) UpdateSettings(w http.ResponseWriter, r *http.Request) + type SetDNSJSONRequestBody = DNSConfig + type SetPolicyJSONRequestBody = Policy + type Settings struct + KeyExpiryDays int + NetworkPrefix string + PublicURL string + RelayEnabled bool + StunPort int + Version string + type SettingsUpdate struct + KeyExpiryDays *int + PublicURL *string + type SetupRequest struct + Password string + PublicURL *string + SetupCode string + Username string + type SetupStatus struct + NeedsSetup bool + type SplitDNS struct + Domain string + Resolvers []string + type Stats struct + Nodes int + Online int + type StdHTTPServerOptions struct + BaseRouter ServeMux + BaseURL string + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Middlewares []MiddlewareFunc + type TooManyValuesForParamError struct + Count int + ParamName string + func (e *TooManyValuesForParamError) Error() string + type Topology struct + Links []TopologyLink + type TopologyLink struct + From string + LatencyMs *float64 + Path TopologyLinkPath + To string + type TopologyLinkPath string + const Direct + const Relay + func (e TopologyLinkPath) Valid() bool + type UnescapedCookieParamError struct + Err error + ParamName string + func (e *UnescapedCookieParamError) Error() string + func (e *UnescapedCookieParamError) Unwrap() error + type UnmarshalingParamError struct + Err error + ParamName string + func (e *UnmarshalingParamError) Error() string + func (e *UnmarshalingParamError) Unwrap() error + type UpdateNodeJSONRequestBody = NodeUpdate + type UpdateSettingsJSONRequestBody = SettingsUpdate + type Version struct + Commit string + Date string + GoVersion string + Platform string + Version string