controllers

package
v0.0.0-...-cf9738e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAlert

func CreateAlert(alert *kibanaalertsv1alpha1.KibanaAlerts) error

func DeleteAlert

func DeleteAlert(alert *kibanaalertsv1alpha1.KibanaAlerts) error

func GetResponseAlertID

func GetResponseAlertID(responseBody []byte) string

getAlertID if not exists, set alert ID from http response

func GetResponseStatus

func GetResponseStatus(responseBody []byte, response *http.Response) [2]string

func UpdateAlert

func UpdateAlert(alert *kibanaalertsv1alpha1.KibanaAlerts) error

Types

type KibanaAlertsReconciler

type KibanaAlertsReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

KibanaAlertsReconciler reconciles a KibanaAlerts object

func (*KibanaAlertsReconciler) FinalizeAlert

func (*KibanaAlertsReconciler) Reconcile

func (r *KibanaAlertsReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*KibanaAlertsReconciler) SetupWithManager

func (r *KibanaAlertsReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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