Documentation
¶
Index ¶
- func CheckPluginType(pluginType string, prog *ssaapi.Program)
- func GetPluginSSAOpt(pluginType string) []ssaapi.Option
- func RegisterCheckRuler(pluginTyp string, f CheckRuler)
- func RegisterSSAOptCollector(pluginTyp string, f SSAOptCollector)
- type CheckRuler
- type CliParameter
- type PluginTypeAnalyzer
- type RiskInfo
- type SSAOptCollector
- type YaklangInfo
- type YaklangInfoKV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPluginType ¶
func GetPluginSSAOpt ¶
func RegisterCheckRuler ¶
func RegisterCheckRuler(pluginTyp string, f CheckRuler)
func RegisterSSAOptCollector ¶
func RegisterSSAOptCollector(pluginTyp string, f SSAOptCollector)
Types ¶
type CheckRuler ¶
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
func ParseRiskInfo ¶ added in v1.3.0
type SSAOptCollector ¶
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
Click to show internal directories.
Click to hide internal directories.