luci: Index | Files | Directories

package frontend

import ""


Package Files

actions.go middleware.go routes.go view_build.go view_build_legacy.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) error

BuilderHandler renders the builder page. Does not control access directly because this endpoint delegates all access control 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)

UpdateConfigHandler is an HTTP handler that handles configuration update requests.



Package frontend imports 65 packages (graph) and is imported by 2 packages. Updated 2020-12-06. Refresh now. Tools for package owners.