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:
@@ -57,7 +57,16 @@ func (p *ArtifactAPIProvider) Configure(ctx context.Context, req provider.Config
|
||||
|
||||
func (p *ArtifactAPIProvider) Resources(_ context.Context) []func() resource.Resource {
|
||||
return []func() resource.Resource{
|
||||
NewRemoteResource,
|
||||
newRemoteResource("generic"),
|
||||
newRemoteResource("docker"),
|
||||
newRemoteResource("helm"),
|
||||
newRemoteResource("pypi"),
|
||||
newRemoteResource("npm"),
|
||||
newRemoteResource("rpm"),
|
||||
newRemoteResource("alpine"),
|
||||
newRemoteResource("puppet"),
|
||||
newRemoteResource("terraform"),
|
||||
newRemoteResource("goproxy"),
|
||||
NewVirtualResource,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user