Harbor API Version: v1.10.0, v2.0 is coming soon.
Harbor API in Rust.
[dependencies]
harbor_rs = "0.1.3"
根据时间间隔清理 Harbor 上的镜像 Tag
harbor_base_api: "https://example.com/api"
harbor_username: "admin"
harbor_password": "admin"
clean_interval": 20 # 清理 20 天前构建的镜像
repos:
- "test/image1"
- "test/image2"