validation

package
v0.1.773-DAT-3209-sema... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidFile

type InvalidFile struct {
	Path             string
	ValidationErrors []error
}

type InvalidK8sFile

type InvalidK8sFile InvalidFile

type InvalidK8sSchemaError

type InvalidK8sSchemaError struct {
	ErrorMessage string
}

func (*InvalidK8sSchemaError) Error

func (e *InvalidK8sSchemaError) Error() string

type InvalidYamlError

type InvalidYamlError struct {
	ErrorMessage string
}

func (*InvalidYamlError) Error

func (e *InvalidYamlError) Error() string

type InvalidYamlFile

type InvalidYamlFile InvalidFile

type K8sValidator

type K8sValidator struct {
	// contains filtered or unexported fields
}

func New

func New() *K8sValidator

func (*K8sValidator) InitClient

func (val *K8sValidator) InitClient(k8sVersion string, ignoreMissingSchemas bool)

func (*K8sValidator) ValidateResources

func (val *K8sValidator) ValidateResources(filesConfigurationsChan chan *extractor.FileConfigurations, concurrency int) (chan *extractor.FileConfigurations, chan *InvalidK8sFile)

type ValidationClient

type ValidationClient interface {
	Validate(filename string, r io.ReadCloser) []kubeconformValidator.Result
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL