Skip to main content

Crate fakecloud_ecr

Crate fakecloud_ecr 

Source

Re-exports§

pub use lifecycle_ticker::LifecycleTicker;
pub use state::EcrSnapshot;
pub use state::EcrState;
pub use state::Image;
pub use state::PullThroughCacheRule;
pub use state::ReplicationConfiguration;
pub use state::ReplicationDestination;
pub use state::ReplicationRule;
pub use state::Repository;
pub use state::RepositoryFilter;
pub use state::SharedEcrState;
pub use state::ECR_SNAPSHOT_SCHEMA_VERSION;

Modules§

lifecycle_ticker
Periodic re-evaluation of repository lifecycle policies.
oci
OCI Distribution v2 HTTP handlers.
scanner
Real image vulnerability scanning via the optional Trivy CLI.
signing
Real OCI image signature verification via cosign (keyed mode).
state

Structs§

EcrService

Functions§

evaluate_lifecycle_policy
Apply lifecycle-policy rules to this repo’s stored images and return the digests that should be pruned. Covers the four AWS selection dimensions in use today: tagStatus (tagged/untagged/any), tagPrefixList, tagPatternList (wildcard *), and countType (imageCountMoreThan or sinceImagePushed with countUnit=days). Rules run in ascending rulePriority order; later rules can’t re-prune images earlier rules already marked.