package
0.0.0-20250308170929-48bd8ed27534
Repository: https://github.com/evergreen-ci/evergreen.git
Documentation: pkg.go.dev

# Functions

AbortPatch uses the service level CancelPatch method to abort a single patch with matching Id.
AbortPatchesFromPullRequest aborts patches with the same PR Number, in the same repository, at the pull request's close time.
No description provided by the author
No description provided by the author
AddPRPatchIntent inserts the intent and adds it to the queue if PR testing is enabled for the branch.
BbFileTicket creates a JIRA ticket for a task with the given test failures.
BuildProjectParameterMapForGraphQL builds the parameters map that can be used as an input to GetProjectIdFromParams.
BuildProjectParameterMapForLegacy builds the parameters map that can be used as an input to GetProjectIdFromParams.
CheckPodSecret checks for a pod with a matching ID and secret in the database.
No description provided by the author
CopyDistro duplicates a given distro in the database given options specifying the existing and new distro ID.
CopyProject copies the passed in project with the given project identifier, and returns the new project.
CreateDistro creates a new distro with the provided ID using the default settings specified here.
CreateHostsFromTask creates intent hosts for those requested by the host.create command in a task.
CreatePod creates a new pod from the given REST model and returns its ID.
CreateProject creates a new project ref from the given one and performs other initial setup for new projects such as populating initial project variables and creating new webhooks.
DeleteContainerSecrets deletes existing container secrets in the project ref from the secrets storage service.
DeleteDistroById removes a given distro from the database based on its id.
No description provided by the author
FindAPIPodByID finds a pod by the given ID and returns its equivalent API model.
FindGeneratedTasksFromID finds info about all tasks that were generated by the given generator task.
FindHostByIdWithOwner finds a host with given host ID that was started by the given user.
No description provided by the author
FindMergedProjectAliases returns a merged list of aliases, with the order of precedence being: 1.
FindPatchById queries the backing database for the patch matching patchId.
FindPatchesByProject uses the service layer's patches type to query the backing database for the patches.
FindPatchesByUser finds patches for the input user as ordered by creation time.
FindPodByID finds the pod by the given ID.
FindProjectById queries the database for the project matching the projectRef.Id.
FindProjectVarsById returns the variables associated with the project and repo (if given).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindRecentTasks finds tasks that have recently finished.
No description provided by the author
FindTasksByBuildId uses the service layer's task type to query the backing database for a list of task that matches buildId.
FindTasksByProjectAndCommit is a method to find a set of tasks which ran as part of certain version in a project.
GenerateHostProvisioningScript generates and returns the script to provision the host given by host ID.
GeneratePoll checks to see if a `generate.tasks` job has finished.
GenerateTasks parses JSON files for `generate.tasks` and creates the new builds and tasks.
No description provided by the author
No description provided by the author
GetCLIUpdate fetches the current cli version and the urls to download.
GetDockerLogs retrieves the logs for the given container.
GetDockerStatus returns the status of the given Docker container.
No description provided by the author
GetManifestByTask finds the version manifest corresponding to the given task.
No description provided by the author
No description provided by the author
No description provided by the author
GetProjectIdFromParams queries for a project and returns its projectId as a string.
GetProjectTasksWithOptions finds the previous tasks that have run on a project that adhere to the passed in options.
GetProjectVersionsWithOptions returns the versions that fit the given constraint.
GetRawPatches fetches the raw patches for a patch.
No description provided by the author
GetSubscriptions returns the subscriptions that belong to a user.
GetTaskReliabilityScores queries the service backend to retrieve the task reliability scores that match the given filter.
GetTaskStats queries the service backend to retrieve the task stats that match the given filter.
GetVersionsAndVariants Fetch versions until 'numVersionElements' elements are created, including elements consisting of multiple versions rolled-up into one.
HideBranch is used to "delete" a project via the rest route or the UI.
ListHostsForTask lists running hosts scoped to the task or the task's build.
No description provided by the author
MakeHost creates a host or container to run for host.create.
No description provided by the author
StartSpawnHost enqueues a job to modify a spawn host.
NewIntentHost is a method to insert an intent host given a distro and a public key The public key can be the name of a saved key or the actual key string.
PostHostIsUp indicates to the app server that a host is up.
PromoteVarsToRepo moves variables from an attached project to its repo.
RequestS3Creds creates a JIRA ticket that requests S3 credentials to be added for the specified project.
RestartFailedTasks attempts to restart failed tasks that started between 2 times.
SaveProjectSettingsForSection saves the given UI page section and logs it for the given user.
No description provided by the author
SetBannerTheme sets the banner theme in the DB and event logs it.
SetEvergreenSettings sets the admin settings document in the DB and event logs it.
SetPatchActivated attempts to activate the patch and create a new version (if activated is set to true).
StartSpawnHost enqueues a job to start a stopped spawn host.
StopSpawnHost enqueues a job to stop a running spawn host.
No description provided by the author
TerminateSpawnHost enqueues a job to terminate a spawn host.
TriggerRepotracker creates an amboy job to get the commits from a Github Push Event.
UpdateDistro updates the given distro.Distro.
UpdateProjectAliases upserts/deletes aliases for the given project.
UpdateProjectVars adds new variables, overwrites variables, and deletes variables for the given project.
No description provided by the author
UpsertContainerSecrets adds new secrets or updates the value of existing container secrets in the secrets storage service for a project.
No description provided by the author
ValidateProjectName checks that a project ID / identifier is not already in use and has only valid characters.

# Constants

No description provided by the author

# Structs

DBConnector is a struct that implements all of the methods which connect to the service layer of evergreen.
No description provided by the author
DBProjectConnector is a struct that implements the Project related methods from the Connector through interactions with the backing database.
DBVersionConnector is a struct that implements Version related methods from the Connector through interactions with the backing database.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Connector is an interface that contains all of the methods which connect to the service layer of evergreen.