plugin_type_analyzer

package
v1.2.9-sp7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPluginType

func CheckPluginType(pluginType string, prog *ssaapi.Program)

func GetPluginSSAOpt

func GetPluginSSAOpt(pluginType string) []ssaapi.Option

func RegisterCheckRuler

func RegisterCheckRuler(pluginTyp string, f CheckRuler)

func RegisterSSAOptCollector

func RegisterSSAOptCollector(pluginTyp string, f SSAOptCollector)

Types

type CheckRuler

type CheckRuler func(*ssaapi.Program)

type CliParameter added in v1.3.0

type CliParameter struct {
	Name           string
	NameVerbose    string
	Required       bool
	Type           string
	Default        any
	Help           string
	Group          string
	MultipleSelect bool
	SelectOption   map[string]string
}

func ParseCliParameter added in v1.3.0

func ParseCliParameter(prog *ssaapi.Program) []*CliParameter

type PluginTypeAnalyzer

type PluginTypeAnalyzer struct {
	SSAOptCollectors map[string]SSAOptCollector
	// TypeInfoCollectors map[string][]TypeInfoCollector
	CheckRulers map[string][]CheckRuler
}

type RiskInfo added in v1.3.0

type RiskInfo struct {
	Level             string
	CVE               string
	Type, TypeVerbose string
}

func ParseRiskInfo added in v1.3.0

func ParseRiskInfo(prog *ssaapi.Program) []*RiskInfo

type SSAOptCollector

type SSAOptCollector func() []ssaapi.Option

TypeInfoCollector func(*ssaapi.Program) *YaklangInfo

type YaklangInfo

type YaklangInfo struct {
	Name string
	KV   []*YaklangInfoKV
}

func NewYakLangInfo

func NewYakLangInfo(name string) *YaklangInfo

func (*YaklangInfo) AddKV

func (y *YaklangInfo) AddKV(value *YaklangInfoKV)

type YaklangInfoKV

type YaklangInfoKV struct {
	Key    string
	Value  any
	Extern []*YaklangInfoKV
}

func NewYaklangInfoKV

func NewYaklangInfoKV(key string, value any) *YaklangInfoKV

func (*YaklangInfoKV) AddExtern

func (y *YaklangInfoKV) AddExtern(key string, value any)

func (*YaklangInfoKV) AddExternInfo

func (y *YaklangInfoKV) AddExternInfo(info *YaklangInfoKV)

func (*YaklangInfoKV) String

func (y *YaklangInfoKV) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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