elidenovalidations

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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_HasFieldVal

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

func Validate_HasTypeVal

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

func Validate_T1

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

Types

type HasFieldVal

type HasFieldVal struct {
	// +k8s:validateFalse="field HasFieldVal.S"
	S string `json:"s"`
}

Note: no type validation.

type HasFieldValNotLinked

type HasFieldValNotLinked struct {
	// +k8s:validateFalse="field HasFieldValNotLinked.S"
	S string `json:"s"`
}

Note: no type validation.

type HasNoVal

type HasNoVal struct {
	// Note: no field validation.
	S string `json:"s"`
}

Note: no type validation.

type HasNoValNotLinked

type HasNoValNotLinked struct {
	// Note: no field validation.
	S string `json:"s"`
}

Note: no type validation.

type HasTypeVal

type HasTypeVal struct {
	// Note: no field validation.
	S string `json:"s"`
}

+k8s:validateFalse="type HasTypeVal"

type HasTypeValNotLinked

type HasTypeValNotLinked struct {
	// Note: no field validation.
	S string `json:"s"`
}

+k8s:validateFalse="type HasTypeValNotLinked"

type T1

type T1 struct {
	TypeMeta int

	HasTypeVal HasTypeVal `json:"hasTypeVal"`

	HasFieldVal HasFieldVal `json:"hasFieldVal"`

	HasNoVal HasNoVal `json:"hasNoVal"`

	// +k8s:validateFalse="field T1.HasNoValFieldVal"
	HasNoValFieldVal HasNoVal `json:"hasNoValFieldVal"`
}

Jump to

Keyboard shortcuts

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