v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=monitor.digitalocean.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: monitor.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Alert

type Alert struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlertSpec   `json:"spec,omitempty"`
	Status            AlertStatus `json:"status,omitempty"`
}

func (*Alert) DeepCopy

func (in *Alert) DeepCopy() *Alert

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

func (*Alert) DeepCopyInto

func (in *Alert) DeepCopyInto(out *Alert)

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

func (*Alert) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Alert) SetupWebhookWithManager

func (r *Alert) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Alert) ValidateCreate

func (r *Alert) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Alert) ValidateDelete

func (r *Alert) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Alert) ValidateUpdate

func (r *Alert) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type AlertList

type AlertList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Alert CRD objects
	Items []Alert `json:"items,omitempty"`
}

AlertList is a list of Alerts

func (*AlertList) DeepCopy

func (in *AlertList) DeepCopy() *AlertList

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

func (*AlertList) DeepCopyInto

func (in *AlertList) DeepCopyInto(out *AlertList)

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

func (*AlertList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AlertSpec

type AlertSpec struct {
	State *AlertSpecResource `json:"state,omitempty" tf:"-"`

	Resource AlertSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*AlertSpec) DeepCopy

func (in *AlertSpec) DeepCopy() *AlertSpec

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

func (*AlertSpec) DeepCopyInto

func (in *AlertSpec) DeepCopyInto(out *AlertSpec)

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

type AlertSpecAlerts

type AlertSpecAlerts struct {
	// List of email addresses to sent notifications to
	// +optional
	Email []string `json:"email,omitempty" tf:"email"`
	// +optional
	Slack []AlertSpecAlertsSlack `json:"slack,omitempty" tf:"slack"`
}

func (*AlertSpecAlerts) DeepCopy

func (in *AlertSpecAlerts) DeepCopy() *AlertSpecAlerts

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

func (*AlertSpecAlerts) DeepCopyInto

func (in *AlertSpecAlerts) DeepCopyInto(out *AlertSpecAlerts)

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

type AlertSpecAlertsCodec

type AlertSpecAlertsCodec struct {
}

+k8s:deepcopy-gen=false

func (AlertSpecAlertsCodec) Decode

func (AlertSpecAlertsCodec) Encode

func (AlertSpecAlertsCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (AlertSpecAlertsCodec) IsEmpty

func (AlertSpecAlertsCodec) IsEmpty(ptr unsafe.Pointer) bool

type AlertSpecAlertsSlack

type AlertSpecAlertsSlack struct {
	// The Slack channel to send alerts to
	Channel *string `json:"channel" tf:"channel"`
	// The webhook URL for Slack
	Url *string `json:"url" tf:"url"`
}

func (*AlertSpecAlertsSlack) DeepCopy

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

func (*AlertSpecAlertsSlack) DeepCopyInto

func (in *AlertSpecAlertsSlack) DeepCopyInto(out *AlertSpecAlertsSlack)

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

type AlertSpecResource

type AlertSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// List with details how to notify about the alert. Support for Slack or email.
	Alerts *AlertSpecAlerts `json:"alerts" tf:"alerts"`
	// The comparison operator to use for value
	Compare *string `json:"compare" tf:"compare"`
	// Description of the alert policy
	Description *string `json:"description" tf:"description"`
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// The droplets to apply the alert policy to
	// +optional
	// +kubebuilder:validation:MinItems=1
	Entities []string `json:"entities,omitempty" tf:"entities"`
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	Type *string  `json:"type" tf:"type"`
	// +optional
	Uuid   *string  `json:"uuid,omitempty" tf:"uuid"`
	Value  *float64 `json:"value" tf:"value"`
	Window *string  `json:"window" tf:"window"`
}

func (*AlertSpecResource) DeepCopy

func (in *AlertSpecResource) DeepCopy() *AlertSpecResource

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

func (*AlertSpecResource) DeepCopyInto

func (in *AlertSpecResource) DeepCopyInto(out *AlertSpecResource)

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

type AlertStatus

type AlertStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*AlertStatus) DeepCopy

func (in *AlertStatus) DeepCopy() *AlertStatus

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

func (*AlertStatus) DeepCopyInto

func (in *AlertStatus) DeepCopyInto(out *AlertStatus)

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