File tree 1 file changed +77
-42
lines changed
1 file changed +77
-42
lines changed Original file line number Diff line number Diff line change @@ -11,69 +11,104 @@ var (
11
11
sprigFuncMap = sprig .FuncMap ()
12
12
13
13
// exportedSprigFunctions lists all of the functions from sprig that will be exposed
14
+ // ref: https://masterminds.github.io/sprig/
14
15
exportedSprigFunctions = []string {
15
- "add" ,
16
- "append" ,
16
+ // STRING
17
17
"cat" ,
18
- "concat" ,
19
18
"contains" ,
20
- "date" ,
21
- "default" ,
22
- "dict" ,
23
- "dig" ,
24
- "div" ,
25
- "empty" ,
26
- "fail" ,
27
- "fromJson" ,
28
- "get" ,
29
- "has" ,
30
- "hasKey" ,
31
19
"hasPrefix" ,
32
20
"hasSuffix" ,
33
- "htpasswd" ,
34
- "join" ,
35
- "list" ,
36
21
"lower" ,
37
- "merge" ,
38
- "mul" ,
39
- "mustAppend" ,
40
- "mustFromJson" ,
41
- "mustHas" ,
42
- "mustMerge" ,
43
- "mustPrepend" ,
44
22
"mustRegexFind" ,
45
23
"mustRegexFindAll" ,
46
24
"mustRegexMatch" ,
47
- "mustSlice" ,
48
- "mustToDate" ,
49
- "mustToRawJson" ,
50
- "now" ,
51
- "prepend" ,
52
25
"quote" ,
53
26
"regexFind" ,
54
27
"regexFindAll" ,
55
28
"regexMatch" ,
56
29
"regexQuoteMeta" ,
57
30
"replace" ,
58
- "round" ,
59
- "semver" ,
60
- "semverCompare" ,
61
- "set" ,
62
- "slice" ,
63
- "split" ,
64
- "splitn" ,
65
- "sub" ,
66
31
"substr" ,
67
- "ternary" ,
68
- "toDate" ,
69
- "toRawJson" ,
70
32
"trim" ,
71
33
"trimAll" ,
72
34
"trunc" ,
73
- "unset" ,
35
+ "upper" ,
36
+
37
+ // STRING LIST
38
+ "concat" ,
39
+ "join" ,
40
+ "split" ,
41
+ "splitn" ,
42
+
43
+ // INTEGER MATH
44
+ "add" ,
45
+ "div" ,
46
+ "mul" ,
47
+ "round" ,
48
+ "sub" ,
49
+
50
+ // INTEGER SLICE
74
51
"until" ,
75
52
"untilStep" ,
76
- "upper" ,
53
+
54
+ // FLOAT MATH
55
+ // --
56
+
57
+ // DATE
58
+ "date" ,
59
+ "mustToDate" ,
60
+ "now" ,
61
+ "toDate" ,
62
+
63
+ // DEFAULTS
64
+ "default" ,
65
+ "empty" ,
66
+ "fromJson" ,
67
+ "mustFromJson" ,
68
+ "mustToRawJson" ,
69
+ "ternary" ,
70
+ "toRawJson" ,
71
+
72
+ // ENCODING
73
+ // "b64enc" -- Implemented locally
74
+ // "b64dec" -- Implemented locally
75
+
76
+ // LISTS AND LIST
77
+ "append" ,
78
+ "has" ,
79
+ "list" ,
80
+ "mustAppend" ,
81
+ "mustHas" ,
82
+ "mustPrepend" ,
83
+ "prepend" ,
84
+ "mustSlice" ,
85
+ "slice" ,
86
+
87
+ // DICTIONARIES AND DICT
88
+ "dict" ,
89
+ "dig" ,
90
+ "get" ,
91
+ "hasKey" ,
92
+ "merge" ,
93
+ "mustMerge" ,
94
+ "set" ,
95
+ "unset" ,
96
+
97
+ // TYPE CONVERSION
98
+ // "atoi" -- Implemented locally
99
+
100
+ // PATH AND FILEPATH
101
+ // --
102
+
103
+ // FLOW CONTROL
104
+ "fail" ,
105
+
106
+ // VERSION COMPARISON
107
+ "semver" ,
108
+ "semverCompare" ,
109
+
110
+ // CRYPTOGRAPHIC AND SECURITY
111
+ "htpasswd" ,
77
112
}
78
113
)
79
114
You can’t perform that action at this time.
0 commit comments