luci: go.chromium.org/luci/milo/frontend Index | Files | Directories

package frontend

import "go.chromium.org/luci/milo/frontend"

Index

Package Files

middleware.go routes.go view_build.go view_builder.go view_builders.go view_config.go view_console.go view_error.go view_frontpage.go view_logs.go view_search.go

func BuilderHandler Uses

func BuilderHandler(c *router.Context, builderID buildsource.BuilderID) error

BuilderHandler is responsible for taking a universal builder ID and rendering the builder page (defined in ./appengine/templates/pages/builder.html). We don't need to do an ACL check because this endpoint delegates all ACL checks authentication to Buildbucket with the RPC calls.

func BuildersRelativeHandler Uses

func BuildersRelativeHandler(c *router.Context, projectID, group string) error

BuildersRelativeHandler is responsible for rendering a builders list page according to project. Presently only relative time is handled, i.e. last builds without correlation between builders), and no filtering by group has been implemented.

The builders list page by relative time is defined in ./appengine/templates/pages/builders_relative_time.html.

func ConfigsHandler Uses

func ConfigsHandler(c *router.Context)

ConfigsHandler renders the page showing the currently loaded set of luci-configs.

func ConsoleHandler Uses

func ConsoleHandler(c *router.Context) error

ConsoleHandler renders the console page.

func ConsolesHandler Uses

func ConsolesHandler(c *router.Context, projectID string) error

ConsolesHandler is responsible for taking a project name and rendering the console list page (defined in ./appengine/templates/pages/builder_groups.html).

func ErrorHandler Uses

func ErrorHandler(c *router.Context, err error)

ErrorHandler renders an error page for the user.

func GetLimit Uses

func GetLimit(r *http.Request, def int) int

GetLimit extracts the "limit", "numbuilds", or "num_builds" http param from the request, or returns def implying no limit was specified.

func GetReload Uses

func GetReload(r *http.Request, def int) int

GetReload extracts the "reload" http param from the request, or returns def implying no limit was specified.

func HandleSwarmingLog Uses

func HandleSwarmingLog(c *router.Context) error

HandleSwarmingLog renders a step log from a swarming build.

func ProjectLinks(c context.Context, project, group string) []ui.LinkGroup

ProjectLinks returns the navigation list surrounding a project and optionally group.

func Run Uses

func Run(templatePath string)

Run sets up all the routes and runs the server.

func UpdateConfigHandler Uses

func UpdateConfigHandler(ctx *router.Context)

UpdateHandler is an HTTP handler that handles configuration update requests.

Directories

PathSynopsis
appengine
ui

Package frontend imports 59 packages (graph) and is imported by 2 packages. Updated 2018-10-21. Refresh now. Tools for package owners.