maps

package
v0.35.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 8 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_T1

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

Validate_T1 validates an instance of T1 according to declarative validation rules in the API schema.

func Validate_T2

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

Validate_T2 validates an instance of T2 according to declarative validation rules in the API schema.

func Validate_T3

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

Validate_T3 validates an instance of T3 according to declarative validation rules in the API schema.

func Validate_T4

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

Validate_T4 validates an instance of T4 according to declarative validation rules in the API schema.

Types

type T1

type T1 struct {
	T2 T2 `json:"t2"`
	T3 T3 `json:"t3"`
}

type T2

type T2 struct {
	MT1 map[string]T1 `json:"mt1"`
}

type T3

type T3 struct {
	T4 T4 `json:"t4"`
}

+k8s:validateFalse="type T3"

type T4

type T4 struct {
	MT3 map[string]T3 `json:"mt3"`
}

Jump to

Keyboard shortcuts

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