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 {
// OAuth identity provider config
*otf.CloudConfig
otf.Application
}
Authenticator logs people onto the system using an OAuth handshake with an Identity provider before synchronising their user account and various organization and team memberships from the provider.
func (*Authenticator) RequestPath ¶
func (a *Authenticator) RequestPath() string
func (*Authenticator) String ¶ added in v0.0.18
func (a *Authenticator) String() string
String provides a human readable name for the authenticator, reflecting the name of the cloud providing authentication.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.