-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathparamgen_src.go
34 lines (30 loc) · 961 Bytes
/
paramgen_src.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
31
32
33
34
// Code generated by paramgen. DO NOT EDIT.
// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen
package connectorname
import (
"github.com/conduitio/conduit-commons/config"
)
const (
SourceConfigFoo = "foo"
SourceConfigGlobalConfigParamName = "global_config_param_name"
)
func (SourceConfig) Parameters() map[string]config.Parameter {
return map[string]config.Parameter{
SourceConfigFoo: {
Default: "",
Description: "SourceConfigParam is named foo and must be provided by the user.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
SourceConfigGlobalConfigParamName: {
Default: "",
Description: "GlobalConfigParam is named global_config_param_name and needs to be\nprovided by the user.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
}
}