Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCoreFunctions ¶ added in v0.3.0
func RegisterCoreFunctions(rule javascript.JSEnabledRuleFunction)
Types ¶
type FunctionHook ¶
type FunctionHook func(nodes []*yaml.Node, context model.RuleFunctionContext) []model.RuleFunctionResult
type FunctionSchema ¶
type FunctionSchema func() model.RuleFunctionSchema
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func CreatePluginManager ¶ added in v0.0.19
func CreatePluginManager() *Manager
func LoadFunctions ¶
LoadFunctions will load custom functions found in the supplied path
func (*Manager) GetCustomFunctions ¶
func (pm *Manager) GetCustomFunctions() map[string]model.RuleFunction
func (*Manager) LoadedFunctionCount ¶
LoadedFunctionCount returns the number of available and ready to use functions.
func (*Manager) RegisterFunction ¶
func (pm *Manager) RegisterFunction(name string, ruleFunction model.RuleFunction)
RegisterFunction allows a custom function to be hooked in
Click to show internal directories.
Click to hide internal directories.