wholepkg

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This is a test package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_StructPrimitives

func SetDefaults_StructPrimitives(obj *StructPrimitives)

func SetObjectDefaults_StructEverything

func SetObjectDefaults_StructEverything(in *StructEverything)

func SetObjectDefaults_StructPointer

func SetObjectDefaults_StructPointer(in *StructPointer)

func SetObjectDefaults_StructPrimitives

func SetObjectDefaults_StructPrimitives(in *StructPrimitives)

func SetObjectDefaults_StructSlices

func SetObjectDefaults_StructSlices(in *StructSlices)

func SetObjectDefaults_StructStructPrimitives

func SetObjectDefaults_StructStructPrimitives(in *StructStructPrimitives)

Types

type StructEverything

type StructEverything struct {
	empty.TypeMeta
	BoolPtrField       *bool
	IntPtrField        *int
	StringPtrField     *string
	FloatPtrField      *float64
	PointerStructField StructPointer
	SliceBoolField     []bool
	SliceByteField     []byte
	SliceIntField      []int
	SliceStringField   []string
	SliceFloatField    []float64
	SlicesStructField  StructSlices
}

Everything

func (*StructEverything) DeepCopy

func (in *StructEverything) DeepCopy() *StructEverything

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructEverything.

func (*StructEverything) DeepCopyInto

func (in *StructEverything) DeepCopyInto(out *StructEverything)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StructEverything) DeepCopyObject

func (in *StructEverything) DeepCopyObject() runtime.Object

func (*StructEverything) GetObjectKind

func (in *StructEverything) GetObjectKind() schema.ObjectKind

type StructPointer

type StructPointer struct {
	empty.TypeMeta
	PointerStructPrimitivesField             StructPrimitives
	PointerPointerStructPrimitivesField      *StructPrimitives
	PointerStructPrimitivesAliasField        StructPrimitivesAlias
	PointerPointerStructPrimitivesAliasField StructPrimitivesAlias
	PointerStructStructPrimitives            StructStructPrimitives
	PointerPointerStructStructPrimitives     *StructStructPrimitives
}

Pointer

func (*StructPointer) DeepCopy

func (in *StructPointer) DeepCopy() *StructPointer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructPointer.

func (*StructPointer) DeepCopyInto

func (in *StructPointer) DeepCopyInto(out *StructPointer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StructPointer) DeepCopyObject

func (in *StructPointer) DeepCopyObject() runtime.Object

func (*StructPointer) GetObjectKind

func (in *StructPointer) GetObjectKind() schema.ObjectKind

type StructPrimitives

type StructPrimitives struct {
	empty.TypeMeta
	BoolField   *bool
	IntField    *int
	StringField *string
	FloatField  *float64
}

Only primitives

func (*StructPrimitives) DeepCopy

func (in *StructPrimitives) DeepCopy() *StructPrimitives

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructPrimitives.

func (*StructPrimitives) DeepCopyInto

func (in *StructPrimitives) DeepCopyInto(out *StructPrimitives)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StructPrimitives) DeepCopyObject

func (in *StructPrimitives) DeepCopyObject() runtime.Object

func (*StructPrimitives) GetObjectKind

func (in *StructPrimitives) GetObjectKind() schema.ObjectKind

type StructPrimitivesAlias

type StructPrimitivesAlias StructPrimitives

func (*StructPrimitivesAlias) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructPrimitivesAlias.

func (*StructPrimitivesAlias) DeepCopyInto

func (in *StructPrimitivesAlias) DeepCopyInto(out *StructPrimitivesAlias)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StructSlices

type StructSlices struct {
	empty.TypeMeta
	SliceStructPrimitivesField             []StructPrimitives
	SlicePointerStructPrimitivesField      []*StructPrimitives
	SliceStructPrimitivesAliasField        []StructPrimitivesAlias
	SlicePointerStructPrimitivesAliasField []*StructPrimitivesAlias
	SliceStructStructPrimitives            []StructStructPrimitives
	SlicePointerStructStructPrimitives     []*StructStructPrimitives
}

Slices

func (*StructSlices) DeepCopy

func (in *StructSlices) DeepCopy() *StructSlices

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructSlices.

func (*StructSlices) DeepCopyInto

func (in *StructSlices) DeepCopyInto(out *StructSlices)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StructSlices) DeepCopyObject

func (in *StructSlices) DeepCopyObject() runtime.Object

func (*StructSlices) GetObjectKind

func (in *StructSlices) GetObjectKind() schema.ObjectKind

type StructStructPrimitives

type StructStructPrimitives struct {
	empty.TypeMeta
	StructField StructPrimitives
}

func (*StructStructPrimitives) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructStructPrimitives.

func (*StructStructPrimitives) DeepCopyInto

func (in *StructStructPrimitives) DeepCopyInto(out *StructStructPrimitives)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StructStructPrimitives) DeepCopyObject

func (in *StructStructPrimitives) DeepCopyObject() runtime.Object

func (*StructStructPrimitives) GetObjectKind

func (in *StructStructPrimitives) GetObjectKind() schema.ObjectKind

Jump to

Keyboard shortcuts

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