noop

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package noop provides a fallback alert engine for cases where no alert is set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

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

Alert is the structure backing the noop alert

func NewNoopAlert

func NewNoopAlert(actionType interfaces.ActionType) (*Alert, error)

NewNoopAlert creates a new noop alert engine

func (*Alert) Class

func (a *Alert) Class() interfaces.ActionType

Class returns the action type of the noop engine

func (*Alert) Do

Do perform the noop alert

func (*Alert) GetOnOffState

func (_ *Alert) GetOnOffState() models.ActionOpt

GetOnOffState returns the off state of the noop engine

func (*Alert) Type

func (_ *Alert) Type() string

Type returns the action subtype of the remediation engine

Jump to

Keyboard shortcuts

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