Documentation
¶
Overview ¶
Package html provides the otf web app, serving up HTML formatted pages and associated assets (CSS, JS, etc).
Index ¶
Constants ¶
View Source
const ( FlashSuccess flashType = "success" FlashError flashType = "error" )
View Source
const DefaultPathPrefix = "/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
// otf service accessors
otf.Application
// logger for logging messages
logr.Logger
// server-side-events server
*sse.Server
// contains filtered or unexported fields
}
Application is the otf web app.
type ApplicationOption ¶
type ApplicationOption func(*Application)
func WithSiteToken ¶
func WithSiteToken(token string) ApplicationOption
type Authenticator ¶
type Authenticator struct {
otf.Cloud
otf.Application
}
Authenticator logs people onto the system, synchronising their user account and various organization and team memberships from an external directory.
func (*Authenticator) RequestPath ¶
func (a *Authenticator) RequestPath() string
type Config ¶
type Config struct {
DevMode bool
// contains filtered or unexported fields
}
Config is the web app configuration.
func NewConfigFromFlags ¶
NewConfigFromFlags binds flags to the config. The flagset must be parsed in order for the config to be populated.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.