mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 22:19:25 +00:00
15 lines
398 B
Go
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
|
|
}
|