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 form.FormContext, r *http.Request) any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrantWithURL ¶
type GrantWithURL struct {
models.Grant
Explicit bool // implicit means only .Grant.Slug is set, and comes from nature of being a distillery admin
URL template.URL
}
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
PanelDomain string // domain name of the panel
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 ¶
func (*UserPanel) HandleRoute ¶
func (*UserPanel) UserFormContext ¶
func (panel *UserPanel) UserFormContext(tpl *templating.Template[userFormContext], last component.MenuItem, funcs ...templating.FlagFunc) func(ctx form.FormContext, r *http.Request) any
Click to show internal directories.
Click to hide internal directories.