-
Notifications
You must be signed in to change notification settings - Fork 8
/
aliases.go
51 lines (37 loc) · 1.21 KB
/
aliases.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package vfilter
import (
"context"
"github.com/Velocidex/ordereddict"
"www.velocidex.com/golang/vfilter/arg_parser"
"www.velocidex.com/golang/vfilter/functions"
"www.velocidex.com/golang/vfilter/plugins"
"www.velocidex.com/golang/vfilter/scope"
"www.velocidex.com/golang/vfilter/types"
"www.velocidex.com/golang/vfilter/utils/dict"
)
// Aliases to public types.
type Any = types.Any
type Row = types.Row
type Scope = types.Scope
type FunctionInterface = types.FunctionInterface
type FunctionInfo = types.FunctionInfo
type PluginInfo = types.PluginInfo
type PluginGeneratorInterface = types.PluginGeneratorInterface
type GenericListPlugin = plugins.GenericListPlugin
type GenericFunction = functions.GenericFunction
type TypeMap = types.TypeMap
type Null = types.Null
type LazyExpr = types.LazyExpr
type StoredQuery = types.StoredQuery
type ScopeUnmarshaller = scope.ScopeUnmarshaller
func NewScope() types.Scope {
return scope.NewScope()
}
func ExtractArgs(scope types.Scope, args *ordereddict.Dict, value interface{}) error {
return arg_parser.ExtractArgs(scope, args, value)
}
func RowToDict(
ctx context.Context,
scope types.Scope, row types.Row) *ordereddict.Dict {
return dict.RowToDict(ctx, scope, row)
}