pub struct WorkspaceSummary {
pub name: String,
pub root: String,
pub sources: Vec<Source>,
pub health: WorkspaceHealth,
pub agent_count: usize,
pub config: RepoProviderConfig,
pub display_name: Option<String>,
pub source_specs: Vec<WorkspaceSourceSpec>,
pub providers: Vec<ProviderInfo>,
pub default_provider: Option<String>,
pub status: Option<WorkspaceStatusInfo>,
}Expand description
A workspace summary (no agents) for GET /api/workspaces.
The tail fields are populated by the k8s config plane (from Workspace CRs)
and skipped for the local backend, so local responses are byte-for-byte
unchanged.
Fields§
§name: StringRegistry name.
root: StringWorkspace root.
sources: Vec<Source>The source checkouts under the workspace root (1..N).
health: WorkspaceHealthCaliband health.
agent_count: usizeNumber of known agents.
config: RepoProviderConfigProvider/environment config for this workspace.
display_name: Option<String>Human-friendly label (k8s config plane).
source_specs: Vec<WorkspaceSourceSpec>The workspace’s configured source specs (k8s config plane).
sources above is the discovered view — name and path only — because
that is all a local checkout has. A k8s workspace’s sources come from a
Workspace CR and additionally carry the git remote and ref, and the
config editor needs those to round-trip an edit: without them an
operator editing a workspace would face blank remote fields and have to
retype every one from memory. Empty for the local backend, so local
responses are unchanged.
providers: Vec<ProviderInfo>Named providers agents can bind to (k8s config plane).
default_provider: Option<String>Provider bound when an agent requests none (k8s config plane).
status: Option<WorkspaceStatusInfo>Reconciliation status (k8s config plane); absent for local.
Trait Implementations§
Source§impl Clone for WorkspaceSummary
impl Clone for WorkspaceSummary
Source§fn clone(&self) -> WorkspaceSummary
fn clone(&self) -> WorkspaceSummary
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 WorkspaceSummary
impl Debug for WorkspaceSummary
Source§impl<'de> Deserialize<'de> for WorkspaceSummary
impl<'de> Deserialize<'de> for WorkspaceSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WorkspaceSummary
impl PartialEq for WorkspaceSummary
Source§fn eq(&self, other: &WorkspaceSummary) -> bool
fn eq(&self, other: &WorkspaceSummary) -> bool
self and other values to be equal, and is used by ==.