Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API.
Index ¶
- Constants
- Variables
- func Convert_restaurant_PizzaList_To_v1beta1_PizzaList(in *restaurant.PizzaList, out *PizzaList, s conversion.Scope) error
- func Convert_restaurant_PizzaSpec_To_v1beta1_PizzaSpec(in *restaurant.PizzaSpec, out *PizzaSpec, s conversion.Scope) error
- func Convert_restaurant_PizzaStatus_To_v1beta1_PizzaStatus(in *restaurant.PizzaStatus, out *PizzaStatus, s conversion.Scope) error
- func Convert_restaurant_PizzaTopping_To_v1beta1_PizzaTopping(in *restaurant.PizzaTopping, out *PizzaTopping, s conversion.Scope) error
- func Convert_restaurant_Pizza_To_v1beta1_Pizza(in *restaurant.Pizza, out *Pizza, s conversion.Scope) error
- func Convert_v1beta1_PizzaList_To_restaurant_PizzaList(in *PizzaList, out *restaurant.PizzaList, s conversion.Scope) error
- func Convert_v1beta1_PizzaSpec_To_restaurant_PizzaSpec(in *PizzaSpec, out *restaurant.PizzaSpec, s conversion.Scope) error
- func Convert_v1beta1_PizzaStatus_To_restaurant_PizzaStatus(in *PizzaStatus, out *restaurant.PizzaStatus, s conversion.Scope) error
- func Convert_v1beta1_PizzaTopping_To_restaurant_PizzaTopping(in *PizzaTopping, out *restaurant.PizzaTopping, s conversion.Scope) error
- func Convert_v1beta1_Pizza_To_restaurant_Pizza(in *Pizza, out *restaurant.Pizza, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_PizzaSpec(obj *PizzaSpec)
- func SetObjectDefaults_Pizza(in *Pizza)
- func SetObjectDefaults_PizzaList(in *PizzaList)
- type Pizza
- type PizzaList
- type PizzaSpec
- type PizzaStatus
- type PizzaTopping
Constants ¶
const GroupName = "restaurant.programming-kubernetes.info"
GroupName holds the API group name.
Variables ¶
var ( // SchemeBuilder allows to add this group to a scheme. // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // AddToScheme adds this group to a scheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_restaurant_PizzaList_To_v1beta1_PizzaList ¶
func Convert_restaurant_PizzaList_To_v1beta1_PizzaList(in *restaurant.PizzaList, out *PizzaList, s conversion.Scope) error
Convert_restaurant_PizzaList_To_v1beta1_PizzaList is an autogenerated conversion function.
func Convert_restaurant_PizzaSpec_To_v1beta1_PizzaSpec ¶
func Convert_restaurant_PizzaSpec_To_v1beta1_PizzaSpec(in *restaurant.PizzaSpec, out *PizzaSpec, s conversion.Scope) error
func Convert_restaurant_PizzaStatus_To_v1beta1_PizzaStatus ¶
func Convert_restaurant_PizzaStatus_To_v1beta1_PizzaStatus(in *restaurant.PizzaStatus, out *PizzaStatus, s conversion.Scope) error
Convert_restaurant_PizzaStatus_To_v1beta1_PizzaStatus is an autogenerated conversion function.
func Convert_restaurant_PizzaTopping_To_v1beta1_PizzaTopping ¶
func Convert_restaurant_PizzaTopping_To_v1beta1_PizzaTopping(in *restaurant.PizzaTopping, out *PizzaTopping, s conversion.Scope) error
Convert_restaurant_PizzaTopping_To_v1beta1_PizzaTopping is an autogenerated conversion function.
func Convert_restaurant_Pizza_To_v1beta1_Pizza ¶
func Convert_restaurant_Pizza_To_v1beta1_Pizza(in *restaurant.Pizza, out *Pizza, s conversion.Scope) error
Convert_restaurant_Pizza_To_v1beta1_Pizza is an autogenerated conversion function.
func Convert_v1beta1_PizzaList_To_restaurant_PizzaList ¶
func Convert_v1beta1_PizzaList_To_restaurant_PizzaList(in *PizzaList, out *restaurant.PizzaList, s conversion.Scope) error
Convert_v1beta1_PizzaList_To_restaurant_PizzaList is an autogenerated conversion function.
func Convert_v1beta1_PizzaSpec_To_restaurant_PizzaSpec ¶
func Convert_v1beta1_PizzaSpec_To_restaurant_PizzaSpec(in *PizzaSpec, out *restaurant.PizzaSpec, s conversion.Scope) error
func Convert_v1beta1_PizzaStatus_To_restaurant_PizzaStatus ¶
func Convert_v1beta1_PizzaStatus_To_restaurant_PizzaStatus(in *PizzaStatus, out *restaurant.PizzaStatus, s conversion.Scope) error
Convert_v1beta1_PizzaStatus_To_restaurant_PizzaStatus is an autogenerated conversion function.
func Convert_v1beta1_PizzaTopping_To_restaurant_PizzaTopping ¶
func Convert_v1beta1_PizzaTopping_To_restaurant_PizzaTopping(in *PizzaTopping, out *restaurant.PizzaTopping, s conversion.Scope) error
Convert_v1beta1_PizzaTopping_To_restaurant_PizzaTopping is an autogenerated conversion function.
func Convert_v1beta1_Pizza_To_restaurant_Pizza ¶
func Convert_v1beta1_Pizza_To_restaurant_Pizza(in *Pizza, out *restaurant.Pizza, s conversion.Scope) error
Convert_v1beta1_Pizza_To_restaurant_Pizza is an autogenerated conversion function.
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
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_PizzaSpec ¶
func SetDefaults_PizzaSpec(obj *PizzaSpec)
func SetObjectDefaults_Pizza ¶
func SetObjectDefaults_Pizza(in *Pizza)
func SetObjectDefaults_PizzaList ¶
func SetObjectDefaults_PizzaList(in *PizzaList)
Types ¶
type Pizza ¶
type Pizza struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec PizzaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status PizzaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
Pizza specifies an offered pizza with toppings.
func (*Pizza) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pizza.
func (*Pizza) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pizza) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PizzaList ¶
type PizzaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []Pizza `json:"items" protobuf:"bytes,2,rep,name=items"` }
PizzaList is a list of Pizza objects.
func (*PizzaList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PizzaList.
func (*PizzaList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PizzaList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PizzaSpec ¶
type PizzaSpec struct { // toppings is a list of Topping names. They don't have to be unique. Order does not matter. Toppings []PizzaTopping `json:"toppings" protobuf:"bytes,1,rep,name=toppings"` }
func (*PizzaSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PizzaSpec.
func (*PizzaSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PizzaStatus ¶
type PizzaStatus struct { // cost is the cost of the whole pizza including all toppings. Cost float64 `json:"cost,omitempty" protobuf:"bytes,1,opt,name=cost"` }
func (*PizzaStatus) DeepCopy ¶
func (in *PizzaStatus) DeepCopy() *PizzaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PizzaStatus.
func (*PizzaStatus) DeepCopyInto ¶
func (in *PizzaStatus) DeepCopyInto(out *PizzaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PizzaTopping ¶
type PizzaTopping struct { // name is the name of a Topping object . Name string `json:"name" protobuf:"bytes,1,name=name"` // quantity is the number of how often the topping is put onto the pizza. // +optional Quantity int `json:"quantity" protobuf:"bytes,2,opt,name=quantity"` }
func (*PizzaTopping) DeepCopy ¶
func (in *PizzaTopping) DeepCopy() *PizzaTopping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PizzaTopping.
func (*PizzaTopping) DeepCopyInto ¶
func (in *PizzaTopping) DeepCopyInto(out *PizzaTopping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.