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.
Types ¶
type T1 ¶
type T1 struct {
TypeMeta int
// +k8s:validateTrue="field T1.PrimitivesT1"
PrimitivesT1 primitives.T1 `json:"primitivest1"`
// +k8s:validateTrue="field T1.PrimitivesT1Ptr"
PrimitivesT1Ptr *primitives.T1 `json:"primitivest1Ptr"`
// +k8s:validateTrue="field T1.PrimitivesT2"
PrimitivesT2 primitives.T2 `json:"primitivest2"`
// +k8s:validateTrue="field T1.PrimitivesT2Ptr"
PrimitivesT2Ptr *primitives.T1 `json:"primitivest2Ptr"`
// +k8s:validateTrue="field T1.PrimitivesT3"
PrimitivesT3 primitives.T3 `json:"primitivest3"`
// +k8s:validateTrue="field T1.PrimitivesT3Ptr"
PrimitivesT3Ptr *primitives.T1 `json:"primitivest3Ptr"`
// +k8s:validateTrue="field T1.TypedefsE1"
TypedefsE1 typedefs.E1 `json:"typedefse1"`
// +k8s:validateTrue="field T1.TypedefsE1Ptr"
TypedefsE1Ptr *typedefs.E1 `json:"typedefse1Ptr"`
// +k8s:validateTrue="field T1.TypedefsE2"
TypedefsE2 typedefs.E2 `json:"typedefse2"`
// +k8s:validateTrue="field T1.TypedefsE2Ptr"
TypedefsE2Ptr *typedefs.E2 `json:"typedefse2Ptr"`
// +k8s:validateTrue="field T1.TypedefsE3"
TypedefsE3 typedefs.E3 `json:"typedefse3"`
// +k8s:validateTrue="field T1.TypedefsE3Ptr"
TypedefsE3Ptr *typedefs.E3 `json:"typedefse3Ptr"`
// +k8s:validateTrue="field T1.TypedefsE4"
TypedefsE4 typedefs.E4 `json:"typedefse4"`
// +k8s:validateTrue="field T1.TypedefsE4Ptr"
TypedefsE4Ptr *typedefs.E4 `json:"typedefse4Ptr"`
// +k8s:validateTrue="field T1.OtherString"
// +k8s:opaqueType
OtherString other.StringType `json:"otherString"`
// +k8s:validateTrue="field T1.OtherStringPtr"
// +k8s:opaqueType
OtherStringPtr *other.StringType `json:"otherStringPtr"`
// +k8s:validateTrue="field T1.OtherInt"
// +k8s:opaqueType
OtherInt other.IntType `json:"otherInt"`
// +k8s:validateTrue="field T1.OtherIntPtr"
// +k8s:opaqueType
OtherIntPtr *other.IntType `json:"otherIntPtr"`
// +k8s:validateTrue="field T1.OtherStruct"
// +k8s:opaqueType
OtherStruct other.StructType `json:"otherStruct"`
// +k8s:validateTrue="field T1.OtherStructPtr"
// +k8s:opaqueType
OtherStructPtr *other.StructType `json:"otherStructPtr"`
// +k8s:validateTrue="field T1.SliceOfOtherStruct"
// +k8s:eachVal=+k8s:validateTrue="field T1.SliceOfOtherStruct values"
// +k8s:eachVal=+k8s:opaqueType
SliceOfOtherStruct []other.StructType `json:"sliceOfOtherStruct"`
// +k8s:validateTrue="field T1.ListMapOfOtherStruct"
// +k8s:eachVal=+k8s:validateTrue="field T1.SliceOfOtherStruct values"
// +k8s:listType=map
// +k8s:listMapKey=stringField
// +k8s:eachVal=+k8s:opaqueType
ListMapOfOtherStruct []other.StructType `json:"listMapOfOtherStruct"`
// +k8s:validateTrue="field T1.MapOfOtherStringToOtherStruct"
// +k8s:eachKey=+k8s:validateTrue="field T1.MapOfOtherStringToOtherStruct keys"
// +k8s:eachVal=+k8s:validateTrue="field T1.MapOfOtherStringToOtherStruct values"
// +k8s:eachKey=+k8s:opaqueType
// +k8s:eachVal=+k8s:opaqueType
MapOfOtherStringToOtherStruct map[other.StringType]other.StructType `json:"mapOfOtherStringToOtherStruct"`
}
Click to show internal directories.
Click to hide internal directories.