package
0.55.1
Repository: https://github.com/ovh/cds.git
Documentation: pkg.go.dev

# Functions

AddSpawnInfosNodeJobRun saves spawn info before starting worker.
AddWorkflowIntegration link a project integration on a workflow.
AddWorkflowRunInfo add WorkflowRunInfo on a WorkflowRun.
AggregateOnWorkflowTemplateInstance set workflow for each workflow template instance.
BookNodeJobRun Book a job for a hatchery.
CanBeRun return boolean to know if a workflow node run can be run or not TODO: if no bugs are found, it could be used to refactor process.go.
CheckValidity checks workflow validity.
CountNodeJobRunQueue count all workflow_node_run_job accessible.
CountPipeline Count the number of workflow that use the given pipeline.
CountRepositoryWebHooksByApplication count repository webhooks by application id.
CreateBuiltinWorkflowHookModels insert all builtin hook models in database.
CreateBuiltinWorkflowOutgoingHookModels insert all builtin hook models in database.
CreateFromRepository a workflow from a repository.
CreateRun creates a new workflow run and insert it.
DefaultPayload returns the default payload for the workflow root.
Delete workflow.
DeleteIntegrationsFromWorkflow remove a project integration on a workflow.
DeleteNodeJobRun deletes the given workflow_node_run_job.
DeleteNodeJobRuns deletes all workflow_node_run_job for a given workflow_node_run.
DeleteWorkflowData delete the relation representation of the workflow.
Exists checks if a workflow exists.
ExistsID checks if a workflow exists for given ID and project.
Export a workflow.
FreeNodeJobRun Free a job for a hatchery.
GetNodeRunBuildCommits gets commits for given node run and return current vcs info.
GetTagsAndValue returns a map of tags and all the values available on all runs of a workflow.
Import is able to create a new workflow and all its components.
Initialize starts goroutines for workflows.
Insert inserts a new workflow.
InsertAudit insert a workflow audit.
InsertHookModel inserts a hook model in database.
InsertOutgoingHookModel inserts a hook model in database.
InsertRunNum Insert run number for the given workflow.
InsertWorkflowData insert workflow data.
InsertWorkflowRunTags inserts new tags in database.
IsDeploymentIntegrationUsed checks if a deployment integration is used on any workflow.
LabelWorkflow link a label on a workflow given his workflow id.
Load loads a workflow for a given user (ie.
LoadAll loads all workflows for a project.
LoadAllByIDs returns all workflows by ids.
LoadAllHooks returns all hooks.
LoadAllNames loads all workflow names for a project.
LoadAllNamesByProjectIDs returns all workflow for given project ids.
LoadAndLockNodeJobRunSkipLocked load for update a NodeJobRun given its ID.
LoadAndLockNodeJobRunWait load for update a NodeJobRun given its ID.
LoadAndLockNodeRunByID load and lock a specific node run on a workflow.
LoadAndLockNodeRunByJobID load and lock a specific node run on a workflow.
LoadAndLockRunByID loads run by ID.
LoadAndLockRunByJobID loads a run by a job id.
LoadAudit Load audit for the given workflow.
LoadAudits Load audits for the given workflow.
LoadByApplicationName loads a workflow for a given project key and application name.
LoadByEnvName loads a workflow for a given project key and environment name (ie.
LoadByID loads a workflow.
LoadByPipelineName loads a workflow for a given project key and pipeline name.
LoadByWorkflowTemplateID load all workflow names linked to a workflow template.
LoadCurrentRunNum load the current num from workflow_sequences table.
LoadDeadNodeJobRun load a NodeJobRun which is Building but without worker.
LoadDecryptSecrets loads all secrets for a job run.
LoadHookByUUID load a hook by his uuid.
LoadHookModelByID returns a hook model by it's id, if not found, it returns an error.
LoadHookModelByName returns a hook model by it's name, if not found, it returns an error.
LoadHookModels returns all hook models available.
LoadLabels return list of labels given a workflow ID.
LoadLastRun returns the last run for a workflow.
LoadLastRuns returns the last run per workflowIDs.
LoadNodeJobRun load a NodeJobRun given its ID.
LoadNodeJobRunIDByNodeRunID Load node run job id by node run id.
LoadNodeJobRunQueue load all workflow_node_run_job accessible.
LoadNodeJobRunQueueByGroupIDs load all workflow_node_run_job accessible.
LoadNodeRun load a specific node run on a workflow.
LoadNodeRunByID load a specific node run on a workflow.
LoadNodeRunByNodeJobID load a specific node run on a workflow from a node job run id.
LoadNodeRunJobInfo load infos (workflow_node_run_job_infos) for a job (workflow_node_run_job).
LoadOutgoingHookModelByID returns a hook model by it's id, if not found, it returns an error.
LoadOutgoingHookModelByName returns a hook model by it's name, if not found, it returns an error.
LoadOutgoingHookModels returns all hook models available.
LoadRun returns a specific run.
LoadRunByID loads run by ID.
LoadRunByIDAndProjectKey returns a specific run.
LoadRunByJobID loads a run by a job id.
LoadRunsIDByTag load workflow run ids for given tag and his value.
LoadRunsIDsCreatedBefore returns the first workflow runs created before given date.
LoadRunsSummaries loads a short version of workflow runs It returns runs, offset, limit count and an error.
LoadWorkflowFromWorkflowRunID loads the workflow for the given workfloxw run id.
LoadWorkflowIntegrationsByWorkflowID load workflow integrations by workflowid.
MarkAsDelete marks a workflow to be deleted.
MarkWorkflowRunsAsDelete marks workflow runs to be deleted.
MaxSubNumber returns the MaxSubNumber of workflowNodeRuns.
NodeBuildParametersFromRun return build parameters from previous workflow run.
NodeBuildParametersFromWorkflow returns build_parameters for a node given its id.
Parse parse an exportentities.workflow and return the parsed workflow.
ParseAndImport parse an exportentities.workflow and insert or update the workflow in database.
PrepareSpawnInfos helps yoi to create sdk.SpawnInfo array.
PreviousNodeRun find previous node run.
PreviousNodeRunVCSInfos returns a struct with BuildNumber, Commit Hash, Branch, Remote, Remote_url for the current node run and the previous one on the same branch.
Pull a workflow with all it dependencies; it writes a tar buffer in the writer.
PurgeAllWorkflowRunsByWorkflowID marks all workflow to delete given a workflow.
PurgeWorkflowRun mark all workflow run to delete.
Push push a workflow from cds files.
ReadCDSFiles reads CDS files.
RemoveIntegrationFromWorkflow remove a project integration on a workflow.
Resync a workflow in the given workflow run.
ResyncCommitStatus resync commit status for a workflow run.
ResyncNodeRunsWithCommits load commits build in this node run and save it into node run.
ResyncWorkflowRunStatus resync the status of workflow if you stop a node run when workflow run is building.
RunExist Check if run exist or not.
SetRunReadOnly set read only flag of a workflow run, this run cannot be restarted anymore.
Sort sorts all the workflow tree.
SortNode sort the content of a node.
StopWorkflowNodeRun to stop a workflow node run with a specific spawn info.
SyncNodeRunRunJob sync step status and spawnInfos in a specific run job.
TakeNodeJobRun Take an a job run for update.
UnLabelWorkflow unlink a label on a workflow given his workflow id.
Update updates a workflow.
UpdateFavorite add or delete workflow from user favorites.
UpdateFromRepository update the from_repository of a workflow.
UpdateHookModel updates a hook model in database.
UpdateIcon update the icon of a workflow.
UpdateMetadata update the metadata of a workflow.
UpdateNodeJobRun updates a workflow_node_run_job.
UpdateNodeJobRunStatus Update status of an workflow_node_run_job.
UpdateNodeRun updates in table workflow_node_run.
UpdateNodeRunBuildParameters updates build_parameters in table workflow_node_run.
UpdateNodeRunStatusAndStage update just noderun status and stage.
UpdateOutgoingHookModel updates a hook model in database.
UpdateOutgoingHookRunStatus updates the status and callback of a outgoing hook run, and then it reprocess the whole workflow.
UpdateParentWorkflowRun updates the workflow which triggered the current workflow.
UpdateRunNum Update run number for the given workflow.
UpdateWorkflowRun updates in table "workflow_run"".
UpdateWorkflowRunStatus update status of a workflow run.
UpdateWorkflowRunTags updates new tags in database.
UserFavoriteWorkflowIDs returns the list of workflow ID.

# Constants

# Variables

# Structs

ImportOptions is option to parse a workflow.
JobRun is a gorp wrapper around sdk.WorkflowNodeJobRun.
LoadOptions custom option for loading workflow.
LoadRunOptions are options for loading a run (node or workflow).
NodeRun is a gorp wrapper around sdk.WorkflowNodeRun.
ProcessorReport represents the state of the workflow processor.
PushOption is the set of options for workflow push.
QueueFilter contains all criteria used to fetch queue.
UpdateOptions is option to parse a workflow.
Workflow is a gorp wrapper around sdk.WorkflowData.

# Type aliases

Notification is a gorp wrapper around sdk.WorkflowNotification.
Run is a gorp wrapper around sdk.WorkflowRun.
RunTag is a gorp wrapper around sdk.WorkflowRunTag.