Documentation ¶
Overview ¶
Package builtin provides the builtin ingestion engine
Index ¶
- Constants
- type BuiltinRuleDataIngest
- func (*BuiltinRuleDataIngest) FileContext() billy.Filesystem
- func (idi *BuiltinRuleDataIngest) GetConfig() protoreflect.ProtoMessage
- func (*BuiltinRuleDataIngest) GetType() string
- func (idi *BuiltinRuleDataIngest) Ingest(ctx context.Context, ent protoreflect.ProtoMessage, params map[string]any) (*interfaces.Result, error)
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 BuiltinRuleDataIngest ¶
type BuiltinRuleDataIngest struct {
// contains filtered or unexported fields
}
BuiltinRuleDataIngest is the engine for a rule type that uses builtin methods
func NewBuiltinRuleDataIngest ¶
func NewBuiltinRuleDataIngest(builtinCfg *pb.BuiltinType) (*BuiltinRuleDataIngest, error)
NewBuiltinRuleDataIngest creates a new builtin rule data ingest engine
func (*BuiltinRuleDataIngest) FileContext ¶
func (*BuiltinRuleDataIngest) 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 (*BuiltinRuleDataIngest) GetConfig ¶
func (idi *BuiltinRuleDataIngest) GetConfig() protoreflect.ProtoMessage
GetConfig returns the config for the builtin rule data ingest engine
func (*BuiltinRuleDataIngest) GetType ¶
func (*BuiltinRuleDataIngest) GetType() string
GetType returns the type of the builtin rule data ingest engine
func (*BuiltinRuleDataIngest) Ingest ¶
func (idi *BuiltinRuleDataIngest) Ingest(ctx context.Context, ent protoreflect.ProtoMessage, params map[string]any) (*interfaces.Result, error)
Ingest calls the builtin method and populates the data to be returned
Click to show internal directories.
Click to hide internal directories.