alerting_manager

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

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 (*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 (*AlertingClusterManager) InstallCluster added in v0.10.0

func (a *AlertingClusterManager) InstallCluster(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*AlertingClusterManager) ShouldDisableNode added in v0.10.0

func (a *AlertingClusterManager) ShouldDisableNode(_ *corev1.Reference) error

func (*AlertingClusterManager) UninstallCluster added in v0.10.0

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"`
}

Jump to

Keyboard shortcuts

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