Documentation ¶
Overview ¶
Package templating contains code related to using go templates
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllStatusKind = []string{
"STATUS_KIND_UP",
"STATUS_KIND_DOWN",
"STATUS_KIND_WARNING",
"STATUS_KIND_AVAILABLE",
"STATUS_KIND_UNAVAILABLE",
"STATUS_KIND_INVESTIGATING",
"STATUS_KIND_OBSERVING",
"STATUS_KIND_CREATED",
"STATUS_KIND_ONLINE",
"STATUS_KIND_OFFLINE",
"STATUS_KIND_DECOMM",
}
AllStatusKind is a reusable list of all our current status kinds in a quick slice form
Functions ¶
This section is empty.
Types ¶
type DefaultTemplateLoader ¶
type DefaultTemplateLoader struct {
// contains filtered or unexported fields
}
DefaultTemplateLoader is the default template loader
func NewDefaultTemplateLoader ¶
func NewDefaultTemplateLoader(templates *template.Template) (*DefaultTemplateLoader, error)
NewDefaultTemplateLoader returns a new template loader with defaults
type ReloadingFSTemplateLoader ¶
type ReloadingFSTemplateLoader struct {
// contains filtered or unexported fields
}
ReloadingFSTemplateLoader is a template loader that reloads templates on each request from an fs.FS
func NewReloadingFSTemplateLoader ¶
func NewReloadingFSTemplateLoader(fs fs.FS, pattern string, funcmap template.FuncMap) (*ReloadingFSTemplateLoader, error)
NewReloadingFSTemplateLoader returns a new reloadable template loader
type TemplateLoader ¶
TemplateLoader is something that can lookup templates
Click to show internal directories.
Click to hide internal directories.