Skip to main content

load_package

Function load_package 

Source
pub async fn load_package(
    state: &ServerState,
    caller: &CallerIdentity,
    transport: &'static str,
    archive: Vec<u8>,
) -> Result<ProtoLoadPackageResponse, DeployApiError>
Expand description

Handles a deploy archive upload (LoadPackage / POST /deploy/packages).

Idempotency is specified behavior: re-sending a resident archive succeeds with freshly_loaded = false, and route_changed reports whether the call re-pointed routing.

ยงErrors

Returns DeployApiError for authorization denials, drain/shutdown refusals, oversized or malformed archives, the manifest-mismatch tripwire, and engine failures.