# Functions
CancelPreviousJobs cancels all previous jobs of the same repository, reference, workflow, and event.
CreateRunner creates new runner.
CreateScheduleTask creates new schedule task.
DeleteRunner deletes a runner by given ID.
FindTaskOutputByTaskID returns the outputs of the task.
FindTaskOutputKeyByTaskID returns the keys of the outputs of the task.
GetActors returns a slice of Actors.
GetLatestRunnerToken returns the latest runner token.
GetReposMapByIDs returns the repos by given id slice.
GetRunnerByID returns a runner via id.
GetRunnerByUUID returns a runner via uuid.
GetRunnerToken returns a action runner via token.
GetSchedulesMapByIDs returns the schedules by given id slice.
GetStatusInfoList returns a slice of StatusInfo.
InsertRun inserts a run The title will be cut off at 255 characters if it's longer than 255 characters.
InsertTaskOutputIfNotExist inserts a new task output if it does not exist.
ListNeedExpiredArtifacts returns all need expired artifacts but not deleted.
ListPendingDeleteArtifacts returns all artifacts in pending-delete status.
ListUploadedArtifactsMeta returns all uploaded artifacts meta of a run.
NewRunnerToken creates a new active runner token and invalidate all old tokens ownerID will be ignored and treated as 0 if repoID is non-zero.
SetArtifactDeleted sets an artifact to deleted.
SetArtifactExpired sets an artifact to expired.
SetArtifactNeedDelete sets an artifact to need-delete, cron job will delete it.
UpdateArtifactByID updates an artifact by id.
UpdateRun updates a run.
UpdateRunner updates runner's information.
UpdateRunnerToken updates runner token information.
UpdateTaskByState updates the task by the state.
# Constants
6, ArtifactStatusDeleted is the status of an artifact that is deleted.
4, ArtifactStatusExpired is the status of an artifact that is expired.
5, ArtifactStatusPendingDeletion is the status of an artifact that is pending deletion.
2, ArtifactStatusUploadConfirmed is the status of an artifact upload that is confirmed.
3, ArtifactStatusUploadError is the status of an artifact upload that is errored.
1, ArtifactStatusUploadPending is the status of an artifact upload that is pending.
7, isn't a runnerv1.Result.
3, consistent with runnerv1.Result_RESULT_CANCELLED.
2, consistent with runnerv1.Result_RESULT_FAILURE.
6, isn't a runnerv1.Result.
4, consistent with runnerv1.Result_RESULT_SKIPPED.
1, consistent with runnerv1.Result_RESULT_SUCCESS.
0, consistent with runnerv1.Result_RESULT_UNSPECIFIED.
5, isn't a runnerv1.Result.
# Structs
ActionArtifact is a file that is stored in the artifact storage.
ActionArtifactMeta is the meta data of an artifact.
ActionRun represents a run of a workflow file.
ActionRunJob represents a job of a run.
ActionRunner represents runner machines
It can be: 1.
ActionRunnerToken represents runner tokens
It can be: 1.
ActionSchedule represents a schedule of a workflow file.
ActionScheduleSpec represents a schedule spec of a workflow file.
ActionTask represents a distribution of job.
ActionTaskOutput represents an output of ActionTask.
ActionTaskStep represents a step of ActionTask.
ActionTasksVersion If both ownerID and repoID is zero, its scope is global.
ActionVariable represents a variable that can be used in actions
It can be: 1.
# Type aliases
ArtifactStatus is the status of an artifact, uploading, expired or need-delete.
LogIndexes is the index for mapping log line number to buffer offset.
Status represents the status of ActionRun, ActionRunJob, ActionTask, or ActionTaskStep.