Documentation ¶
Index ¶
- Constants
- func GetAssetBox() *packr.Box
- func GetBaseTemplate(name string) (*template.Template, error)
- func GetMarkdownBox() *packr.Box
- func GetRouter(port int, basePath string, vpaLabels map[string]string, ...) *mux.Router
- func GetTemplateBox() *packr.Box
- func MainHandler(w http.ResponseWriter, r *http.Request, vpaData summary.Summary, ...)
Constants ¶
View Source
const ( // MainTemplateName is the main template MainTemplateName = "main.gohtml" // HeadTemplateName contains styles and meta info HeadTemplateName = "head.gohtml" NavbarTemplateName = "navbar.gohtml" // PreambleTemplateName contains an empty preamble that can be overridden PreambleTemplateName = "preamble.gohtml" // DashboardTemplateName contains the content of the dashboard DashboardTemplateName = "dashboard.gohtml" FooterTemplateName = "footer.gohtml" // CheckDetailsTemplateName is a page for rendering details about a given check CheckDetailsTemplateName = "check-details.gohtml" )
Variables ¶
This section is empty.
Functions ¶
func GetAssetBox ¶
GetAssetBox returns a binary-friendly set of assets packaged from disk
func GetBaseTemplate ¶
GetBaseTemplate puts together the dashboard template. Individual pieces can be overridden before rendering.
func GetMarkdownBox ¶
GetMarkdownBox returns a binary-friendly set of markdown files with error details
func GetRouter ¶
func GetRouter(port int, basePath string, vpaLabels map[string]string, excludeContainers string) *mux.Router
GetRouter returns a mux router serving all routes necessary for the dashboard
func GetTemplateBox ¶
GetTemplateBox returns a binary-friendly set of templates for rendering the dash
func MainHandler ¶
MainHandler gets template data and renders the dashboard with it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.