v1alpha1

package
v0.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 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 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"`
}

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