firewall

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package firewall provides a compliance plugin for firewall-specific security checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin implements the compliance.Plugin interface for Firewall plugin.

func NewPlugin

func NewPlugin() *Plugin

NewPlugin creates a new Firewall compliance plugin.

func (*Plugin) Description

func (fp *Plugin) Description() string

Description returns the plugin description.

func (*Plugin) GetControlByID

func (fp *Plugin) GetControlByID(id string) (*compliance.Control, error)

GetControlByID returns a specific control by ID.

func (*Plugin) GetControls

func (fp *Plugin) GetControls() []compliance.Control

GetControls returns all Firewall controls. The returned slice is a deep copy to prevent callers from mutating the plugin's internal state, including nested reference types (References, Tags, Metadata).

func (*Plugin) Name

func (fp *Plugin) Name() string

Name returns the plugin name.

func (*Plugin) RunChecks

func (fp *Plugin) RunChecks(device *common.CommonDevice) []compliance.Finding

RunChecks performs Firewall compliance checks against the device configuration. Each helper returns (result, known). When known is false the check is skipped because the data needed to determine compliance is not available in config.xml.

func (*Plugin) ValidateConfiguration

func (fp *Plugin) ValidateConfiguration() error

ValidateConfiguration validates the plugin configuration.

func (*Plugin) Version

func (fp *Plugin) Version() string

Version returns the plugin version.

Jump to

Keyboard shortcuts

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