Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCSPPolicy = "base-uri 'self'; object-src 'none'; frame-ancestors 'self'"
DefaultCSPPolicy is the Content-Security-Policy served with the UI when none is configured.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolSetting ¶
type BoolSetting func() bool
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewUIHandler ¶
func (*Handler) IndexFileOnNotFound ¶
func (*Handler) ServeAPIUI ¶ added in v0.7.16
func (*Handler) ServeAsset ¶
func (*Handler) ServeFaviconDashboard ¶
type Options ¶
type Options struct {
// The location on disk of the UI files
Path StringSetting
// The HTTP URL of the index file to download
Index StringSetting
// Whether or not to run the UI offline, should return true/false/dynamic
Offline StringSetting
// Whether or not is it release, if true UI will run offline if set to dynamic
ReleaseSetting BoolSetting
// The version of API UI to use
APIUIVersionSetting StringSetting
// The Content-Security-Policy to serve the UI with
CSPPolicy StringSetting
}
type StringSetting ¶
type StringSetting func() string
Click to show internal directories.
Click to hide internal directories.