refactor: per-type resources + simplified classification model
Resources renamed from artifactapi_remote to per-type: - artifactapi_remote_generic - artifactapi_remote_docker (with ban_tags) - artifactapi_remote_helm - artifactapi_remote_pypi - artifactapi_remote_npm - artifactapi_remote_rpm - artifactapi_remote_alpine - artifactapi_remote_puppet - artifactapi_remote_terraform (with releases_remote) - artifactapi_remote_goproxy Classification simplified: - patterns: paths to proxy (empty = all, acts as allowlist) - blocklist: paths to deny (checked first) - mutable_patterns: override provider auto-classification - immutable_patterns: override provider auto-classification - Provider handles mutability automatically per package type
This commit is contained in:
@@ -10,10 +10,10 @@ type remoteAPI struct {
|
||||
ImmutableTTL int64 `json:"immutable_ttl"`
|
||||
MutableTTL int64 `json:"mutable_ttl"`
|
||||
CheckMutable bool `json:"check_mutable"`
|
||||
ImmutablePatterns []string `json:"immutable_patterns"`
|
||||
MutablePatterns []string `json:"mutable_patterns"`
|
||||
Allowlist []string `json:"allowlist"`
|
||||
Patterns []string `json:"patterns"`
|
||||
Blocklist []string `json:"blocklist"`
|
||||
MutablePatterns []string `json:"mutable_patterns"`
|
||||
ImmutablePatterns []string `json:"immutable_patterns"`
|
||||
BanTagsEnabled bool `json:"ban_tags_enabled"`
|
||||
BanTags []string `json:"ban_tags"`
|
||||
QuarantineEnabled bool `json:"quarantine_enabled"`
|
||||
|
||||
Reference in New Issue
Block a user