@@ -16,18 +16,10 @@ If the `data_structure` argument is specified to be:
16
16
17
17
- ` "array_of_arrays" ` , the ` data_container ` argument is interpreted as an array
18
18
of arrays, and the ` key_or_index ` argument is interpreted as an index within
19
- the children arrays. The ` key_or_index ` argument is required.
19
+ the children arrays.
20
20
- ` "array_of_objects" ` , the ` data_container ` argument is interpreted as an array
21
21
of objects, and the ` key_or_index ` argument is interpreted as a key within the
22
- children objects. The ` key_or_index ` argument is required.
23
- - ` "object_of_arrays" ` , the ` data_container ` argument is interpreted as an object
24
- of arrays, and the ` key_or_index ` argument is interpreted as an index within
25
- the children arrays (if specified). If the ` key_or_index ` argument is omitted,
26
- the key of the child array itself is used as a class expression.
27
- - ` "object_of_objects" ` , the ` data_container ` argument is interpreted as an object
28
- if objects, and the ` key_or_index ` argument is interpreted as a key within the
29
- children objects (if specified). If the ` key_or_index ` argument is omitted, the
30
- key of the child object itself is used as a class expression.
22
+ children objects.
31
23
- ` "auto" ` , the interpretation is automatically detected based on the data
32
24
structure.
33
25
@@ -53,46 +45,6 @@ If the `data_structure` argument is specified to be:
53
45
54
46
{{< CFEngine_include_snippet(classfilterdata_array_of_objects.cf, #\+ begin_src\s+example_output\s* , .* end_src) >}}
55
47
56
- ** Example (with object of arrays):**
57
-
58
- ** Policy:**
59
-
60
- {{< CFEngine_include_snippet(classfilterdata_object_of_arrays.cf, #\+ begin_src cfengine3, .* end_src) >}}
61
-
62
- ** Output:**
63
-
64
- {{< CFEngine_include_snippet(classfilterdata_object_of_arrays.cf, #\+ begin_src\s+example_output\s* , .* end_src) >}}
65
-
66
- ** Example (with object of objects):**
67
-
68
- ** Policy:**
69
-
70
- {{< CFEngine_include_snippet(classfilterdata_object_of_objects.cf, #\+ begin_src cfengine3, .* end_src) >}}
71
-
72
- ** Output:**
73
-
74
- {{< CFEngine_include_snippet(classfilterdata_object_of_objects.cf, #\+ begin_src\s+example_output\s* , .* end_src) >}}
75
-
76
- ** Example (with object of arrays using exogenous key):**
77
-
78
- ** Policy:**
79
-
80
- {{< CFEngine_include_snippet(classfilterdata_object_of_arrays_exogenous_key.cf, #\+ begin_src cfengine3, .* end_src) >}}
81
-
82
- ** Output:**
83
-
84
- {{< CFEngine_include_snippet(classfilterdata_object_of_arrays_exogenous_key.cf, #\+ begin_src\s+example_output\s* , .* end_src) >}}
85
-
86
- ** Example (with object of objects using exogenous key):**
87
-
88
- ** Policy:**
89
-
90
- {{< CFEngine_include_snippet(classfilterdata_object_of_objects_exogenous_key.cf, #\+ begin_src cfengine3, .* end_src) >}}
91
-
92
- ** Output:**
93
-
94
- {{< CFEngine_include_snippet(classfilterdata_object_of_objects_exogenous_key.cf, #\+ begin_src\s+example_output\s* , .* end_src) >}}
95
-
96
48
** Notes:**
97
49
98
50
This function can accept many types of data parameters _ (See [ collecting function] [ Functions#collecting functions ] )_ .
0 commit comments