loginhtml

package
Version: v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package loginhtml defines HTML templates used by the Supervisor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSS

func CSS() string

CSS returns the minified CSS that will be embedded into the page template.

func ContentSecurityPolicy

func ContentSecurityPolicy() string

ContentSecurityPolicy returns the Content-Security-Policy header value to make the Template() operate correctly.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy.

func Template

func Template() *template.Template

Template returns the html/template.Template for rendering the login page.

Types

type PageData

type PageData struct {
	State         string
	IDPName       string
	HasAlertError bool
	AlertMessage  string
	MinifiedCSS   template.CSS
	PostPath      string
}

PageData represents the inputs to the template.

Source Files

Jump to

Keyboard shortcuts

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