package
0.0.0-20250308170929-48bd8ed27534
Repository: https://github.com/evergreen-ci/evergreen.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
ForbiddenHandler logs a rejected request befure returning a 403 to the client.
GetListener creates a network listener on the given address.
GetProject loads the project attached to a request into request context.
GetProjectContext fetches the projectContext associated with the request.
GetRESTContext fetches the context associated with the request.
GetRESTv1App attaches a router at the given root that hooks up REST endpoint URIs to be handled by the given restAPIService.
No description provided by the author
GetServer produces an HTTP server instance for a handler.
GetTask loads the task attached to a request.
GetTLSListener creates an encrypted listener with the given TLS config and address.
MakeTemplateFuncs creates and registers all of our built-in template functions.
MustHaveProject gets the project from the HTTP request and panics if there is no project specified.
MustHaveProjectContext gets the projectContext from the request, or panics if it does not exist.
MustHaveRESTContext fetches the model.Context stored with the request, and panics if the key is not set.
MustHaveTask gets the task from an HTTP Request.
MustHaveUser gets the user from the request or panics if it does not exist.
NewAPIServer returns an APIServer initialized with the given settings and plugins.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RedirectIfSpruceSet redirects the user to spruce only if they aren't visiting this page from spruce already and have spruce enabled.
No description provided by the author
# Constants
No description provided by the author
passed as a limit, so 0 means don't limit.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Initial number of revisions to return on first page load.
No description provided by the author
Number of revisions to return on subsequent requests.
No description provided by the author
No description provided by the author
Key values used to map user and project data to request context.
No description provided by the author
No description provided by the author
The resolution of times stored in the database.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
APIServer handles communication with Evergreen agents and other back-end requests.
No description provided by the author
PatchAPIResponse is returned by all patch-related API calls.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FuncOptions are global variables injected into our templating functions.
No description provided by the author
UIBuild has the fields that are necessary to send over the wire for builds.
UIBuildVariant contains the name of the build variant and the tasks associated with that build variant.
No description provided by the author
UIProject has all the tasks that are in a project and all the BuildVariants.
UIServer provides a web interface for Evergreen.
UIStats is all of the data that the stats page might need.
UITask has the fields that are necessary to send over the wire for tasks.
ViewData contains common data that is provided to all Evergreen pages.