Documentation ¶
Overview ¶
+groupName=stable.k8s.io
此文件的作用是通过addKnownTypes方法使得client可以知道Student类型的API对象:
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: stable.GroupName, Version: stable.Version, }
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type Student ¶
type Student struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StudentSpec `json:"spec"` }
func (*Student) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Student.
func (*Student) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Student) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StudentList ¶
type StudentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Student `json:"items"` }
StudentList is a list of Student resources
func (*StudentList) DeepCopy ¶
func (in *StudentList) DeepCopy() *StudentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StudentList.
func (*StudentList) DeepCopyInto ¶
func (in *StudentList) DeepCopyInto(out *StudentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StudentList) DeepCopyObject ¶
func (in *StudentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StudentSpec ¶
type StudentSpec struct { Name string `json:"name"` School string `json:"school"` Email string `json:"email"` Address string `json:"address"` }
func (*StudentSpec) DeepCopy ¶
func (in *StudentSpec) DeepCopy() *StudentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StudentSpec.
func (*StudentSpec) DeepCopyInto ¶
func (in *StudentSpec) DeepCopyInto(out *StudentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.