Skip to main content

Crate fakecloud_ecr

Crate fakecloud_ecr 

Source

Re-exports§

pub use lifecycle_ticker::LifecycleTicker;

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).

Structs§

EcrService
EcrSnapshot
Top-level persisted ECR snapshot. The shape mirrors the convention used by other multi-account services (Kinesis, ElastiCache) so the main.rs loader can use the same branching pattern.
EcrState
Image
PullThroughCacheRule
RegistryScanningConfiguration
RegistryScanningRule
ReplicationConfiguration
ReplicationDestination
ReplicationRule
Repository
RepositoryFilter

Constants§

ECR_SNAPSHOT_SCHEMA_VERSION

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.

Type Aliases§

SharedEcrState