Documentation ¶
Index ¶
- func NewPolarDBXMonitor(clusterName, namespace string, opts ...MonitorFactoryOption) *polardbxv1.PolarDBXMonitor
- func WaitForPolarDBXMonitorToDisappear(c client.Client, name, namespace string, timeout time.Duration) error
- func WaitForPolarDBXMonitorWithLabelsToDisappear(c client.Client, ns string, labels map[string]string, timeout time.Duration) error
- func WaitForServiceMonitorWithLabelsToDisappear(c client.Client, ns string, labels map[string]string, timeout time.Duration) error
- func WaitPolarDBXMonitorInStatus(c client.Client, name, namespace string, statuslist []polardbx.MonitorStatus, ...) (*polardbxv1.PolarDBXMonitor, error)
- type MonitorFactoryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolarDBXMonitor ¶
func NewPolarDBXMonitor(clusterName, namespace string, opts ...MonitorFactoryOption) *polardbxv1.PolarDBXMonitor
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
Click to show internal directories.
Click to hide internal directories.