pub struct ApiRunStore { /* private fields */ }Expand description
RunStore implementation that communicates with the API server via HTTP.
Implementations§
Trait Implementations§
Source§impl ApiKeyStore for ApiRunStore
impl ApiKeyStore for ApiRunStore
Source§fn create_api_key(
&self,
_req: NewApiKey,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, StoreError>> + Send + '_>>
fn create_api_key( &self, _req: NewApiKey, ) -> Pin<Box<dyn Future<Output = Result<ApiKey, StoreError>> + Send + '_>>
Create a new API key.
Source§fn find_api_key_by_prefix(
&self,
_prefix: &str,
) -> Pin<Box<dyn Future<Output = Result<Option<ApiKey>, StoreError>> + Send + '_>>
fn find_api_key_by_prefix( &self, _prefix: &str, ) -> Pin<Box<dyn Future<Output = Result<Option<ApiKey>, StoreError>> + Send + '_>>
Find an API key by its prefix (first 8 chars). Read more
Source§fn find_api_key_by_id(
&self,
_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<ApiKey>, StoreError>> + Send + '_>>
fn find_api_key_by_id( &self, _id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<ApiKey>, StoreError>> + Send + '_>>
Find an API key by ID.
Source§fn list_api_keys_by_user(
&self,
_user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<ApiKey>, StoreError>> + Send + '_>>
fn list_api_keys_by_user( &self, _user_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<ApiKey>, StoreError>> + Send + '_>>
List all API keys for a user.
Source§fn update_api_key(
&self,
_id: Uuid,
_update: ApiKeyUpdate,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn update_api_key( &self, _id: Uuid, _update: ApiKeyUpdate, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
Update an API key.
Source§impl ArtifactStore for ApiRunStore
impl ArtifactStore for ApiRunStore
Source§fn create_artifact(
&self,
artifact: NewArtifact,
) -> Pin<Box<dyn Future<Output = Result<Artifact, StoreError>> + Send + '_>>
fn create_artifact( &self, artifact: NewArtifact, ) -> Pin<Box<dyn Future<Output = Result<Artifact, StoreError>> + Send + '_>>
Record a new artifact. Read more
Source§fn get_artifact(
&self,
_step_id: Uuid,
_name: &str,
) -> Pin<Box<dyn Future<Output = Result<Option<Artifact>, StoreError>> + Send + '_>>
fn get_artifact( &self, _step_id: Uuid, _name: &str, ) -> Pin<Box<dyn Future<Output = Result<Option<Artifact>, StoreError>> + Send + '_>>
Look up one artifact of a step by name. Read more
Source§fn list_artifacts_for_run(
&self,
run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Artifact>, StoreError>> + Send + '_>>
fn list_artifacts_for_run( &self, run_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<Artifact>, StoreError>> + Send + '_>>
List every artifact of a run, across all steps and attempts. Read more
Source§fn find_artifact_for_input(
&self,
lookup: ArtifactLookup,
) -> Pin<Box<dyn Future<Output = Result<Option<Artifact>, StoreError>> + Send + '_>>
fn find_artifact_for_input( &self, lookup: ArtifactLookup, ) -> Pin<Box<dyn Future<Output = Result<Option<Artifact>, StoreError>> + Send + '_>>
Resolve the artifact a step declared as an input. Read more
Source§impl AuditLogStore for ApiRunStore
impl AuditLogStore for ApiRunStore
Source§fn append_audit_log(
&self,
_entry: NewAuditLogEntry,
) -> Pin<Box<dyn Future<Output = Result<AuditLogEntry, StoreError>> + Send + '_>>
fn append_audit_log( &self, _entry: NewAuditLogEntry, ) -> Pin<Box<dyn Future<Output = Result<AuditLogEntry, StoreError>> + Send + '_>>
Persist a new audit log entry. Read more
Source§fn list_audit_logs(
&self,
_filter: AuditLogFilter,
_page: u32,
_per_page: u32,
) -> Pin<Box<dyn Future<Output = Result<Page<AuditLogEntry>, StoreError>> + Send + '_>>
fn list_audit_logs( &self, _filter: AuditLogFilter, _page: u32, _per_page: u32, ) -> Pin<Box<dyn Future<Output = Result<Page<AuditLogEntry>, StoreError>> + Send + '_>>
List audit log entries matching the given filter, with pagination. Read more
Source§impl Clone for ApiRunStore
impl Clone for ApiRunStore
Source§fn clone(&self) -> ApiRunStore
fn clone(&self) -> ApiRunStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiRunStore
impl Debug for ApiRunStore
Source§impl LogStore for ApiRunStore
impl LogStore for ApiRunStore
Source§fn append_logs(
&self,
_entries: NewLogEntries,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn append_logs( &self, _entries: NewLogEntries, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
Persist a batch of log lines. Read more
Source§impl RunStore for ApiRunStore
impl RunStore for ApiRunStore
Source§fn create_run(
&self,
req: NewRun,
) -> Pin<Box<dyn Future<Output = Result<RunCreation, StoreError>> + Send + '_>>
fn create_run( &self, req: NewRun, ) -> Pin<Box<dyn Future<Output = Result<RunCreation, StoreError>> + Send + '_>>
Create a new run in
Pending status. Read moreSource§fn find_run_by_idempotency_key(
&self,
_key: &str,
) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + '_>>
fn find_run_by_idempotency_key( &self, _key: &str, ) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + '_>>
Look up the run bound to an idempotency key. Read more
Source§fn get_run(
&self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + '_>>
fn get_run( &self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + '_>>
Get a run by ID. Returns
None if not found.Source§fn list_runs(
&self,
_filter: RunFilter,
_page: u32,
_per_page: u32,
) -> Pin<Box<dyn Future<Output = Result<Page<Run>, StoreError>> + Send + '_>>
fn list_runs( &self, _filter: RunFilter, _page: u32, _per_page: u32, ) -> Pin<Box<dyn Future<Output = Result<Page<Run>, StoreError>> + Send + '_>>
List runs matching the given filter, with pagination. Read more
Source§fn update_run_status(
&self,
id: Uuid,
new_status: RunStatus,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn update_run_status( &self, id: Uuid, new_status: RunStatus, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
Update a run’s status with FSM validation. Read more
Source§fn update_run(
&self,
id: Uuid,
update: RunUpdate,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn update_run( &self, id: Uuid, update: RunUpdate, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
Apply a partial update to a run. Read more
Source§fn pick_next_pending(
&self,
lease: Option<LeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + '_>>
fn pick_next_pending( &self, lease: Option<LeaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + '_>>
Atomically pick the oldest pending run and transition it to
Running. Read moreSource§fn renew_lease(
&self,
id: Uuid,
lease: LeaseRequest,
) -> Pin<Box<dyn Future<Output = Result<DateTime<Utc>, StoreError>> + Send + '_>>
fn renew_lease( &self, id: Uuid, lease: LeaseRequest, ) -> Pin<Box<dyn Future<Output = Result<DateTime<Utc>, StoreError>> + Send + '_>>
Extend the worker lease on a run and return the new expiry. Read more
Source§fn reap_expired_leases(
&self,
_limit: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReapedRun>, StoreError>> + Send + '_>>
fn reap_expired_leases( &self, _limit: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<ReapedRun>, StoreError>> + Send + '_>>
Recover runs whose worker lease expired, at most
limit per call. Read moreSource§fn list_purgeable_runs(
&self,
_policy: &PurgePolicy,
_batch_size: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<PurgeableRun>, StoreError>> + Send + '_>>
fn list_purgeable_runs( &self, _policy: &PurgePolicy, _batch_size: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<PurgeableRun>, StoreError>> + Send + '_>>
List runs eligible for purging according to the given policy. Read more
Source§fn delete_run(
&self,
_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, StoreError>> + Send + '_>>
fn delete_run( &self, _id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, StoreError>> + Send + '_>>
Delete a run and all its associated data (steps, step dependencies). Read more
Source§fn create_step(
&self,
req: NewStep,
) -> Pin<Box<dyn Future<Output = Result<Step, StoreError>> + Send + '_>>
fn create_step( &self, req: NewStep, ) -> Pin<Box<dyn Future<Output = Result<Step, StoreError>> + Send + '_>>
Create a new step for a run. Read more
Source§fn update_step(
&self,
id: Uuid,
update: StepUpdate,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn update_step( &self, id: Uuid, update: StepUpdate, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
Apply a partial update to a step after execution. Read more
Source§fn get_step(
&self,
_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Step>, StoreError>> + Send + '_>>
fn get_step( &self, _id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Step>, StoreError>> + Send + '_>>
Get a single step by ID. Returns
None if not found.Source§fn list_steps(
&self,
run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Step>, StoreError>> + Send + '_>>
fn list_steps( &self, run_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<Step>, StoreError>> + Send + '_>>
List all steps for a run, ordered by position ascending.
Source§fn get_stats(
&self,
_filter: RunFilter,
) -> Pin<Box<dyn Future<Output = Result<RunStats, StoreError>> + Send + '_>>
fn get_stats( &self, _filter: RunFilter, ) -> Pin<Box<dyn Future<Output = Result<RunStats, StoreError>> + Send + '_>>
Get aggregated statistics across runs matching the filter. Read more
Source§fn create_step_dependencies(
&self,
deps: Vec<NewStepDependency>,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn create_step_dependencies( &self, deps: Vec<NewStepDependency>, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
Create step dependency edges in batch. Read more
Source§fn list_step_dependencies(
&self,
_run_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<StepDependency>, StoreError>> + Send + '_>>
fn list_step_dependencies( &self, _run_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<StepDependency>, StoreError>> + Send + '_>>
List all step dependencies for a given run. Read more
Source§impl SecretStore for ApiRunStore
impl SecretStore for ApiRunStore
Source§fn get_secret(
&self,
key: &str,
) -> Pin<Box<dyn Future<Output = Result<Option<Secret>, StoreError>> + Send + '_>>
fn get_secret( &self, key: &str, ) -> Pin<Box<dyn Future<Output = Result<Option<Secret>, StoreError>> + Send + '_>>
Retrieve a secret by key. Read more
Source§fn set_secret(
&self,
_key: &str,
_value: &str,
) -> Pin<Box<dyn Future<Output = Result<Secret, StoreError>> + Send + '_>>
fn set_secret( &self, _key: &str, _value: &str, ) -> Pin<Box<dyn Future<Output = Result<Secret, StoreError>> + Send + '_>>
Create or update a secret. Read more
Source§fn delete_secret(
&self,
_key: &str,
) -> Pin<Box<dyn Future<Output = Result<bool, StoreError>> + Send + '_>>
fn delete_secret( &self, _key: &str, ) -> Pin<Box<dyn Future<Output = Result<bool, StoreError>> + Send + '_>>
Delete a secret by key. Read more
Source§fn list_secret_keys(
&self,
_prefix: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, StoreError>> + Send + '_>>
fn list_secret_keys( &self, _prefix: &str, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, StoreError>> + Send + '_>>
List all secret keys matching a prefix. Read more
Source§fn list_secrets(
&self,
_prefix: &str,
_page: u32,
_per_page: u32,
) -> Pin<Box<dyn Future<Output = Result<Page<SecretMetadata>, StoreError>> + Send + '_>>
fn list_secrets( &self, _prefix: &str, _page: u32, _per_page: u32, ) -> Pin<Box<dyn Future<Output = Result<Page<SecretMetadata>, StoreError>> + Send + '_>>
List secret metadata matching a prefix, with pagination. Read more
Source§fn secret_key_status(
&self,
) -> Pin<Box<dyn Future<Output = Result<KeyVersionStatus, StoreError>> + Send + '_>>
fn secret_key_status( &self, ) -> Pin<Box<dyn Future<Output = Result<KeyVersionStatus, StoreError>> + Send + '_>>
Report how the configured key ring lines up with the stored secrets. Read more
Source§fn rotate_secrets(
&self,
_request: RotationRequest,
) -> Pin<Box<dyn Future<Output = Result<RotationBatch, StoreError>> + Send + '_>>
fn rotate_secrets( &self, _request: RotationRequest, ) -> Pin<Box<dyn Future<Output = Result<RotationBatch, StoreError>> + Send + '_>>
Re-encrypt one batch of secrets towards the target key version. Read more
Source§impl UserStore for ApiRunStore
impl UserStore for ApiRunStore
Source§fn create_user(
&self,
_req: NewUser,
) -> Pin<Box<dyn Future<Output = Result<User, StoreError>> + Send + '_>>
fn create_user( &self, _req: NewUser, ) -> Pin<Box<dyn Future<Output = Result<User, StoreError>> + Send + '_>>
Create a new user. Read more
Source§fn find_user_by_email(
&self,
_email: &str,
) -> Pin<Box<dyn Future<Output = Result<Option<User>, StoreError>> + Send + '_>>
fn find_user_by_email( &self, _email: &str, ) -> Pin<Box<dyn Future<Output = Result<Option<User>, StoreError>> + Send + '_>>
Find a user by email. Returns
None if not found.Source§fn find_user_by_id(
&self,
_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<User>, StoreError>> + Send + '_>>
fn find_user_by_id( &self, _id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<User>, StoreError>> + Send + '_>>
Find a user by ID. Returns
None if not found.Source§fn count_users(
&self,
) -> Pin<Box<dyn Future<Output = Result<u64, StoreError>> + Send + '_>>
fn count_users( &self, ) -> Pin<Box<dyn Future<Output = Result<u64, StoreError>> + Send + '_>>
Count all users in the store.
Source§fn list_users(
&self,
_page: u32,
_per_page: u32,
) -> Pin<Box<dyn Future<Output = Result<Page<User>, StoreError>> + Send + '_>>
fn list_users( &self, _page: u32, _per_page: u32, ) -> Pin<Box<dyn Future<Output = Result<Page<User>, StoreError>> + Send + '_>>
List users with pagination, ordered by
created_at descending.Auto Trait Implementations§
impl !RefUnwindSafe for ApiRunStore
impl !UnwindSafe for ApiRunStore
impl Freeze for ApiRunStore
impl Send for ApiRunStore
impl Sync for ApiRunStore
impl Unpin for ApiRunStore
impl UnsafeUnpin for ApiRunStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RunCreator for T
impl<T> RunCreator for T
Source§fn create_run(
&self,
req: NewRun,
) -> Pin<Box<dyn Future<Output = Result<RunCreation, EngineError>> + Send + '_>>
fn create_run( &self, req: NewRun, ) -> Pin<Box<dyn Future<Output = Result<RunCreation, EngineError>> + Send + '_>>
Create a new workflow run. Read more