Versions in this module Expand all Collapse all v0 v0.3.6 Oct 24, 2021 v0.3.5 Aug 14, 2021 Changes in this version + const RefreshTokenCookie + const TokenHeader + var Decoders = map[string]map[string]interface + var RouterGrantRequirements = map[string]map[string]MethodPermissions + func DecodeRequest(next http.Handler) http.Handler + func NewResourceGetter(d *desktopAPI) types.ResourceGetter + func NewTestAPI() (srvr *http.Server, addr, adminPass string, err error) + type ActionTemplate struct + ResourceNameFunc ResourceValueFunc + ResourceNamespaceFunc ResourceValueFunc + type AuditResult struct + Actions []*types.APIAction + Allowed bool + FromOwner bool + Request *http.Request + Resource string + UserSession *types.JWTClaims + type DesktopAPI interface + ServeHTTP func(http.ResponseWriter, *http.Request) + func NewFromConfig(cfg *rest.Config, vdiCluster string) (DesktopAPI, error) + type ExtraCheckFunc func(d *desktopAPI, reqUser *types.VDIUser, r *http.Request) (allowed bool, reason string, err error) + type MethodPermissions struct + Actions []ActionTemplate + ExtraCheckFunc ExtraCheckFunc + OverrideFunc OverrideFunc + type OverrideFunc func(d *desktopAPI, reqUser *types.VDIUser, r *http.Request) (allowed, owner bool, err error) + type ResourceGetter struct + func (r *ResourceGetter) GetRoles() ([]types.VDIUserRole, error) + func (r *ResourceGetter) GetTemplates() ([]string, error) + func (r *ResourceGetter) GetUsers() ([]types.VDIUser, error) + type ResourceValueFunc func(r *http.Request) (name string)