Skip to content

Commit

Permalink
Updated starl VQL plugins. (Velocidex#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette authored Jun 20, 2021
1 parent 45b8fb7 commit 68a0d2c
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 238 deletions.
4 changes: 0 additions & 4 deletions .github/FUNDING.yml

This file was deleted.

3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ require (
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38
github.com/alecthomas/chroma v0.7.2
github.com/alecthomas/participle v0.7.1
github.com/alecthomas/repr v0.0.0-20210611225437-1a2716eca9d6 // indirect
github.com/alexmullins/zip v0.0.0-20180717182244-4affb64b04d0
github.com/aws/aws-sdk-go v1.26.7
github.com/bi-zone/etw v0.0.0-20200916105032-b215904fae4f
Expand Down Expand Up @@ -123,7 +124,7 @@ require (
www.velocidex.com/golang/go-prefetch v0.0.0-20200722101157-37e4751dd5ca
www.velocidex.com/golang/oleparse v0.0.0-20190327031422-34195d413196
www.velocidex.com/golang/regparser v0.0.0-20190625082115-b02dc43c2500
www.velocidex.com/golang/vfilter v0.0.0-20210531163909-d0a0745e41b7
www.velocidex.com/golang/vfilter v0.0.0-20210620044135-56aeed157e90
www.velocidex.com/golang/vtypes v0.0.0-20210531054645-7ec8b6e24d88
)

Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ github.com/alecthomas/repr v0.0.0-20200325044227-4184120f674c/go.mod h1:xTS7Pm1p
github.com/alecthomas/repr v0.0.0-20201120212035-bb82daffcca2/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8=
github.com/alecthomas/repr v0.0.0-20210301060118-828286944d6a h1:GY6ZI5mOHoiQ+g2ETFQGYu6fNgc6bCe4b4kr8tSrhpg=
github.com/alecthomas/repr v0.0.0-20210301060118-828286944d6a/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8=
github.com/alecthomas/repr v0.0.0-20210611225437-1a2716eca9d6 h1:U80AUqb3eEPLw60yvrEa2WadeJw+U1N8XeCVsUREep0=
github.com/alecthomas/repr v0.0.0-20210611225437-1a2716eca9d6/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
Expand Down Expand Up @@ -968,5 +970,7 @@ www.velocidex.com/golang/regparser v0.0.0-20190625082115-b02dc43c2500/go.mod h1:
www.velocidex.com/golang/vfilter v0.0.0-20210515085940-25d96b94dafb/go.mod h1:KB724xBNYh4lgipyGwsvx0/5hXRqsKjmrMrkSjGESvU=
www.velocidex.com/golang/vfilter v0.0.0-20210531163909-d0a0745e41b7 h1:3xbomFv89/F/RlXE5jHDFz2aQHL9iFc+dtB/VRVaJs0=
www.velocidex.com/golang/vfilter v0.0.0-20210531163909-d0a0745e41b7/go.mod h1:KB724xBNYh4lgipyGwsvx0/5hXRqsKjmrMrkSjGESvU=
www.velocidex.com/golang/vfilter v0.0.0-20210620044135-56aeed157e90 h1:eR1lB34q/EyhoQ/xy3wtw2TsWG9ml3djxBHixI6WaGU=
www.velocidex.com/golang/vfilter v0.0.0-20210620044135-56aeed157e90/go.mod h1:KB724xBNYh4lgipyGwsvx0/5hXRqsKjmrMrkSjGESvU=
www.velocidex.com/golang/vtypes v0.0.0-20210531054645-7ec8b6e24d88 h1:Fb7nzCAXBVzXbSUXO5sq5msYieB2GMfG7BGnZRDjKMM=
www.velocidex.com/golang/vtypes v0.0.0-20210531054645-7ec8b6e24d88/go.mod h1:PIG8uSY330pJd620KPksZpTaAsX3sIMiiNJQihZph6c=
34 changes: 34 additions & 0 deletions vql/tools/fixtures/TestStarlark.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"000/000 Starlark Module Materialized: LET X\u003c=starl(code=StarCode)": null,
"000/001 Starlark Module Materialized: SELECT X.Foo(X=2), X.SomeInt, X.Foo, X.SomeInt(X=1) FROM scope()": [
{
"X.Foo(X=2)": 4,
"X.SomeInt": 2,
"X.Foo": null,
"X.SomeInt(X=1)": null
}
],
"001/000 Starlark Module: LET X=starl(code=StarCode)": null,
"001/001 Starlark Module: SELECT X.Foo(X=2), X.SomeInt, X.Foo, X.SomeInt(X=1) FROM scope()": [
{
"X.Foo(X=2)": 4,
"X.SomeInt": 2,
"X.Foo": null,
"X.SomeInt(X=1)": null
}
],
"002/000 Starlark types: LET X=starl(code=StarCode)": null,
"002/001 Starlark types: SELECT X.Foo(X=2, Y=\"String\", Z= [2, 3]) FROM scope()": [
{
"X.Foo(X=2, Y=\"String\", Z= [2, 3])": [
4,
"StringA",
[
1,
2,
3
]
]
}
]
}
Loading

0 comments on commit 68a0d2c

Please sign in to comment.