polardbxmonitor

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolarDBXMonitor

func NewPolarDBXMonitor(clusterName, namespace string, opts ...MonitorFactoryOption) *polardbxv1.PolarDBXMonitor

func WaitForPolarDBXMonitorToDisappear

func WaitForPolarDBXMonitorToDisappear(c client.Client, name, namespace string, timeout time.Duration) error

func WaitForPolarDBXMonitorWithLabelsToDisappear

func WaitForPolarDBXMonitorWithLabelsToDisappear(c client.Client, ns string, labels map[string]string, timeout time.Duration) error

func WaitForServiceMonitorWithLabelsToDisappear

func WaitForServiceMonitorWithLabelsToDisappear(c client.Client, ns string, labels map[string]string, timeout time.Duration) error

func WaitPolarDBXMonitorInStatus

func WaitPolarDBXMonitorInStatus(c client.Client, name, namespace string,
	statuslist []polardbx.MonitorStatus, timeout time.Duration) (*polardbxv1.PolarDBXMonitor, error)

Types

type MonitorFactoryOption

type MonitorFactoryOption func(monitor *polardbxv1.PolarDBXMonitor)

func MonitorInterval

func MonitorInterval(interval metav1.Duration) MonitorFactoryOption

func ScrapeTimeout

func ScrapeTimeout(timeout metav1.Duration) MonitorFactoryOption

Jump to

Keyboard shortcuts

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