Skip to content

feat: add image command invoking container engine#21

Merged
PrasanthYT merged 1 commit intomainfrom
feature/container-engine-skeleton
Mar 4, 2026
Merged

feat: add image command invoking container engine#21
PrasanthYT merged 1 commit intomainfrom
feature/container-engine-skeleton

Conversation

@PrasanthYT
Copy link
Contributor

Overview

This change introduces the initial container scanning engine structure and integrates it with the existing engine abstraction layer.

The goal is to establish the container scanning entry point without implementing scanning logic yet.

New scanr-container Crate

Added a new workspace crate:

crates/scanr-container

Dependencies:

  • scanr-engine
  • scanr-sca

This crate will host container-specific scanning logic.

Container Engine Structure

Implemented a new engine:

pub struct ContainerEngine {
    sca_engine: ScaEngine,
}

The engine implements the unified engine contract:

impl ScanEngine for ContainerEngine

At this stage it returns a placeholder ScanResult.

CLI Integration

Added new command:

scanr image <target>

Execution flow:

CLI
  → ContainerEngine
      → placeholder ScanResult

This establishes the container scanning entry point.

Behavior

  • Command compiles and executes
  • Placeholder result returned
  • No container scanning logic implemented yet
  • No changes to existing SCA functionality

Impact

This change establishes the structural foundation required for future container scanning features.

It prepares Scanr for multi-engine scanning support while keeping current functionality unchanged.

@PrasanthYT PrasanthYT merged commit 407cb53 into main Mar 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant