test

package
v0.11.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 45 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) 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.AlertingPeer   `option:"subscribers"`
}

type TestNodeDriver added in v0.11.0

type TestNodeDriver struct{}

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