v1

package
v0.0.0-...-da1e380 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const GroupName = "example.apiserver.code-generator.k8s.io"

GroupName specifies the group name used to register the objects.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Deprecated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = metav1.GroupVersion{Group: GroupName, Version: "v1"}

GroupVersion specifies the group and the version used to register the objects.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Deprecated: use GroupVersion instead.

Functions

func Convert_example_ConversionCustomContainer_To_v1_ConversionCustomContainer

func Convert_example_ConversionCustomContainer_To_v1_ConversionCustomContainer(in *example.ConversionCustomContainer, out *ConversionCustomContainer, s conversion.Scope) error

Convert_example_ConversionCustomContainer_To_v1_ConversionCustomContainer is an autogenerated conversion function.

func Convert_example_ConversionCustom_To_v1_ConversionCustom

func Convert_example_ConversionCustom_To_v1_ConversionCustom(in *example.ConversionCustom, out *ConversionCustom, scope conversion.Scope) error

custom conversion function to exercise use of custom functions in slice/map/pointer fields

func Convert_example_ConversionPrivate_To_v1_ConversionPrivate

func Convert_example_ConversionPrivate_To_v1_ConversionPrivate(in *example.ConversionPrivate, out *ConversionPrivate, scope conversion.Scope) error

manually created final conversion function required because the object contains private fields that cannot be auto-converted

func Convert_example_Conversion_To_v1_Conversion

func Convert_example_Conversion_To_v1_Conversion(in *example.Conversion, out *Conversion, s conversion.Scope) error

Convert_example_Conversion_To_v1_Conversion is an autogenerated conversion function.

func Convert_example_MemoryDifferent_To_v1_MemoryDifferent

func Convert_example_MemoryDifferent_To_v1_MemoryDifferent(in *example.MemoryDifferent, out *MemoryDifferent, s conversion.Scope) error

Convert_example_MemoryDifferent_To_v1_MemoryDifferent is an autogenerated conversion function.

func Convert_example_MemoryIdentical_To_v1_MemoryIdentical

func Convert_example_MemoryIdentical_To_v1_MemoryIdentical(in *example.MemoryIdentical, out *MemoryIdentical, s conversion.Scope) error

Convert_example_MemoryIdentical_To_v1_MemoryIdentical is an autogenerated conversion function.

func Convert_example_TestTypeList_To_v1_TestTypeList

func Convert_example_TestTypeList_To_v1_TestTypeList(in *example.TestTypeList, out *TestTypeList, s conversion.Scope) error

Convert_example_TestTypeList_To_v1_TestTypeList is an autogenerated conversion function.

func Convert_example_TestTypeStatus_To_v1_TestTypeStatus

func Convert_example_TestTypeStatus_To_v1_TestTypeStatus(in *example.TestTypeStatus, out *TestTypeStatus, s conversion.Scope) error

Convert_example_TestTypeStatus_To_v1_TestTypeStatus is an autogenerated conversion function.

func Convert_example_TestType_To_v1_TestType

func Convert_example_TestType_To_v1_TestType(in *example.TestType, out *TestType, s conversion.Scope) error

Convert_example_TestType_To_v1_TestType is an autogenerated conversion function.

func Convert_v1_ConversionCustomContainer_To_example_ConversionCustomContainer

func Convert_v1_ConversionCustomContainer_To_example_ConversionCustomContainer(in *ConversionCustomContainer, out *example.ConversionCustomContainer, s conversion.Scope) error

Convert_v1_ConversionCustomContainer_To_example_ConversionCustomContainer is an autogenerated conversion function.

func Convert_v1_ConversionCustom_To_example_ConversionCustom

func Convert_v1_ConversionCustom_To_example_ConversionCustom(in *ConversionCustom, out *example.ConversionCustom, scope conversion.Scope) error

custom conversion function to exercise use of custom functions in slice/map/pointer fields

func Convert_v1_ConversionPrivate_To_example_ConversionPrivate

func Convert_v1_ConversionPrivate_To_example_ConversionPrivate(in *ConversionPrivate, out *example.ConversionPrivate, scope conversion.Scope) error

manually created final conversion function required because the object contains private fields that cannot be auto-converted

func Convert_v1_Conversion_To_example_Conversion

func Convert_v1_Conversion_To_example_Conversion(in *Conversion, out *example.Conversion, s conversion.Scope) error

Convert_v1_Conversion_To_example_Conversion is an autogenerated conversion function.

func Convert_v1_MemoryDifferent_To_example_MemoryDifferent

func Convert_v1_MemoryDifferent_To_example_MemoryDifferent(in *MemoryDifferent, out *example.MemoryDifferent, s conversion.Scope) error

Convert_v1_MemoryDifferent_To_example_MemoryDifferent is an autogenerated conversion function.

func Convert_v1_MemoryIdentical_To_example_MemoryIdentical

func Convert_v1_MemoryIdentical_To_example_MemoryIdentical(in *MemoryIdentical, out *example.MemoryIdentical, s conversion.Scope) error

Convert_v1_MemoryIdentical_To_example_MemoryIdentical is an autogenerated conversion function.

func Convert_v1_TestTypeList_To_example_TestTypeList

func Convert_v1_TestTypeList_To_example_TestTypeList(in *TestTypeList, out *example.TestTypeList, s conversion.Scope) error

Convert_v1_TestTypeList_To_example_TestTypeList is an autogenerated conversion function.

