Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.rekuberate.io
Index ¶
- Constants
- Variables
- func GetConditions() []metav1.Condition
- type CarbonIntensityIssuer
- type CarbonIntensityIssuerList
- type CarbonIntensityIssuerSpec
- type CarbonIntensityIssuerStatus
- type ElectricityMaps
- type ElectricityMapsList
- type ElectricityMapsSpec
- type ElectricityMapsStatus
- type Simulator
- type SimulatorList
- type SimulatorSpec
- type SimulatorStatus
- type WattTime
- type WattTimeList
- type WattTimeSpec
- type WattTimeStatus
Constants ¶
const ( ProviderInitPending = "ProviderInitPending" ProviderInitFailed = "ProviderInitFailed" ProviderInitFinished = "ProviderInitFinished" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.rekuberate.io", Version: "v1alpha1"} // 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 )
var ( ConditionHealthy = metav1.Condition{ Type: "Available", Status: metav1.ConditionUnknown, Reason: ProviderInitPending, } )
Functions ¶
func GetConditions ¶
Types ¶
type CarbonIntensityIssuer ¶
type CarbonIntensityIssuer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CarbonIntensityIssuerSpec `json:"spec,omitempty"` Status CarbonIntensityIssuerStatus `json:"status,omitempty"` }
CarbonIntensityIssuer is the Schema for the carbonintensityissuers API +kubebuilder:printcolumn:name="Provider",type=string,JSONPath=`.spec.providerRef.name` +kubebuilder:printcolumn:name="Zone",type=string,JSONPath=`.spec.zone` +kubebuilder:printcolumn:name="Forecast INVL(h)",type=string,JSONPath=`.spec.forecastRefreshIntervalHours` +kubebuilder:printcolumn:name="Last Forecast",type=string,JSONPath=`.status.lastForecast` +kubebuilder:printcolumn:name="CI (gCO2eq/KWh)",type=string,JSONPath=`.status.carbonIntensity` +kubebuilder:printcolumn:name="Last Update",type=string,JSONPath=`.status.lastUpdate` +kubebuilder:printcolumn:name="Next Update",type=string,JSONPath=`.status.nextUpdate`
func (*CarbonIntensityIssuer) DeepCopy ¶
func (in *CarbonIntensityIssuer) DeepCopy() *CarbonIntensityIssuer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarbonIntensityIssuer.
func (*CarbonIntensityIssuer) DeepCopyInto ¶
func (in *CarbonIntensityIssuer) DeepCopyInto(out *CarbonIntensityIssuer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CarbonIntensityIssuer) DeepCopyObject ¶
func (in *CarbonIntensityIssuer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CarbonIntensityIssuerList ¶
type CarbonIntensityIssuerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CarbonIntensityIssuer `json:"items"` }
CarbonIntensityIssuerList contains a list of CarbonIntensityIssuer
func (*CarbonIntensityIssuerList) DeepCopy ¶
func (in *CarbonIntensityIssuerList) DeepCopy() *CarbonIntensityIssuerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarbonIntensityIssuerList.
func (*CarbonIntensityIssuerList) DeepCopyInto ¶
func (in *CarbonIntensityIssuerList) DeepCopyInto(out *CarbonIntensityIssuerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CarbonIntensityIssuerList) DeepCopyObject ¶
func (in *CarbonIntensityIssuerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CarbonIntensityIssuerSpec ¶
type CarbonIntensityIssuerSpec struct { // +kubebuilder:default=12 // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=12 // +kubebuilder:validation:Maximum=24 // +kubebuilder:validation:ExclusiveMinimum=false // +kubebuilder:validation:ExclusiveMaximum=false ForecastRefreshIntervalInHours int32 `json:"forecastRefreshIntervalHours"` // +kubebuilder:default=1 // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=24 // +kubebuilder:validation:ExclusiveMinimum=false // +kubebuilder:validation:ExclusiveMaximum=false LiveRefreshIntervalInHours int32 `json:"liveRefreshIntervalHours"` // +kubebuilder:validation:Required Zone string `json:"zone"` // +kubebuilder:validation:Required ProviderRef *v1.ObjectReference `json:"providerRef,omitempty"` }
CarbonIntensityIssuerSpec defines the desired state of CarbonIntensityIssuer
func (*CarbonIntensityIssuerSpec) DeepCopy ¶
func (in *CarbonIntensityIssuerSpec) DeepCopy() *CarbonIntensityIssuerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarbonIntensityIssuerSpec.
func (*CarbonIntensityIssuerSpec) DeepCopyInto ¶
func (in *CarbonIntensityIssuerSpec) DeepCopyInto(out *CarbonIntensityIssuerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CarbonIntensityIssuerStatus ¶
type CarbonIntensityIssuerStatus struct { LastForecast *metav1.Time `json:"lastForecast,omitempty"` LastUpdate *metav1.Time `json:"lastUpdate,omitempty"` NextUpdate *metav1.Time `json:"nextUpdate,omitempty"` CarbonIntensity *string `json:"carbonIntensity,omitempty"` // Conditions store the status conditions of the Memcached instances // +operator-sdk:csv:customresourcedefinitions:type=status Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
CarbonIntensityIssuerStatus defines the observed state of CarbonIntensityIssuer
func (*CarbonIntensityIssuerStatus) DeepCopy ¶
func (in *CarbonIntensityIssuerStatus) DeepCopy() *CarbonIntensityIssuerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarbonIntensityIssuerStatus.
func (*CarbonIntensityIssuerStatus) DeepCopyInto ¶
func (in *CarbonIntensityIssuerStatus) DeepCopyInto(out *CarbonIntensityIssuerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElectricityMaps ¶
type ElectricityMaps struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ElectricityMapsSpec `json:"spec,omitempty"` Status ElectricityMapsStatus `json:"status,omitempty"` }
ElectricityMaps is the Schema for the electricitymaps API +kubebuilder:printcolumn:name="Subscription",type=string,JSONPath=`.spec.subscription`
func (*ElectricityMaps) DeepCopy ¶
func (in *ElectricityMaps) DeepCopy() *ElectricityMaps
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElectricityMaps.
func (*ElectricityMaps) DeepCopyInto ¶
func (in *ElectricityMaps) DeepCopyInto(out *ElectricityMaps)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ElectricityMaps) DeepCopyObject ¶
func (in *ElectricityMaps) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ElectricityMapsList ¶
type ElectricityMapsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ElectricityMaps `json:"items"` }
ElectricityMapsList contains a list of ElectricityMaps
func (*ElectricityMapsList) DeepCopy ¶
func (in *ElectricityMapsList) DeepCopy() *ElectricityMapsList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElectricityMapsList.
func (*ElectricityMapsList) DeepCopyInto ¶
func (in *ElectricityMapsList) DeepCopyInto(out *ElectricityMapsList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ElectricityMapsList) DeepCopyObject ¶
func (in *ElectricityMapsList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ElectricityMapsSpec ¶
type ElectricityMapsSpec struct { // +kubebuilder:validation:Enum=commercial;commercial_trial;free_tier // +kubebuilder:default:=free_tier Subscription string `json:"subscription"` CommercialTrialEndpoint *string `json:"commercialTrialEndpoint,omitempty"` ApiKeyRef *v1.SecretReference `json:"apiKeyRef"` }
ElectricityMapsSpec defines the desired state of ElectricityMaps
func (*ElectricityMapsSpec) DeepCopy ¶
func (in *ElectricityMapsSpec) DeepCopy() *ElectricityMapsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElectricityMapsSpec.
func (*ElectricityMapsSpec) DeepCopyInto ¶
func (in *ElectricityMapsSpec) DeepCopyInto(out *ElectricityMapsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElectricityMapsStatus ¶
type ElectricityMapsStatus struct { }
ElectricityMapsStatus defines the observed state of ElectricityMaps
func (*ElectricityMapsStatus) DeepCopy ¶
func (in *ElectricityMapsStatus) DeepCopy() *ElectricityMapsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElectricityMapsStatus.
func (*ElectricityMapsStatus) DeepCopyInto ¶
func (in *ElectricityMapsStatus) DeepCopyInto(out *ElectricityMapsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Simulator ¶
type Simulator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SimulatorSpec `json:"spec,omitempty"` Status SimulatorStatus `json:"status,omitempty"` }
Simulator is the Schema for the simulators API +kubebuilder:printcolumn:name="Randomize",type=string,JSONPath=`.spec.randomize`
func (*Simulator) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Simulator.
func (*Simulator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Simulator) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SimulatorList ¶
type SimulatorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Simulator `json:"items"` }
SimulatorList contains a list of Simulator
func (*SimulatorList) DeepCopy ¶
func (in *SimulatorList) DeepCopy() *SimulatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimulatorList.
func (*SimulatorList) DeepCopyInto ¶
func (in *SimulatorList) DeepCopyInto(out *SimulatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SimulatorList) DeepCopyObject ¶
func (in *SimulatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SimulatorSpec ¶
type SimulatorSpec struct { // +kubebuilder:default:=false // +kubebuilder:validation:Type=boolean Randomize *bool `json:"randomize,omitempty"` }
SimulatorSpec defines the desired state of Simulator
func (*SimulatorSpec) DeepCopy ¶
func (in *SimulatorSpec) DeepCopy() *SimulatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimulatorSpec.
func (*SimulatorSpec) DeepCopyInto ¶
func (in *SimulatorSpec) DeepCopyInto(out *SimulatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimulatorStatus ¶
type SimulatorStatus struct { }
SimulatorStatus defines the observed state of Simulator
func (*SimulatorStatus) DeepCopy ¶
func (in *SimulatorStatus) DeepCopy() *SimulatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimulatorStatus.
func (*SimulatorStatus) DeepCopyInto ¶
func (in *SimulatorStatus) DeepCopyInto(out *SimulatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WattTime ¶
type WattTime struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WattTimeSpec `json:"spec,omitempty"` Status WattTimeStatus `json:"status,omitempty"` }
WattTime is the Schema for the watttimes API +kubebuilder:printcolumn:name="Username",type=string,JSONPath=`.spec.username`
func (*WattTime) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WattTime.
func (*WattTime) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WattTime) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WattTimeList ¶
type WattTimeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WattTime `json:"items"` }
WattTimeList contains a list of WattTime
func (*WattTimeList) DeepCopy ¶
func (in *WattTimeList) DeepCopy() *WattTimeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WattTimeList.
func (*WattTimeList) DeepCopyInto ¶
func (in *WattTimeList) DeepCopyInto(out *WattTimeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WattTimeList) DeepCopyObject ¶
func (in *WattTimeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WattTimeSpec ¶
type WattTimeSpec struct { Username string `json:"username"` Password *v1.SecretReference `json:"password"` }
WattTimeSpec defines the desired state of WattTime
func (*WattTimeSpec) DeepCopy ¶
func (in *WattTimeSpec) DeepCopy() *WattTimeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WattTimeSpec.
func (*WattTimeSpec) DeepCopyInto ¶
func (in *WattTimeSpec) DeepCopyInto(out *WattTimeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WattTimeStatus ¶
type WattTimeStatus struct { }
WattTimeStatus defines the observed state of WattTime
func (*WattTimeStatus) DeepCopy ¶
func (in *WattTimeStatus) DeepCopy() *WattTimeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WattTimeStatus.
func (*WattTimeStatus) DeepCopyInto ¶
func (in *WattTimeStatus) DeepCopyInto(out *WattTimeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.