test

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertingServerUnit

type AlertingServerUnit struct {
	AlertManagerPort int
	ClusterPort      int
	OpniPort         int
	Ctx              context.Context
	CancelFunc       context.CancelFunc
}

type TestEnvAlertingClusterDriver

type TestEnvAlertingClusterDriver struct {
	ConfigFile string

	*shared.AlertingClusterOptions

	*alertops.ClusterConfiguration

	alertops.UnsafeAlertingAdminServer
	client.AlertingClient
	// contains filtered or unexported fields
}

func (*TestEnvAlertingClusterDriver) ConfigureCluster

func (l *TestEnvAlertingClusterDriver) ConfigureCluster(_ context.Context, configuration *alertops.ClusterConfiguration) (*emptypb.Empty, error)

func (*TestEnvAlertingClusterDriver) GetClusterConfiguration

func (*TestEnvAlertingClusterDriver) GetClusterStatus

func (*TestEnvAlertingClusterDriver) GetDefaultReceiver added in v0.11.2

func (l *TestEnvAlertingClusterDriver) GetDefaultReceiver() *config.WebhookConfig

func (*TestEnvAlertingClusterDriver) Info added in v0.11.1

func (*TestEnvAlertingClusterDriver) InstallCluster

func (*TestEnvAlertingClusterDriver) Name

func (*TestEnvAlertingClusterDriver) ShouldDisableNode

func (l *TestEnvAlertingClusterDriver) ShouldDisableNode(_ *corev1.Reference) error

func (*TestEnvAlertingClusterDriver) StartAlertingBackendServer

func (l *TestEnvAlertingClusterDriver) StartAlertingBackendServer(
	ctx context.Context,
	configFilePath string,
) AlertingServerUnit

func (*TestEnvAlertingClusterDriver) UninstallCluster

type TestEnvAlertingClusterDriverOptions

type TestEnvAlertingClusterDriverOptions struct {
	AlertingOptions *shared.AlertingClusterOptions `option:"alertingOptions"`
	Subscribers     []chan client.AlertingClient   `option:"subscribers"`
}

type TestNodeDriver added in v0.11.0

type TestNodeDriver struct {
	// contains filtered or unexported fields
}

func NewTestNodeDriver added in v0.11.0

func NewTestNodeDriver() *TestNodeDriver

func (*TestNodeDriver) ConfigureNode added in v0.11.0

func (n *TestNodeDriver) ConfigureNode(_ string, _ *node.AlertingCapabilityConfig) error

func (*TestNodeDriver) DiscoverRules added in v0.11.0

func (n *TestNodeDriver) DiscoverRules(_ context.Context) (*rules.RuleManifest, error)

Jump to

Keyboard shortcuts

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