Documentation ¶
Index ¶
- type GrantWithURL
- type SSHTemplateContext
- type TokenCreateContext
- type TokenTemplateContext
- type UserPanel
- func (panel *UserPanel) HandleRoute(ctx context.Context, route string) (http.Handler, error)
- func (panel *UserPanel) Menu(r *http.Request) []component.MenuItem
- func (panel *UserPanel) Routes() component.Routes
- func (panel *UserPanel) UserFormContext(tpl *templating.Template[userFormContext], last component.MenuItem, ...) func(ctx httpx.FormContext, r *http.Request) any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrantWithURL ¶
func (GrantWithURL) AdminURL ¶
func (g GrantWithURL) AdminURL() template.URL
type SSHTemplateContext ¶
type SSHTemplateContext struct { templating.RuntimeFlags Keys []models.Keys Domain string // domain name of the distillery Port uint16 // public port of the distillery ssh servers Slug string // slug of the wisski Hostname string // hostname of an example wisski // Services are the special services reachable via ssh Services []ssh2.Intercept }
type TokenCreateContext ¶
type TokenCreateContext struct { templating.RuntimeFlags Domain template.URL // server base URL Token *models.Token }
type TokenTemplateContext ¶
type TokenTemplateContext struct { templating.RuntimeFlags Domain template.URL // server base URL Tokens []models.Token }
type UserPanel ¶
type UserPanel struct { component.Base Dependencies struct { Auth *auth.Auth Templating *templating.Templating Policy *policy.Policy Tokens *tokens.Tokens Instances *instances.Instances Next *next.Next Keys *sshkeys.SSHKeys SSH2 *ssh2.SSH2 } }
func (*UserPanel) HandleRoute ¶
func (*UserPanel) UserFormContext ¶
func (panel *UserPanel) UserFormContext(tpl *templating.Template[userFormContext], last component.MenuItem, funcs ...templating.FlagFunc) func(ctx httpx.FormContext, r *http.Request) any
Click to show internal directories.
Click to hide internal directories.