Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/infobloxopen/konk/test/apiserver/pkg/apis/example +k8s:defaulter-gen=TypeMeta +groupName=example.infoblox.com
Index ¶
- Variables
- func Convert_example_ContactList_To_v1alpha1_ContactList(in *example.ContactList, out *ContactList, s conversion.Scope) error
- func Convert_example_ContactSpec_To_v1alpha1_ContactSpec(in *example.ContactSpec, out *ContactSpec, s conversion.Scope) error
- func Convert_example_ContactStatus_To_v1alpha1_ContactStatus(in *example.ContactStatus, out *ContactStatus, s conversion.Scope) error
- func Convert_example_Contact_To_v1alpha1_Contact(in *example.Contact, out *Contact, s conversion.Scope) error
- func Convert_v1alpha1_ContactList_To_example_ContactList(in *ContactList, out *example.ContactList, s conversion.Scope) error
- func Convert_v1alpha1_ContactSpec_To_example_ContactSpec(in *ContactSpec, out *example.ContactSpec, s conversion.Scope) error
- func Convert_v1alpha1_ContactStatus_To_example_ContactStatus(in *ContactStatus, out *example.ContactStatus, s conversion.Scope) error
- func Convert_v1alpha1_Contact_To_example_Contact(in *Contact, out *example.Contact, s conversion.Scope) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Contact
- type ContactList
- type ContactSpec
- type ContactStatus
Constants ¶
This section is empty.
Variables ¶
var ( ApiVersion = builders.NewApiVersion("example.infoblox.com", "v1alpha1").WithResources( example.ExampleContactStorage, builders.NewApiResource( example.InternalContactStatus, func() runtime.Object { return &Contact{} }, func() runtime.Object { return &ContactList{} }, &example.ContactStatusStrategy{DefaultStatusStorageStrategy: builders.StatusStorageStrategySingleton}, )) // Required by code generated by go2idl AddToScheme = (&runtime.SchemeBuilder{ ApiVersion.SchemeBuilder.AddToScheme, RegisterDefaults, RegisterConversions, addKnownTypes, func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }, }).AddToScheme SchemeBuilder = ApiVersion.SchemeBuilder SchemeGroupVersion = ApiVersion.GroupVersion )
Functions ¶
func Convert_example_ContactList_To_v1alpha1_ContactList ¶
func Convert_example_ContactList_To_v1alpha1_ContactList(in *example.ContactList, out *ContactList, s conversion.Scope) error
Convert_example_ContactList_To_v1alpha1_ContactList is an autogenerated conversion function.
func Convert_example_ContactSpec_To_v1alpha1_ContactSpec ¶
func Convert_example_ContactSpec_To_v1alpha1_ContactSpec(in *example.ContactSpec, out *ContactSpec, s conversion.Scope) error
Convert_example_ContactSpec_To_v1alpha1_ContactSpec is an autogenerated conversion function.
func Convert_example_ContactStatus_To_v1alpha1_ContactStatus ¶
func Convert_example_ContactStatus_To_v1alpha1_ContactStatus(in *example.ContactStatus, out *ContactStatus, s conversion.Scope) error
Convert_example_ContactStatus_To_v1alpha1_ContactStatus is an autogenerated conversion function.
func Convert_example_Contact_To_v1alpha1_Contact ¶
func Convert_example_Contact_To_v1alpha1_Contact(in *example.Contact, out *Contact, s conversion.Scope) error
Convert_example_Contact_To_v1alpha1_Contact is an autogenerated conversion function.
func Convert_v1alpha1_ContactList_To_example_ContactList ¶
func Convert_v1alpha1_ContactList_To_example_ContactList(in *ContactList, out *example.ContactList, s conversion.Scope) error
Convert_v1alpha1_ContactList_To_example_ContactList is an autogenerated conversion function.
func Convert_v1alpha1_ContactSpec_To_example_ContactSpec ¶
func Convert_v1alpha1_ContactSpec_To_example_ContactSpec(in *ContactSpec, out *example.ContactSpec, s conversion.Scope) error
Convert_v1alpha1_ContactSpec_To_example_ContactSpec is an autogenerated conversion function.
func Convert_v1alpha1_ContactStatus_To_example_ContactStatus ¶
func Convert_v1alpha1_ContactStatus_To_example_ContactStatus(in *ContactStatus, out *example.ContactStatus, s conversion.Scope) error
Convert_v1alpha1_ContactStatus_To_example_ContactStatus is an autogenerated conversion function.
func Convert_v1alpha1_Contact_To_example_Contact ¶
func Convert_v1alpha1_Contact_To_example_Contact(in *Contact, out *example.Contact, s conversion.Scope) error
Convert_v1alpha1_Contact_To_example_Contact is an autogenerated conversion function.
func Kind ¶
Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
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
Required by code generated by go2idl Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Contact ¶
type Contact struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ContactSpec `json:"spec,omitempty"` Status ContactStatus `json:"status,omitempty"` }
Contact Custom backends do not work, see https://github.com/kubernetes-sigs/apiserver-builder-alpha/issues/551 // resource:path=contacts,strategy=ContactStrategy,rest=ContactREST +k8s:openapi-gen=true +resource:path=contacts,strategy=ContactStrategy
func (*Contact) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Contact.
func (*Contact) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Contact) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContactList ¶
type ContactList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Contact `json:"items"` }
func (*ContactList) DeepCopy ¶
func (in *ContactList) DeepCopy() *ContactList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactList.
func (*ContactList) DeepCopyInto ¶
func (in *ContactList) DeepCopyInto(out *ContactList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContactList) DeepCopyObject ¶
func (in *ContactList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContactSpec ¶
type ContactSpec struct { }
ContactSpec defines the desired state of Contact
func (*ContactSpec) DeepCopy ¶
func (in *ContactSpec) DeepCopy() *ContactSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactSpec.
func (*ContactSpec) DeepCopyInto ¶
func (in *ContactSpec) DeepCopyInto(out *ContactSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContactStatus ¶
type ContactStatus struct { }
ContactStatus defines the observed state of Contact
func (*ContactStatus) DeepCopy ¶
func (in *ContactStatus) DeepCopy() *ContactStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactStatus.
func (*ContactStatus) DeepCopyInto ¶
func (in *ContactStatus) DeepCopyInto(out *ContactStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.