firewall

package
v1.8.5-beta4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

firewall exporter

Index

Constants

View Source
const (
	AddressId_AddressSet int32 = iota
	AddressId_RuleSet_Source
	AddressId_RuleSet_Destination
)

Variables

This section is empty.

Functions

func FormatConfigInfo added in v1.8.6

func FormatConfigInfo(configInfo string) ([]byte, error)

func RequestHandler

func RequestHandler(w http.ResponseWriter, r *http.Request)

func SetLogger

func SetLogger(globalLogger log.Logger)

Types

type ExporterConfig

type ExporterConfig struct {
	Firewalls []ShellConfig `json:"firewalls"`
}

type ShellConfig

type ShellConfig struct {
	Name     string     `json:"name"`
	Host     string     `json:"host"`
	User     string     `json:"user"`
	Password string     `json:"password"`
	Mode     string     `json:"mode"`
	Prompt   string     `json:"prompt"`
	Steps    []StepInfo `json:"steps"`
}

type StepInfo

type StepInfo struct {
	Command        string `json:"command"`
	ScriptFunction string `json:"scriptFunction"`
}

Jump to

Keyboard shortcuts

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