validator

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NPValidator

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

NPValidator is a validator structure used to validate CNP.

func NewNPValidator

func NewNPValidator() (*NPValidator, error)

func (*NPValidator) ValidateCCNP

func (n *NPValidator) ValidateCCNP(ccnp *unstructured.Unstructured) error

ValidateCCNP validates the given CCNP accordingly the CCNP validation schema.

func (*NPValidator) ValidateCNP

func (n *NPValidator) ValidateCNP(cnp *unstructured.Unstructured) error

ValidateCNP validates the given CNP accordingly the CNP validation schema.

Jump to

Keyboard shortcuts

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