@@ -16,7 +16,7 @@ import (
16
16
func (* Protobom ) Functions () []cel.EnvOption {
17
17
return []cel.EnvOption {
18
18
cel .Function (
19
- "files " ,
19
+ "get_files " ,
20
20
cel .MemberOverload (
21
21
"sbom_files_binding" , []* types.Type {elements .DocumentType }, elements .NodeListType ,
22
22
cel .UnaryBinding (functions .Files ),
@@ -32,7 +32,7 @@ func (*Protobom) Functions() []cel.EnvOption {
32
32
),
33
33
34
34
cel .Function (
35
- "packages " ,
35
+ "get_packages " ,
36
36
cel .MemberOverload (
37
37
"sbom_packages_binding" , []* cel.Type {elements .DocumentType }, elements .NodeListType ,
38
38
cel .UnaryBinding (functions .Packages ),
@@ -59,7 +59,7 @@ func (*Protobom) Functions() []cel.EnvOption {
59
59
),
60
60
61
61
cel .Function (
62
- "ToNodeList " ,
62
+ "to_node_list " ,
63
63
cel .MemberOverload (
64
64
"document_tonodelist_binding" ,
65
65
[]* cel.Type {elements .DocumentType }, elements .NodeListType ,
@@ -80,7 +80,7 @@ func (*Protobom) Functions() []cel.EnvOption {
80
80
// NodeByID returns a node looking it up by its identifier
81
81
// Overloaded in: Document and NodeList.
82
82
cel .Function (
83
- "NodeByID " ,
83
+ "get_node_by_id " ,
84
84
cel .MemberOverload (
85
85
"sbom_nodebyid_binding" , []* cel.Type {elements .DocumentType , cel .StringType }, elements .NodeType ,
86
86
cel .BinaryBinding (functions .NodeByID ),
@@ -95,7 +95,7 @@ func (*Protobom) Functions() []cel.EnvOption {
95
95
// package URL of a certain type.
96
96
// Overloaded in: Document and NodeList.
97
97
cel .Function (
98
- "NodesByPurlType " ,
98
+ "get_nodes_by_purl_type " ,
99
99
cel .MemberOverload (
100
100
"sbom_nodesbypurltype_binding" , []* cel.Type {elements .DocumentType , cel .StringType }, elements .NodeListType ,
101
101
cel .BinaryBinding (functions .NodesByPurlType ),
@@ -160,7 +160,7 @@ func (*Protobom) Functions() []cel.EnvOption {
160
160
// ToDocument wraps an element and returns a new Document
161
161
// Overloaded in: Node NodeList and Document (noop)
162
162
cel .Function (
163
- "ToDocument " ,
163
+ "to_document " ,
164
164
cel .MemberOverload (
165
165
"document_todocument_binding" ,
166
166
[]* cel.Type {elements .DocumentType }, elements .DocumentType ,
@@ -179,7 +179,7 @@ func (*Protobom) Functions() []cel.EnvOption {
179
179
),
180
180
181
181
cel .Function (
182
- "LoadSBOM " ,
182
+ "load_sbom " ,
183
183
cel .MemberOverload (
184
184
"protobom_loadsbom_binding" ,
185
185
[]* cel.Type {elements .ProtobomType , cel .StringType }, elements .DocumentType ,
@@ -188,7 +188,7 @@ func (*Protobom) Functions() []cel.EnvOption {
188
188
),
189
189
190
190
cel .Function (
191
- "RelateNodeListAtID " ,
191
+ "relate_node_list_at_id " ,
192
192
cel .MemberOverload (
193
193
"sbom_relatenodesatid_binding" ,
194
194
[]* cel.Type {elements .DocumentType , elements .NodeListType , cel .StringType , cel .StringType },
0 commit comments