noop

package
v0.0.68 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remediator

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

Remediator is the structure backing the noop remediator

func NewNoopRemediate

func NewNoopRemediate(actionType interfaces.ActionType) (*Remediator, error)

NewNoopRemediate creates a new noop remediation engine

func (*Remediator) Class

func (r *Remediator) Class() interfaces.ActionType

Class returns the action type of the noop engine

func (*Remediator) Do

Do perform the remediation

func (*Remediator) GetOnOffState

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

GetOnOffState returns the off state of the noop engine

func (*Remediator) Type

func (_ *Remediator) 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