Documentation ¶
Index ¶
- type AlertingClusterManager
- func (a *AlertingClusterManager) ConfigureCluster(ctx context.Context, conf *alertops.ClusterConfiguration) (*emptypb.Empty, error)
- func (a *AlertingClusterManager) GetClusterConfiguration(ctx context.Context, _ *emptypb.Empty) (*alertops.ClusterConfiguration, error)
- func (a *AlertingClusterManager) GetClusterStatus(ctx context.Context, _ *emptypb.Empty) (status *alertops.InstallStatus, retErr error)
- func (a *AlertingClusterManager) GetDefaultReceiver() *config.WebhookConfig
- func (a *AlertingClusterManager) Info(_ context.Context, _ *emptypb.Empty) (*alertops.ComponentInfo, error)
- func (a *AlertingClusterManager) InstallCluster(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (a *AlertingClusterManager) ShouldDisableNode(_ *corev1.Reference) error
- func (a *AlertingClusterManager) UninstallCluster(ctx context.Context, _ *alertops.UninstallRequest) (*emptypb.Empty, error)
- type AlertingDriverOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertingClusterManager ¶ added in v0.10.0
type AlertingClusterManager struct { AlertingDriverOptions alertops.UnsafeAlertingAdminServer }
func NewAlertingClusterManager ¶ added in v0.10.0
func NewAlertingClusterManager(options AlertingDriverOptions) (*AlertingClusterManager, error)
func (*AlertingClusterManager) ConfigureCluster ¶ added in v0.10.0
func (a *AlertingClusterManager) ConfigureCluster(ctx context.Context, conf *alertops.ClusterConfiguration) (*emptypb.Empty, error)
func (*AlertingClusterManager) GetClusterConfiguration ¶ added in v0.10.0
func (a *AlertingClusterManager) GetClusterConfiguration(ctx context.Context, _ *emptypb.Empty) (*alertops.ClusterConfiguration, error)
func (*AlertingClusterManager) GetClusterStatus ¶ added in v0.10.0
func (a *AlertingClusterManager) GetClusterStatus(ctx context.Context, _ *emptypb.Empty) (status *alertops.InstallStatus, retErr error)
func (*AlertingClusterManager) GetDefaultReceiver ¶ added in v0.11.2
func (a *AlertingClusterManager) GetDefaultReceiver() *config.WebhookConfig
func (*AlertingClusterManager) Info ¶ added in v0.11.1
func (a *AlertingClusterManager) Info(_ context.Context, _ *emptypb.Empty) (*alertops.ComponentInfo, error)
func (*AlertingClusterManager) InstallCluster ¶ added in v0.10.0
func (*AlertingClusterManager) ShouldDisableNode ¶ added in v0.10.0
func (a *AlertingClusterManager) ShouldDisableNode(_ *corev1.Reference) error
func (*AlertingClusterManager) UninstallCluster ¶ added in v0.10.0
func (a *AlertingClusterManager) UninstallCluster(ctx context.Context, _ *alertops.UninstallRequest) (*emptypb.Empty, error)
type AlertingDriverOptions ¶ added in v0.10.0
type AlertingDriverOptions struct { Logger *slog.Logger `option:"logger"` K8sClient client.Client `option:"k8sClient"` GatewayRef types.NamespacedName `option:"gatewayRef"` ConfigKey string `option:"configKey"` InternalRoutingKey string `option:"internalRoutingKey"` AlertingOptions *shared.AlertingClusterOptions `option:"alertingOptions"` Subscribers []chan alertingClient.AlertingClient `option:"subscribers"` TlsConfig *tls.Config `option:"tlsConfig"` }
Click to show internal directories.
Click to hide internal directories.