v1alpha1

package
v0.1.13 Latest Latest
Warning

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

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

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

View Source
const (
	// CRDResourceKind ...
	CRDResourceKind = "Uptrends"
	// AnnotationPrefix ...
	AnnotationPrefix = "uptrends.ionos-cloud.github.io/monitor."
	// FinalizerName ...
	FinalizerName = "uptrends.ionos-cloud.github.io/finalizer"
)

Variables

View Source
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 MonitorCheckpoints added in v0.1.1

type MonitorCheckpoints struct {
	// Regions is the set of entire regions to use.
	Regions []int32 `json:"regions,omitempty"`
	// Checkpoints are single point of presence to use.
	Checkpoints []int32 `json:"checkpoints,omitempty"`
	// ExcludeCheckpoints is a list of point of presence to execlude to use.
	ExcludeCheckpoints []int32 `json:"exclude,omitempty"`
}

MonitorCheckpoints defines the set of point of presence to check from.

func (*MonitorCheckpoints) DeepCopy added in v0.1.1

func (in *MonitorCheckpoints) DeepCopy() *MonitorCheckpoints

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

func (*MonitorCheckpoints) DeepCopyInto added in v0.1.1

func (in *MonitorCheckpoints) DeepCopyInto(out *MonitorCheckpoints)

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

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

func (in *Uptrends) DeepCopy() *Uptrends

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

func (*Uptrends) DeepCopyInto

func (in *Uptrends) DeepCopyInto(out *Uptrends)

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

func (*Uptrends) DeepCopyObject

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

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,omitempty"`
	// Checkpoints are the checkpoints to use for monitoring.
	Checkpoints MonitorCheckpoints `json:"checkpoints,omitempty"`
}

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) Control

func (cs *UptrendsStatus) Control()

Control ...

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.

func (*UptrendsStatus) IsFailed

func (cs *UptrendsStatus) IsFailed() bool

IsFailed ...

func (*UptrendsStatus) PauseControl

func (cs *UptrendsStatus) PauseControl()

PauseControl ...

func (*UptrendsStatus) SetPhase

func (cs *UptrendsStatus) SetPhase(p UptrendsPhase)

SetPhase ...

Jump to

Keyboard shortcuts

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