kubeconform/pkg/registry/registry.go
2020-06-04 00:51:36 +02:00

15 lines
398 B
Go

package registry
type Manifest struct {
Kind, Version string
}
// Registry is an interface that should be implemented by any source of Kubernetes schemas
type Registry interface {
DownloadSchema(resourceKind, resourceAPIVersion, k8sVersion string) ([]byte, error)
}
// Retryable indicates whether an error is a temporary or a permanent failure
type Retryable interface {
IsRetryable() bool
}