Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the example.pingcap.com api group. +groupName=example.pingcap.com
Index ¶
- Variables
- func Convert_example_ContainerSpec_To_v1beta1_ContainerSpec(in *example.ContainerSpec, out *ContainerSpec, s conversion.Scope) error
- func Convert_example_PodList_To_v1beta1_PodList(in *example.PodList, out *PodList, s conversion.Scope) error
- func Convert_example_PodSpec_To_v1beta1_PodSpec(in *example.PodSpec, out *PodSpec, s conversion.Scope) error
- func Convert_example_PodStatus_To_v1beta1_PodStatus(in *example.PodStatus, out *PodStatus, s conversion.Scope) error
- func Convert_example_Pod_To_v1beta1_Pod(in *example.Pod, out *Pod, s conversion.Scope) error
- func Convert_v1beta1_ContainerSpec_To_example_ContainerSpec(in *ContainerSpec, out *example.ContainerSpec, s conversion.Scope) error
- func Convert_v1beta1_PodList_To_example_PodList(in *PodList, out *example.PodList, s conversion.Scope) error
- func Convert_v1beta1_PodSpec_To_example_PodSpec(in *PodSpec, out *example.PodSpec, s conversion.Scope) error
- func Convert_v1beta1_PodStatus_To_example_PodStatus(in *PodStatus, out *example.PodStatus, s conversion.Scope) error
- func Convert_v1beta1_Pod_To_example_Pod(in *Pod, out *example.Pod, 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
- func SetDefaults_Pod(obj *Pod)
- func SetObjectDefaults_Pod(in *Pod)
- func SetObjectDefaults_PodList(in *PodList)
- type ContainerSpec
- type Pod
- type PodList
- type PodSpec
- type PodStatus
Constants ¶
This section is empty.
Variables ¶
var ( ApiVersion = builders.NewApiVersion("example.pingcap.com", "v1beta1").WithResources( example.ExamplePodStorage, builders.NewApiResource( example.InternalPodStatus, func() runtime.Object { return &Pod{} }, func() runtime.Object { return &PodList{} }, &example.PodStatusStrategy{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_ContainerSpec_To_v1beta1_ContainerSpec ¶
func Convert_example_ContainerSpec_To_v1beta1_ContainerSpec(in *example.ContainerSpec, out *ContainerSpec, s conversion.Scope) error
Convert_example_ContainerSpec_To_v1beta1_ContainerSpec is an autogenerated conversion function.
func Convert_example_PodList_To_v1beta1_PodList ¶
func Convert_example_PodList_To_v1beta1_PodList(in *example.PodList, out *PodList, s conversion.Scope) error
Convert_example_PodList_To_v1beta1_PodList is an autogenerated conversion function.
func Convert_example_PodSpec_To_v1beta1_PodSpec ¶
func Convert_example_PodSpec_To_v1beta1_PodSpec(in *example.PodSpec, out *PodSpec, s conversion.Scope) error
Convert_example_PodSpec_To_v1beta1_PodSpec override the generated conversion func
func Convert_example_PodStatus_To_v1beta1_PodStatus ¶
func Convert_example_PodStatus_To_v1beta1_PodStatus(in *example.PodStatus, out *PodStatus, s conversion.Scope) error
Convert_example_PodStatus_To_v1beta1_PodStatus is an autogenerated conversion function.
func Convert_example_Pod_To_v1beta1_Pod ¶
Convert_example_Pod_To_v1beta1_Pod is an autogenerated conversion function.
func Convert_v1beta1_ContainerSpec_To_example_ContainerSpec ¶
func Convert_v1beta1_ContainerSpec_To_example_ContainerSpec(in *ContainerSpec, out *example.ContainerSpec, s conversion.Scope) error
Convert_v1beta1_ContainerSpec_To_example_ContainerSpec is an autogenerated conversion function.
func Convert_v1beta1_PodList_To_example_PodList ¶
func Convert_v1beta1_PodList_To_example_PodList(in *PodList, out *example.PodList, s conversion.Scope) error
Convert_v1beta1_PodList_To_example_PodList is an autogenerated conversion function.
func Convert_v1beta1_PodSpec_To_example_PodSpec ¶
func Convert_v1beta1_PodSpec_To_example_PodSpec(in *PodSpec, out *example.PodSpec, s conversion.Scope) error
Convert_v1beta1_PodSpec_To_example_PodSpec override the generated conversion func
func Convert_v1beta1_PodStatus_To_example_PodStatus ¶
func Convert_v1beta1_PodStatus_To_example_PodStatus(in *PodStatus, out *example.PodStatus, s conversion.Scope) error
Convert_v1beta1_PodStatus_To_example_PodStatus is an autogenerated conversion function.
func Convert_v1beta1_Pod_To_example_Pod ¶
Convert_v1beta1_Pod_To_example_Pod 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
func SetDefaults_Pod ¶
func SetDefaults_Pod(obj *Pod)
func SetObjectDefaults_Pod ¶
func SetObjectDefaults_Pod(in *Pod)
func SetObjectDefaults_PodList ¶
func SetObjectDefaults_PodList(in *PodList)
Types ¶
type ContainerSpec ¶
type ContainerSpec struct { Image string `json:"image"` ImagePullPolicy string `json:"imagePullPolicy"` }
+genregister:unversioned=false
func (*ContainerSpec) DeepCopy ¶
func (in *ContainerSpec) DeepCopy() *ContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSpec.
func (*ContainerSpec) DeepCopyInto ¶
func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pod ¶
type Pod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodSpec `json:"spec,omitempty"` Status PodStatus `json:"status,omitempty"` }
Pod +k8s:openapi-gen=true +resource:path=pods
func (*Pod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (*Pod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pod) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodList ¶
type PodList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Pod `json:"items"` }
func (*PodList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (*PodList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodSpec ¶
type PodSpec struct { Containers []ContainerSpec `json:"container,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []string `json:"tolerations,omitempty"` HostName string `json:"hostName,omitempty"` }
PodSpec v1beta1 can run a group of containers and could have tolerations +genregister:unversioned=false
func (*PodSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func (*PodSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodStatus ¶
type PodStatus struct {
Phase string `json:"phase,omitempty"`
}
func (*PodStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (*PodStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.