func Convert_v1_TestTypeStatus_To_example_TestTypeStatus

func Convert_v1_TestTypeStatus_To_example_TestTypeStatus(in *TestTypeStatus, out *example.TestTypeStatus, s conversion.Scope) error

Convert_v1_TestTypeStatus_To_example_TestTypeStatus is an autogenerated conversion function.

func Convert_v1_TestType_To_example_TestType

func Convert_v1_TestType_To_example_TestType(in *TestType, out *example.TestType, s conversion.Scope) error

Convert_v1_TestType_To_example_TestType is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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 Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Conversion

type Conversion struct {
	Identical MemoryIdentical `json:"identical"`
	Different MemoryDifferent `json:"different"`
}

func (*Conversion) DeepCopy

func (in *Conversion) DeepCopy() *Conversion

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

func (*Conversion) DeepCopyInto

func (in *Conversion) DeepCopyInto(out *Conversion)

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

func (Conversion) OpenAPIModelName

func (in Conversion) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type ConversionCustom

type ConversionCustom struct {
	PublicField string `json:"publicField"`
	// contains filtered or unexported fields
}

func (*ConversionCustom) DeepCopy

func (in *ConversionCustom) DeepCopy() *ConversionCustom

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

func (*ConversionCustom) DeepCopyInto

func (in *ConversionCustom) DeepCopyInto(out *ConversionCustom)

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

func (ConversionCustom) OpenAPIModelName

func (in ConversionCustom) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type ConversionCustomContainer

type ConversionCustomContainer struct {
	// +listType=atomic
	Slice []ConversionCustom `json:"slice"`
	// +listType=atomic
	SliceP  []*ConversionCustom          `json:"sliceP"`
	Map     map[string]ConversionCustom  `json:"map"`
	MapP    map[string]*ConversionCustom `json:"mapP"`
	Struct  ConversionCustom             `json:"struct"`
	StructP *ConversionCustom            `json:"structP"`
}

func (*ConversionCustomContainer) DeepCopy

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

func (*ConversionCustomContainer) DeepCopyInto

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

func (ConversionCustomContainer) OpenAPIModelName

func (in ConversionCustomContainer) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type ConversionPrivate

type ConversionPrivate struct {
	PublicField string `json:"publicField"`
	// contains filtered or unexported fields
}

func (*ConversionPrivate) DeepCopy

func (in *ConversionPrivate) DeepCopy() *ConversionPrivate

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

func (*ConversionPrivate) DeepCopyInto

func (in *ConversionPrivate) DeepCopyInto(out *ConversionPrivate)

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

func (ConversionPrivate) OpenAPIModelName

func (in ConversionPrivate) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MemoryDifferent

type MemoryDifferent struct {
	Items *MemoryDifferent `json:"items,omitempty"`

	Properties map[string]MemoryDifferent `json:"properties,omitempty"`

	// +listType=atomic
	AllOf []MemoryDifferent `json:"allOf,omitempty"`

	Bool *bool `json:"bool"` // differs from internal representation
}

func (*MemoryDifferent) DeepCopy

func (in *MemoryDifferent) DeepCopy() *MemoryDifferent

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

func (*MemoryDifferent) DeepCopyInto

func (in *MemoryDifferent) DeepCopyInto(out *MemoryDifferent)

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

func (MemoryDifferent) OpenAPIModelName

func (in MemoryDifferent) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MemoryIdentical

type MemoryIdentical struct {
	Items *MemoryIdentical `json:"items,omitempty"`

	Properties map[string]MemoryIdentical `json:"properties,omitempty"`

	// +listType=atomic
	AllOf []MemoryIdentical `json:"allOf,omitempty"`

	Bool bool `json:"bool"`
}

func (*MemoryIdentical) DeepCopy

func (in *MemoryIdentical) DeepCopy() *MemoryIdentical

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

func (*MemoryIdentical) DeepCopyInto

func (in *MemoryIdentical) DeepCopyInto(out *MemoryIdentical)

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

func (MemoryIdentical) OpenAPIModelName

func (in MemoryIdentical) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type TestType

type TestType struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Status TestTypeStatus `json:"status,omitempty"`
}

TestType is a top-level type. A client is created for it.

func (*TestType) DeepCopy

func (in *TestType) DeepCopy() *TestType

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

func (*TestType) DeepCopyInto

func (in *TestType) DeepCopyInto(out *TestType)

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

func (*TestType) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (TestType) OpenAPIModelName

func (in TestType) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type TestTypeList

type TestTypeList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []TestType `json:"items"`
}

TestTypeList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.

func (*TestTypeList) DeepCopy

func (in *TestTypeList) DeepCopy() *TestTypeList

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

func (*TestTypeList) DeepCopyInto

func (in *TestTypeList) DeepCopyInto(out *TestTypeList)

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

func (*TestTypeList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (TestTypeList) OpenAPIModelName

func (in TestTypeList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type TestTypeStatus

type TestTypeStatus struct {
	Blah string `json:"blah"`
}

func (*TestTypeStatus) DeepCopy

func (in *TestTypeStatus) DeepCopy() *TestTypeStatus

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

func (*TestTypeStatus) DeepCopyInto

func (in *TestTypeStatus) DeepCopyInto(out *TestTypeStatus)

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

func (TestTypeStatus) OpenAPIModelName

func (in TestTypeStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

Jump to

Keyboard shortcuts

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