-
Notifications
You must be signed in to change notification settings - Fork 42
/
set_paramgen.go
30 lines (27 loc) · 1.02 KB
/
set_paramgen.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
// Code generated by paramgen. DO NOT EDIT.
// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen
package field
import (
"github.com/conduitio/conduit-commons/config"
)
func (setConfig) Parameters() map[string]config.Parameter {
return map[string]config.Parameter{
"field": {
Default: "",
Description: "Field is the target field that will be set. Note that it is not allowed\nto set the `.Position` field.\n\nFor more information about the format, see [Referencing fields](https://conduit.io/docs/processors/referencing-fields).",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
config.ValidationExclusion{List: []string{".Position"}},
},
},
"value": {
Default: "",
Description: "Value is a Go template expression which will be evaluated and stored in `field` (e.g. `{{ .Payload.After }}`).",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
}
}