maps

package
v0.35.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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_M1

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

Validate_M1 validates an instance of M1 according to declarative validation rules in the API schema.

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.

Types

type M1

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

type T1

type T1 struct {
	MSM1 map[string]M1 `json:"msm1"`
}

Jump to

Keyboard shortcuts

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