multiplevalidations

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

This is a test package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterValidations

func RegisterValidations(scheme *testscheme.Scheme) error

RegisterValidations adds validation functions to the given scheme. Public to allow building arbitrary schemes.

func Validate_Struct

func Validate_Struct(ctx context.Context, op operation.Operation, fldPath *field.Path, obj, oldObj *Struct) (errs field.ErrorList)

Types

type Struct

type Struct struct {
	TypeMeta int

	// +k8s:validateFalse="field Struct.ListField #1"
	// +k8s:validateFalse="field Struct.ListField #2"
	// +k8s:eachVal=+k8s:validateFalse="field Struct.ListField[*] #1"
	// +k8s:eachVal=+k8s:validateFalse="field Struct.ListField[*] #2"
	ListField []string `json:"listField"`

	UnvalidatedListField []string `json:"UnvalidatedListField"`
}

+k8s:validateFalse="type Struct #1" +k8s:validateFalse="type Struct #2"

Jump to

Keyboard shortcuts

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