Expand description
Generated protobuf types for the current Task API.
This module includes messages, enums, crate::grpc::wire::TaskServiceClient, and crate::grpc::wire::TaskServiceServer.
§Example
use solti_api::grpc::wire::TaskServiceClient;
async fn connect() -> Result<(), solti_api::tonic::transport::Error> {
let client = TaskServiceClient::connect("http://127.0.0.1:50052").await?;
let _ = client;
Ok(())
}Modules§
- stream_
task_ logs_ response - Nested message and enum types in
StreamTaskLogsResponse. - subprocess_
mode - Nested message and enum types in
SubprocessMode. - task_
service_ client - Generated client implementations.
- task_
service_ server - Generated server implementations.
- task_
workload - Nested message and enum types in
TaskWorkload.
Structs§
- Apply
Task Request - ApplyTask desired-state input.
- Apply
Task Response - ApplyTask output.
- Backoff
Policy - Exponential backoff between restart attempts.
- Command
Mode - Run a command directly (resolved via PATH).
- Container
Command - Explicit OCI container entrypoint override.
- Container
Task - Run an OCI container.
- Create
Task Request - CreateTask desired-state input.
- Create
Task Response - CreateTask output.
- Delete
Task Request - DeleteTask input.
- Delete
Task Response - DeleteTask output. Empty on success.
- Extension
Task - Application-provided workload configuration.
- GetTask
Request - GetTask input.
- GetTask
Response - GetTask output.
- KeyValue
- One environment variable.
- Label
Selector - Kubernetes-style selector for any labeled object.
- Lagged
- The subscriber fell behind and the server dropped events.
- List
Task Runs Request - ListTaskRuns input.
- List
Task Runs Response - ListTaskRuns output.
- List
Tasks Request - ListTasks input. Filters are ANDed; omitted filters match all. A non-empty continue token resumes the previous snapshot. Filters must be repeated unchanged.
- List
Tasks Response - ListTasks output.
- Object
Meta - Identity, versioning and timestamps of a stored object.
- Output
Chunk - One captured line of process output.
- RawExtension
- Workload implemented by an application-provided runner.
Mirrors Kubernetes RawExtension:
rawis one UTF-8 JSON value. - RunFinished
- The current attempt ended. Stop accumulating its chunks.
- RunStarted
- A new attempt started.
- Script
Mode - Run a script through an interpreter.
- Selector
Requirement - One set-based selector requirement.
- Status
Cause - One readable cause attached to an API error.
- Stream
Task Logs Request - StreamTaskLogs input.
- Stream
Task Logs Response - One StreamTaskLogs event: exactly one field is set.
- Subprocess
Mode - Typed subprocess execution strategy.
- Subprocess
Task - Run an external OS process.
- Task
- Full Kubernetes-shaped Task resource.
- Task
Condition - One observed condition for a Task resource.
- Task
Manifest - Desired Task resource. Server-owned identity and status are deliberately absent.
- Task
Manifest Meta - User-owned metadata accepted on create and apply.
- Task
RunInfo - History record for one finished or running attempt.
- Task
Service Client - Task management API exposed by the agent.
- Task
Service Server - Task management API exposed by the agent.
- Task
Spec - Desired state of a Task resource.
- Task
Status - Observed controller and execution status of a Task.
- Task
Workload - Versioned desired workload handled by a registered runner. Embedded workloads intentionally have no public representation.
- Wasm
Task - Run a WebAssembly module.
- Watch
Tasks Request - WatchTasks input. Filters are ANDed; omitted filters match all.
- Watch
Tasks Response - One Task collection change.
- Write
Conflict Details - Structured details carried by an Aborted gRPC status for a write conflict.
- Write
Preconditions - Optional identity and version checks for apply and delete.
Enums§
- Admission
Policy - What to do when the target slot is already busy.
- Condition
Status - Kubernetes-compatible three-valued condition status.
- Jitter
Policy - Randomness added to each backoff delay to avoid retry storms. “base” is the delay computed by BackoffPolicy before jitter.
- Output
Stream Kind - Source stream of a captured output line.
- Restart
Policy - When to restart a task after an attempt ends.
- Selector
Operator - Comparison operator for one selector requirement.
- Task
Phase - Phase of a task’s current attempt.
- Task
Watch Event Type - Task collection watch event type.