coreplugin

package
v1.4.4-alpha1202-diff-... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlackListCorePlugin = []string{
	"启发式SQL注入检测",
}
View Source
var LoadCorePluginHooks = []func(name string, source string) string{}

Functions

func ClearBlackListPlugin

func ClearBlackListPlugin(blackList []string)

func CorePluginHash

func CorePluginHash() (string, error)

func GetAllCorePluginName

func GetAllCorePluginName() []string

func GetCorePluginData

func GetCorePluginData(name string) []byte

func GetCorePluginDataWithHook

func GetCorePluginDataWithHook(name string) []byte

func OverWriteCorePluginToLocal

func OverWriteCorePluginToLocal()

only use for test

func OverWriteYakPlugin

func OverWriteYakPlugin(name string, scriptData *schema.YakScript, enableGenerateParam bool)

func ParseProjectWithAutoDetective

func ParseProjectWithAutoDetective(ctx context.Context, path, language string, compileImmediately bool, inputs ...map[string]any) (*autoDetectInfo, *ssaapi.Program, func(), error)

func RegisterLoadCorePluginHook

func RegisterLoadCorePluginHook(hook func(name string, source string) string)

Types

type PlugInfo

type PlugInfo struct {
	PlugName    string
	BinDataPath string
}

Jump to

Keyboard shortcuts

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