Documentation ¶
Overview ¶
Package api is the internal version of the API.
Index ¶
Constants ¶
const GroupName = "restaurant.chanshik.dev"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type Pizza ¶
type Pizza struct { metav1.TypeMeta metav1.ObjectMeta Spec PizzaSpec Status PizzaStatus }
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 ¶
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 }
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 }
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 // quantity is the number of how often the topping is put onto the pizza. Quantity int }
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.
type Topping ¶
type Topping struct { metav1.TypeMeta metav1.ObjectMeta Spec ToppingSpec }
Topping is a topping put onto a pizza.
func (*Topping) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Topping.
func (*Topping) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Topping) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ToppingList ¶
type ToppingList struct { metav1.TypeMeta metav1.ListMeta // Items is a list of Toppings Items []Topping }
ToppingList is a list of Topping objects.
func (*ToppingList) DeepCopy ¶
func (in *ToppingList) DeepCopy() *ToppingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToppingList.
func (*ToppingList) DeepCopyInto ¶
func (in *ToppingList) DeepCopyInto(out *ToppingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ToppingList) DeepCopyObject ¶
func (in *ToppingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ToppingSpec ¶
type ToppingSpec struct { // cost is the cost of one instance of this topping. Cost float64 }
func (*ToppingSpec) DeepCopy ¶
func (in *ToppingSpec) DeepCopy() *ToppingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToppingSpec.
func (*ToppingSpec) DeepCopyInto ¶
func (in *ToppingSpec) DeepCopyInto(out *ToppingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.