v1

package
v0.0.0-...-52847bb Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

func (in *Lamp) DeepCopy() *Lamp

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

func (*Lamp) DeepCopyInto

func (in *Lamp) DeepCopyInto(out *Lamp)

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

func (*Lamp) DeepCopyObject

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

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

func (in *LampList) DeepCopy() *LampList

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

func (*LampList) DeepCopyInto

func (in *LampList) DeepCopyInto(out *LampList)

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

func (*LampList) DeepCopyObject

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

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

func (in *LampSpec) DeepCopy() *LampSpec

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

func (*LampSpec) DeepCopyInto

func (in *LampSpec) DeepCopyInto(out *LampSpec)

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.

Jump to

Keyboard shortcuts

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