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

Interface Validator

pkg/validator/validator.go:53–57  ·  view source on GitHub ↗

Validator exposes multiple methods to validate your Kubernetes resources.

Source from the content-addressed store, hash-verified

51
52// Validator exposes multiple methods to validate your Kubernetes resources.
53type Validator interface {
54 ValidateResource(res resource.Resource) Result
55 Validate(filename string, r io.ReadCloser) []Result
56 ValidateWithContext(ctx context.Context, filename string, r io.ReadCloser) []Result
57}
58
59// Opts contains a set of options for the validator.
60type Opts struct {

Callers 3

kubeconformFunction · 0.95
ValidateResourceMethod · 0.65
mainFunction · 0.65

Implementers 1

vpkg/validator/validator.go

Calls

no outgoing calls

Tested by

no test coverage detected