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::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§
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*), andcountType(imageCountMoreThanorsinceImagePushedwithcountUnit=days). Rules run in ascendingrulePriorityorder; later rules can’t re-prune images earlier rules already marked.