Skip to main content

workspace_session

Function workspace_session 

Source
pub fn workspace_session(
    label: &str,
    repository: &str,
    revision: &str,
    document: Option<Vec<u8>>,
) -> Session
Expand description

Describes a session whose /work tree is uploaded on the first attach (see Client::complete_first_attach): label identifies the workspace (the sandbox API uses /chainguard-sandbox/<name>); repository and revision are optional metadata; document is the environment document (YAML), None using DEFAULT_ENVIRONMENT with provenance SYNTHESIZED. The idle policy is AUTO_HOLD, chainctl’s default.