resourcevalidator

package module
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: Apache-2.0 Imports: 20 Imported by: 1

README

resource-validator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSchema

func ValidateSchema(f cmdutil.Factory, obj []byte) error

Types

type Validator

type Validator interface {
	Validate(ctx context.Context, obj runtime.Object) field.ErrorList
	ValidateTypeMeta(ctx context.Context, obj *unstructured.Unstructured) field.ErrorList
}

func New

func New(namespaceScoped bool, kind schema.GroupVersionKind, validationSchema *apiextensionsv1.CustomResourceValidation) (Validator, error)

Jump to

Keyboard shortcuts

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