mapofprimitive

package
v0.33.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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_StringType

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

func Validate_Struct

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

Types

type StringType

type StringType string

+k8s:validateFalse="type StringType"

type Struct

type Struct struct {
	TypeMeta int

	// +k8s:validateFalse="field Struct.MapField"
	// +k8s:eachVal=+k8s:validateFalse="field Struct.MapField[*]"
	MapField map[string]string `json:"mapField"`

	// +k8s:validateFalse="field Struct.MapPtrField"
	// +k8s:eachVal=+k8s:validateFalse="field Struct.MapPtrField[*]"
	MapPtrField map[string]*string `json:"mapPtrField"`

	// +k8s:validateFalse="field Struct.MapTypedefField"
	// +k8s:eachVal=+k8s:validateFalse="field Struct.MapTypedefField[*]"
	MapTypedefField map[string]StringType `json:"mapTypedefField"`

	// +k8s:validateFalse="field Struct.MapTypedefPtrField"
	// +k8s:eachVal=+k8s:validateFalse="field Struct.MapTypedefPtrField[*]"
	MapTypedefPtrField map[string]*StringType `json:"mapTypedefPtrField"`

	UnvalidatedMapField map[string]string `json:"UnvalidatedMapField"`
}

+k8s:validateFalse="type Struct"

Jump to

Keyboard shortcuts

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