typedefs

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 8 Imported by: 2

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_E1

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

func Validate_E2

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

func Validate_E3

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

func Validate_E4

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

func Validate_T1

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

func Validate_T2

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

Types

type E1

type E1 string

+k8s:validateFalse="type E1"

type E2

type E2 int

+k8s:validateFalse="type E2"

type E3

type E3 E1

+k8s:validateFalse="type E3"

type E4

type E4 T2

+k8s:validateFalse="type E4"

type T1

type T1 struct {
	TypeMeta int

	// +k8s:validateFalse="field T1.E1"
	E1 E1 `json:"e1"`
	// +k8s:validateFalse="field T1.PE1"
	PE1 *E1 `json:"pe1"`

	// +k8s:validateFalse="field T1.E2"
	E2 E2 `json:"e2"`
	// +k8s:validateFalse="field T1.PE2"
	PE2 *E2 `json:"pe2"`

	// +k8s:validateFalse="field T1.E3"
	E3 E3 `json:"e3"`
	// +k8s:validateFalse="field T1.PE3"
	PE3 *E3 `json:"pe3"`

	// +k8s:validateFalse="field T1.E4"
	E4 E4 `json:"e4"`
	// +k8s:validateFalse="field T1.PE4"
	PE4 *E4 `json:"pe4"`

	// +k8s:validateFalse="field T1.T2"
	T2 T2 `json:"t2"`
	// +k8s:validateFalse="field T1.PT2"
	PT2 *T2 `json:"pt2"`
}

+k8s:validateFalse="type T1"

type T2

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

+k8s:validateFalse="type T2"

Jump to

Keyboard shortcuts

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