MCPcopy
hub / github.com/yannh/kubeconform / Registry

Interface Registry

pkg/registry/registry.go:18–20  ·  view source on GitHub ↗

Registry is an interface that should be implemented by any source of Kubernetes schemas

Source from the content-addressed store, hash-verified

16
17// Registry is an interface that should be implemented by any source of Kubernetes schemas
18type Registry interface {
19 DownloadSchema(resourceKind, resourceAPIVersion, k8sVersion string) (string, any, error)
20}
21
22func schemaPath(tpl, resourceKind, resourceAPIVersion, k8sVersion string, strict bool) (string, error) {
23 normalisedVersion := k8sVersion

Callers 1

downloadSchemaFunction · 0.65

Implementers 3

SchemaRegistrypkg/registry/http.go
LocalRegistrypkg/registry/local.go
mockRegistrypkg/validator/validator_test.go

Calls

no outgoing calls

Tested by

no test coverage detected