plugin_type

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPluginType

func CheckPluginType(pluginType PluginType, prog *ssaapi.Program) *result.StaticAnalyzeResults

func GetPluginSSAOpt

func GetPluginSSAOpt(pluginType PluginType) []ssaapi.Option

func RegisterCheckRuler

func RegisterCheckRuler(pluginTyp PluginType, f CheckRuler)

func RegisterSSAOptCollector

func RegisterSSAOptCollector(pluginTyp PluginType, f SSAOptCollector)

Types

type CheckRuler

type CheckRuler func(*ssaapi.Program) *result.StaticAnalyzeResults

type PluginType

type PluginType string
const (
	// plugin type : "yak" "mitm" "port-scan" "codec"
	PluginTypeYak      PluginType = "yak"
	PluginTypeMitm     PluginType = "mitm"
	PluginTypePortScan PluginType = "port-scan"
	PluginTypeCodec    PluginType = "codec"
)

func ToPluginType

func ToPluginType(plugin string) PluginType

type PluginTypeAnalyzer

type PluginTypeAnalyzer struct {
	SSAOptCollectors map[PluginType]SSAOptCollector
	CheckRulers      map[PluginType][]CheckRuler
}

type SSAOptCollector

type SSAOptCollector func() []ssaapi.Option

Jump to

Keyboard shortcuts

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