-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconnector.go
65 lines (63 loc) · 1.48 KB
/
connector.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package cloudfunctions
import (
"github.com/kubemq-hub/builder/connector/common"
)
func Connector() *common.Connector {
return common.NewConnector().
SetKind("gcp.cloudfunctions").
SetDescription("GCP Cloud Functions Target").
SetName("Cloud Functions").
SetProvider("GCP").
SetCategory("Serverless").
SetTags("faas", "cloud", "managed").
AddProperty(
common.NewProperty().
SetKind("string").
SetName("project_id").
SetTitle("Project ID").
SetDescription("Set GCP project ID").
SetMust(true).
SetDefault(""),
).
AddProperty(
common.NewProperty().
SetKind("multilines").
SetName("credentials").
SetTitle("Json Credentials").
SetDescription("Set GCP credentials").
SetMust(true).
SetDefault(""),
).
AddProperty(
common.NewProperty().
SetKind("bool").
SetName("location_match").
SetDescription("Set Cloud Functions location match").
SetMust(false).
SetDefault("true"),
).
AddMetadata(
common.NewMetadata().
SetName("name").
SetKind("string").
SetDescription("Set Cloud Functions name").
SetDefault("").
SetMust(true),
).
AddMetadata(
common.NewMetadata().
SetName("project").
SetKind("string").
SetDescription("Set Cloud Functions project").
SetDefault("").
SetMust(false),
).
AddMetadata(
common.NewMetadata().
SetName("location").
SetKind("string").
SetDescription("Set Cloud Functions location").
SetDefault("").
SetMust(false),
)
}