panel

package
v0.0.0-...-dae269f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrantWithURL

type GrantWithURL struct {
	models.Grant
	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
	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 (panel *UserPanel) HandleRoute(ctx context.Context, route string) (http.Handler, error)

func (*UserPanel) Menu

func (panel *UserPanel) Menu(r *http.Request) []component.MenuItem

func (*UserPanel) Routes

func (panel *UserPanel) Routes() component.Routes

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL