Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the lighting v1 API group +kubebuilder:object:generate=true +groupName=lighting.mops.ridewithvia.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "lighting.mops.ridewithvia.com", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Lamp ¶
type Lamp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LampSpec `json:"spec,omitempty"` Status LampStatus `json:"status,omitempty"` }
Lamp is the Schema for the lamps API
func (*Lamp) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lamp.
func (*Lamp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Lamp) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LampList ¶
type LampList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Lamp `json:"items"` }
LampList contains a list of Lamp
func (*LampList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LampList.
func (*LampList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LampList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LampSpec ¶
type LampSpec struct { // Host is IP or hostname of lamp controller Host string `json:"host,omitempty"` // Color is desired lamp color Color string `json:"color,omitempty"` }
LampSpec defines the desired state of Lamp
func (*LampSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LampSpec.
func (*LampSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LampStatus ¶
type LampStatus struct { // CurrentColor is observed lamp color CurrentColor string `json:"current_color,omitempty"` // Error is observed last error Error string `json:"error,omitempty"` }
LampStatus defines the observed state of Lamp
func (*LampStatus) DeepCopy ¶
func (in *LampStatus) DeepCopy() *LampStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LampStatus.
func (*LampStatus) DeepCopyInto ¶
func (in *LampStatus) DeepCopyInto(out *LampStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.