Skip to main content

Crate radicle_job

Crate radicle_job 

Source
Expand description

Radicle “job COB”.

A Job records results of automated processing of a repository for a given Git commit, by one or more nodes.

For any one of these processes there is a corresponding Run. For example, nodes that run CI for a repository might add Run to a Job for a specific commit. If there are several nodes running CI, they would each add their own Run to the same Job.

§Example

let mut jobs = Jobs::open(repo).unwrap();
let mut job = jobs.create(oid, &alice.signer).unwrap();
let uuid = Uuid::new_v4();
let log = Url::parse(&format!("https://example.com/ci/logs?run={}", uuid)).unwrap();
job.run(uuid, log, &alice.signer).unwrap();

Modules§

display
Display forms of Job data.
error
Errors that are captured for job related actions.

Structs§

FindByCommit
Iterator for finding each Job where the Job::oid matches the wanted commit. See Jobs::find_by_commit.
Job
A Job describes a generic task run for a given commit Oid by a set of nodes.
JobId
The identifier for a given Job collaborative object.
JobMut
A JobMut is a Job where the underlying Job can be mutated by applying actions to it.
Jobs
The storage for all Job items.
Run
A Run represents a task run for a Job. A Run is initially created in with a Status::Started, before processing has started.
Runs
A set of Runs identified by a Uuid.

Enums§

Action
The collaborative object actions that are used for Radicle COB operations.
Reason
The reason for a Status to have finished.
Status
The status of a Run.

Statics§

TYPENAME
Type name of a patch.