v1alpha1

package
v0.0.0-...-d662972 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const GroupName = "restaurant.programming-kubernetes.info"

Variables

View Source
var (
	// 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 = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_restaurant_PizzaList_To_v1alpha1_PizzaList

func Convert_restaurant_PizzaList_To_v1alpha1_PizzaList(in *restaurant.PizzaList, out *PizzaList, s conversion.Scope) error

Convert_restaurant_PizzaList_To_v1alpha1_PizzaList is an autogenerated conversion function.

func Convert_restaurant_PizzaSpec_To_v1alpha1_PizzaSpec

func Convert_restaurant_PizzaSpec_To_v1alpha1_PizzaSpec(in *restaurant.PizzaSpec, out *PizzaSpec, s conversion.Scope) error

func Convert_restaurant_PizzaStatus_To_v1alpha1_PizzaStatus

func Convert_restaurant_PizzaStatus_To_v1alpha1_PizzaStatus(in *restaurant.PizzaStatus, out *PizzaStatus, s conversion.Scope) error

Convert_restaurant_PizzaStatus_To_v1alpha1_PizzaStatus is an autogenerated conversion function.

func Convert_restaurant_Pizza_To_v1alpha1_Pizza

func Convert_restaurant_Pizza_To_v1alpha1_Pizza(in *restaurant.Pizza, out *Pizza, s conversion.Scope) error

Convert_restaurant_Pizza_To_v1alpha1_Pizza is an autogenerated conversion function.

func Convert_restaurant_ToppingList_To_v1alpha1_ToppingList

func Convert_restaurant_ToppingList_To_v1alpha1_ToppingList(in *restaurant.ToppingList, out *ToppingList, s conversion.Scope) error

Convert_restaurant_ToppingList_To_v1alpha1_ToppingList is an autogenerated conversion function.

func Convert_restaurant_ToppingSpec_To_v1alpha1_ToppingSpec

func Convert_restaurant_ToppingSpec_To_v1alpha1_ToppingSpec(in *restaurant.ToppingSpec, out *ToppingSpec, s conversion.Scope) error

Convert_restaurant_ToppingSpec_To_v1alpha1_ToppingSpec is an autogenerated conversion function.

func Convert_restaurant_Topping_To_v1alpha1_Topping

func Convert_restaurant_Topping_To_v1alpha1_Topping(in *restaurant.Topping, out *Topping, s conversion.Scope) error

Convert_restaurant_Topping_To_v1alpha1_Topping is an autogenerated conversion function.

func Convert_v1alpha1_PizzaList_To_restaurant_PizzaList

func Convert_v1alpha1_PizzaList_To_restaurant_PizzaList(in *PizzaList, out *restaurant.PizzaList, s conversion.Scope) error

Convert_v1alpha1_PizzaList_To_restaurant_PizzaList is an autogenerated conversion function.

func Convert_v1alpha1_PizzaSpec_To_restaurant_PizzaSpec

func Convert_v1alpha1_PizzaSpec_To_restaurant_PizzaSpec(in *PizzaSpec, out *restaurant.PizzaSpec, s conversion.Scope) error

func Convert_v1alpha1_PizzaStatus_To_restaurant_PizzaStatus

func Convert_v1alpha1_PizzaStatus_To_restaurant_PizzaStatus(in *PizzaStatus, out *restaurant.PizzaStatus, s conversion.Scope) error

Convert_v1alpha1_PizzaStatus_To_restaurant_PizzaStatus is an autogenerated conversion function.

func Convert_v1alpha1_Pizza_To_restaurant_Pizza

func Convert_v1alpha1_Pizza_To_restaurant_Pizza(in *Pizza, out *restaurant.Pizza, s conversion.Scope) error

Convert_v1alpha1_Pizza_To_restaurant_Pizza is an autogenerated conversion function.

func Convert_v1alpha1_ToppingList_To_restaurant_ToppingList

func Convert_v1alpha1_ToppingList_To_restaurant_ToppingList(in *ToppingList, out *restaurant.ToppingList, s conversion.Scope) error

Convert_v1alpha1_ToppingList_To_restaurant_ToppingList is an autogenerated conversion function.

func Convert_v1alpha1_ToppingSpec_To_restaurant_ToppingSpec

func Convert_v1alpha1_ToppingSpec_To_restaurant_ToppingSpec(in *ToppingSpec, out *restaurant.ToppingSpec, s conversion.Scope) error

Convert_v1alpha1_ToppingSpec_To_restaurant_ToppingSpec is an autogenerated conversion function.

func Convert_v1alpha1_Topping_To_restaurant_Topping

func Convert_v1alpha1_Topping_To_restaurant_Topping(in *Topping, out *restaurant.Topping, s conversion.Scope) error

Convert_v1alpha1_Topping_To_restaurant_Topping is an autogenerated conversion function.

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

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

func (in *Pizza) DeepCopy() *Pizza

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

func (*Pizza) DeepCopyInto

func (in *Pizza) DeepCopyInto(out *Pizza)

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

func (*Pizza) DeepCopyObject

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

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

func (in *PizzaList) DeepCopy() *PizzaList

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

func (*PizzaList) DeepCopyInto

func (in *PizzaList) DeepCopyInto(out *PizzaList)

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

func (*PizzaList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PizzaSpec

type PizzaSpec struct {
	// +k8s:conversion-gen=false
	// toppings is a list of Topping names. They don't have to be unique. Order does not matter.
	Toppings []string `json:"toppings" protobuf:"bytes,1,rep,name=toppings"`
}

func (*PizzaSpec) DeepCopy

func (in *PizzaSpec) DeepCopy() *PizzaSpec

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

func (*PizzaSpec) DeepCopyInto

func (in *PizzaSpec) DeepCopyInto(out *PizzaSpec)

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 Topping

type Topping struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec ToppingSpec
}

Topping is a topping put onto a pizza.

func (*Topping) DeepCopy

func (in *Topping) DeepCopy() *Topping

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

func (*Topping) DeepCopyInto

func (in *Topping) DeepCopyInto(out *Topping)

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

func (*Topping) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ToppingList

type ToppingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []Topping `json:"items" protobuf:"bytes,2,rep,name=items"`
}

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 `json:"cost" protobuf:"bytes,1,name=cost"`
}

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.

Jump to

Keyboard shortcuts

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