Documentation
¶
Overview ¶
Package builtin provides the builtin ingestion engine
Index ¶
Constants ¶
View Source
const (
// BuiltinRuleDataIngestType is the type of the builtin rule data ingest engine
BuiltinRuleDataIngestType = "builtin"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleDataIngest ¶ added in v0.0.88
type RuleDataIngest struct {
// contains filtered or unexported fields
}
RuleDataIngest is the engine for a rule type that uses builtin methods
func NewRuleDataIngest ¶ added in v0.0.88
func NewRuleDataIngest(builtinCfg *pb.BuiltinType) (*RuleDataIngest, error)
NewRuleDataIngest creates a new builtin rule data ingest engine
func (*RuleDataIngest) FileContext ¶ added in v0.0.88
func (*RuleDataIngest) FileContext() billy.Filesystem
FileContext returns a file context that an evaluator can use to do rule evaluation. the builtin engine does not support file context.
func (*RuleDataIngest) GetConfig ¶ added in v0.0.88
func (idi *RuleDataIngest) GetConfig() protoreflect.ProtoMessage
GetConfig returns the config for the builtin rule data ingest engine
func (*RuleDataIngest) GetType ¶ added in v0.0.88
func (*RuleDataIngest) GetType() string
GetType returns the type of the builtin rule data ingest engine
func (*RuleDataIngest) Ingest ¶ added in v0.0.88
func (idi *RuleDataIngest) Ingest( ctx context.Context, ent protoreflect.ProtoMessage, params map[string]any) (*interfaces.Ingested, error)
Ingest calls the builtin method and populates the data to be returned
Click to show internal directories.
Click to hide internal directories.