v1

package
v0.0.0-...-87722f0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+groupName=stable.k8s.io

此文件的作用是通过addKnownTypes方法使得client可以知道Student类型的API对象:

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   stable.GroupName,
	Version: stable.Version,
}

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

func (in *Student) DeepCopy() *Student

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

func (*Student) DeepCopyInto

func (in *Student) DeepCopyInto(out *Student)

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

func (*Student) DeepCopyObject

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

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.

Jump to

Keyboard shortcuts

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