v1beta1

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the example.pingcap.com api group. +groupName=example.pingcap.com

Index

Constants

This section is empty.

Variables

View Source
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

func Convert_example_Pod_To_v1beta1_Pod(in *example.Pod, out *Pod, s conversion.Scope) error

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

func Convert_v1beta1_Pod_To_example_Pod(in *Pod, out *example.Pod, s conversion.Scope) error

Convert_v1beta1_Pod_To_example_Pod is an autogenerated conversion function.

func Kind

func Kind(kind string) schema.GroupKind

Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind

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

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

func (in *Pod) DeepCopy() *Pod

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

func (*Pod) DeepCopyInto

func (in *Pod) DeepCopyInto(out *Pod)

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

func (*Pod) DeepCopyObject

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

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

func (in *PodList) DeepCopy() *PodList

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

func (*PodList) DeepCopyInto

func (in *PodList) DeepCopyInto(out *PodList)

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

func (*PodList) DeepCopyObject

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

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

func (in *PodSpec) DeepCopy() *PodSpec

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

func (*PodSpec) DeepCopyInto

func (in *PodSpec) DeepCopyInto(out *PodSpec)

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

func (in *PodStatus) DeepCopy() *PodStatus

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

func (*PodStatus) DeepCopyInto

func (in *PodStatus) DeepCopyInto(out *PodStatus)

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