v1

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAlertmanagerGeneratingHandler added in v1.2.2

func RegisterAlertmanagerGeneratingHandler(ctx context.Context, controller AlertmanagerController, apply apply.Apply,
	condition condition.Cond, name string, handler AlertmanagerGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterAlertmanagerGeneratingHandler configures a AlertmanagerController to execute a AlertmanagerGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterAlertmanagerStatusHandler added in v1.2.2

func RegisterAlertmanagerStatusHandler(ctx context.Context, controller AlertmanagerController, condition condition.Cond, name string, handler AlertmanagerStatusHandler)

RegisterAlertmanagerStatusHandler configures a AlertmanagerController to execute a AlertmanagerStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterPrometheusGeneratingHandler added in v1.1.2

func RegisterPrometheusGeneratingHandler(ctx context.Context, controller PrometheusController, apply apply.Apply,
	condition condition.Cond, name string, handler PrometheusGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterPrometheusGeneratingHandler configures a PrometheusController to execute a PrometheusGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterPrometheusStatusHandler added in v1.1.2

func RegisterPrometheusStatusHandler(ctx context.Context, controller PrometheusController, condition condition.Cond, name string, handler PrometheusStatusHandler)

RegisterPrometheusStatusHandler configures a PrometheusController to execute a PrometheusStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

Types

type AlertmanagerCache

type AlertmanagerCache interface {
	generic.CacheInterface[*v1.Alertmanager]
}

AlertmanagerCache interface for retrieving Alertmanager resources in memory.

type AlertmanagerClient

type AlertmanagerClient interface {
	generic.ClientInterface[*v1.Alertmanager, *v1.AlertmanagerList]
}

AlertmanagerClient interface for managing Alertmanager resources in Kubernetes.

type AlertmanagerController

type AlertmanagerController interface {
	generic.ControllerInterface[*v1.Alertmanager, *v1.AlertmanagerList]
}

AlertmanagerController interface for managing Alertmanager resources.

type AlertmanagerGeneratingHandler added in v1.2.2

type AlertmanagerGeneratingHandler func(obj *v1.Alertmanager, status v1.AlertmanagerStatus) ([]runtime.Object, v1.AlertmanagerStatus, error)

AlertmanagerGeneratingHandler is the top-level handler that is executed for every Alertmanager event. It extends AlertmanagerStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type AlertmanagerStatusHandler added in v1.2.2

type AlertmanagerStatusHandler func(obj *v1.Alertmanager, status v1.AlertmanagerStatus) (v1.AlertmanagerStatus, error)

AlertmanagerStatusHandler is executed for every added or modified Alertmanager. Should return the new status to be updated

type Interface

type Interface interface {
	Alertmanager() AlertmanagerController
	Prometheus() PrometheusController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type PrometheusCache

type PrometheusCache interface {
	generic.CacheInterface[*v1.Prometheus]
}

PrometheusCache interface for retrieving Prometheus resources in memory.

type PrometheusClient

type PrometheusClient interface {
	generic.ClientInterface[*v1.Prometheus, *v1.PrometheusList]
}

PrometheusClient interface for managing Prometheus resources in Kubernetes.

type PrometheusController

type PrometheusController interface {
	generic.ControllerInterface[*v1.Prometheus, *v1.PrometheusList]
}

PrometheusController interface for managing Prometheus resources.

type PrometheusGeneratingHandler added in v1.1.2

type PrometheusGeneratingHandler func(obj *v1.Prometheus, status v1.PrometheusStatus) ([]runtime.Object, v1.PrometheusStatus, error)

PrometheusGeneratingHandler is the top-level handler that is executed for every Prometheus event. It extends PrometheusStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type PrometheusStatusHandler added in v1.1.2

type PrometheusStatusHandler func(obj *v1.Prometheus, status v1.PrometheusStatus) (v1.PrometheusStatus, error)

PrometheusStatusHandler is executed for every added or modified Prometheus. Should return the new status to be updated

Jump to

Keyboard shortcuts

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