Documentation
¶
Index ¶
- Constants
- func DetailsHandler(w http.ResponseWriter, r *http.Request, category string, basePath string)
- func GetAssetBox() *packr.Box
- func GetBaseTemplate(name string) (*template.Template, error)
- func GetMarkdownBox() *packr.Box
- func GetRouter(c config.Configuration, port int, basePath string) *mux.Router
- func GetTemplateBox() *packr.Box
- func MainHandler(w http.ResponseWriter, r *http.Request, c config.Configuration, ...)
- func NotFoundHandler(w http.ResponseWriter, r *http.Request, basePath string)
- type ImagesGroup
Constants ¶
View Source
const ( // MainTemplateName is the main template MainTemplateName = "main.gohtml" // HeadTemplateName contains styles and meta info HeadTemplateName = "head.gohtml" NavbarTemplateName = "navbar.gohtml" // NotFoundTemplateName contains the 404 page NotFoundTemplateName = "notfound.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" // ImageScanDetailsTemplateName is a page for rendering a single image scan details ImageScanDetailsTemplateName = "image-scan-details.gohtml" // Container Image Vulnerabilities Scans general overview ImageScansOverviewTemplateName = "image-scans-overview.gohtml" // Kubernetes Cluster Overview ClusterOverviewTemplateName = "k8s-cluster-overview.gohtml" )
Variables ¶
This section is empty.
Functions ¶
func DetailsHandler ¶
DetailsHandler returns details for a given error type
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 GetTemplateBox ¶
GetTemplateBox returns a binary-friendly set of templates for rendering the dash
func MainHandler ¶
func MainHandler(w http.ResponseWriter, r *http.Request, c config.Configuration, auditData scanners.AuditData, basePath string)
MainHandler gets template data and renders the dashboard with it.
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request, basePath string)
NotFoundHandler creates 404 page
Types ¶
type ImagesGroup ¶
Click to show internal directories.
Click to hide internal directories.