Skip to main content

inspect_object

Function inspect_object 

Source
pub async fn inspect_object(
    client: &Client,
    bucket: &str,
    key: &str,
    version_id: Option<String>,
    capability_cache: &CapabilityCache,
    profile_id: &ProfileId,
) -> Result<ObjectInspectorReport, AppError>
Expand description

Fetch all object properties in parallel and return an ObjectInspectorReport.

  • HeadObject is always called (hard failure if the key does not exist).
  • GetObjectTagging and GetObjectAcl are called in parallel.
  • Restore-status parsing reads the Restore header returned by HeadObject.
  • AccessDenied on tagging/ACL → SectionResult::Denied recorded in the capability cache so the UI can render disabled reasons.