Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package
Package v1alpha1 contains API Schema definitions for the uptrends.operators.ionos-cloud.github.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=operators.ionos-cloud.github.io
Index ¶
Constants ¶
const ( // CRDResourceKind ... CRDResourceKind = "Uptrends" // AnnotationPrefix ... AnnotationPrefix = "uptrends.ionos-cloud.github.io/monitor." // FinalizerName ... FinalizerName = "uptrends.ionos-cloud.github.io/finalizer" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "operators.ionos-cloud.github.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 )
Functions ¶
This section is empty.
Types ¶
type MonitorGroup ¶ added in v0.1.0
type MonitorGroup struct {
// GUID is the id of the monitor group.
GUID string `json:"guid"`
}
MonitorGroup defines a monitor group.
func (*MonitorGroup) DeepCopy ¶ added in v0.1.0
func (in *MonitorGroup) DeepCopy() *MonitorGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorGroup.
func (*MonitorGroup) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorGroup) DeepCopyInto(out *MonitorGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Uptrends ¶
type Uptrends struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UptrendsSpec `json:"spec,omitempty"`
Status UptrendsStatus `json:"status,omitempty"`
}
Uptrends is the Schema for the uptrends API +k8s:openapi-gen=true +kubebuilder:subresource:status +operator-sdk:csv:customresourcedefinitions:resources={{Uptrends,v1alpha1,""}} +operator-sdk:csv:customresourcedefinitions:resources={{Ingress,v1,""}}
func (*Uptrends) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Uptrends.
func (*Uptrends) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Uptrends) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UptrendsList ¶
type UptrendsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Uptrends `json:"items"`
}
UptrendsList contains a list of Uptrends
func (*UptrendsList) DeepCopy ¶
func (in *UptrendsList) DeepCopy() *UptrendsList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UptrendsList.
func (*UptrendsList) DeepCopyInto ¶
func (in *UptrendsList) DeepCopyInto(out *UptrendsList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UptrendsList) DeepCopyObject ¶
func (in *UptrendsList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UptrendsPhase ¶
type UptrendsPhase string
const ( UptrendsPhaseNone UptrendsPhase = "" UptrendsPhaseCreating UptrendsPhase = "Creating" UptrendsPhaseRunning UptrendsPhase = "Running" UptrendsPhaseFailed UptrendsPhase = "Failed" )
type UptrendsSpec ¶
type UptrendsSpec struct {
// Type of the Monitor.
Type string `json:"type"`
// Name of the Monitor.
Name string `json:"name"`
// Description of the Monitor.
Description string `json:"description"`
// Interval of the Monitor.
Interval int `json:"interval"`
// Url of the Monitor.
Url string `json:"url"`
// MonitorGroup associates a monitor group.
Group MonitorGroup `json:"group"`
}
UptrendsSpec defines the desired state of Uptrends +k8s:openapi-gen=true
func (*UptrendsSpec) DeepCopy ¶
func (in *UptrendsSpec) DeepCopy() *UptrendsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UptrendsSpec.
func (*UptrendsSpec) DeepCopyInto ¶
func (in *UptrendsSpec) DeepCopyInto(out *UptrendsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UptrendsStatus ¶
type UptrendsStatus struct {
// Phase is the Uptrends running phase.
Phase UptrendsPhase `json:"phase"`
// ControlPaused indicates the operator pauses the control of
// Uptrends.
ControlPaused bool `json:"controlPaused,omitempty"`
// MonitorGuid is the ID of the Uptrends Monitor.
MonitorGuid string `json:"monitorGuid,omitempty"`
}
UptrendsStatus defines the observed state of Uptrends +k8s:openapi-gen=true
func (*UptrendsStatus) DeepCopy ¶
func (in *UptrendsStatus) DeepCopy() *UptrendsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UptrendsStatus.
func (*UptrendsStatus) DeepCopyInto ¶
func (in *UptrendsStatus) DeepCopyInto(out *UptrendsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.