pub struct TreadleCheck {Show 15 fields
pub name: String,
pub command: String,
pub args: Vec<String>,
pub class: i32,
pub timeout_seconds: u32,
pub env: Vec<TreadleEnvEntry>,
pub working_directory: String,
pub service_dependencies: Vec<String>,
pub retry: Option<TreadleRetry>,
pub cache_paths: Vec<String>,
pub isolation: Option<TreadleIsolationHints>,
pub triggers: Vec<TreadleTrigger>,
pub supersede_older_runs: bool,
pub target_environment: Option<TreadleTargetEnvironment>,
pub determinism_class: i32,
}Expand description
A check is treadle’s smallest independently signable execution atom.
Fields§
§name: StringStable name, unique within its concrete job.
command: StringExecutable name/path. This is never a shell command string.
args: Vec<String>Ordered arguments passed directly to command. No shell interpretation or variable interpolation is performed.
class: i32Requested gating class. This is only a hint; protected policy remains the authority that decides whether a result gates acceptance.
timeout_seconds: u32Positive wall-clock timeout in whole seconds.
env: Vec<TreadleEnvEntry>Environment entries keyed by name. Values are literal or names-only secret references; bare protobuf maps are deliberately forbidden.
working_directory: StringRepository-relative working directory. Empty means repository root.
service_dependencies: Vec<String>Names of pipeline-wide service containers required by this check.
retry: Option<TreadleRetry>Always present, including when max_retries is zero.
cache_paths: Vec<String>Repository-relative paths eligible for restore/persist.
isolation: Option<TreadleIsolationHints>Always present. Every field is a non-authoritative runner request.
triggers: Vec<TreadleTrigger>Events that request this check. At least one trigger is required.
supersede_older_runs: boolWhether a newer state of the same thread supersedes an in-flight run.
target_environment: Option<TreadleTargetEnvironment>Authoritative execution environment. Runners MUST execute against this exact platform-specific image digest and refuse incompatible platforms.
determinism_class: i32Required classification used when deciding whether an untrusted local verdict may supersede a queued run. Network isolation is not a substitute.
Implementations§
Source§impl TreadleCheck
impl TreadleCheck
Sourcepub fn class(&self) -> TreadleCheckClass
pub fn class(&self) -> TreadleCheckClass
Returns the enum value of class, or the default if the field is set to an invalid enum value.
Sourcepub fn set_class(&mut self, value: TreadleCheckClass)
pub fn set_class(&mut self, value: TreadleCheckClass)
Sets class to the provided enum value.
Sourcepub fn determinism_class(&self) -> TreadleDeterminismClass
pub fn determinism_class(&self) -> TreadleDeterminismClass
Returns the enum value of determinism_class, or the default if the field is set to an invalid enum value.
Sourcepub fn set_determinism_class(&mut self, value: TreadleDeterminismClass)
pub fn set_determinism_class(&mut self, value: TreadleDeterminismClass)
Sets determinism_class to the provided enum value.
Trait Implementations§
Source§impl Clone for TreadleCheck
impl Clone for TreadleCheck
Source§fn clone(&self) -> TreadleCheck
fn clone(&self) -> TreadleCheck
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TreadleCheck
impl Debug for TreadleCheck
Source§impl Default for TreadleCheck
impl Default for TreadleCheck
Source§impl Message for TreadleCheck
impl Message for TreadleCheck
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.