-
Notifications
You must be signed in to change notification settings - Fork 72
/
constants.go
51 lines (43 loc) · 1017 Bytes
/
constants.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
package util
import (
"strings"
)
var AllowedArtifactTypeEnumValues = []string{
"AVRO",
"PROTOBUF",
"JSON",
"OPENAPI",
"ASYNCAPI",
"GRAPHQL",
"KCONNECT",
"WSDL",
"XSD",
"XML",
}
var AllowedArtifactStateEnumValues = []string{
"ENABLED",
"DISABLED",
"DEPRECATED",
}
const (
ViewerRole = "viewer"
ManagerRole = "manager"
AdminRole = "admin"
)
var AllowedRoleTypeEnumValues = []string{
ViewerRole,
ManagerRole,
AdminRole,
}
// GetAllowedArtifactTypeEnumValuesAsString gets artifact types as string.
func GetAllowedArtifactTypeEnumValuesAsString() string {
return strings.Join(AllowedArtifactTypeEnumValues, ", ")
}
// GetAllowedArtifactTypeEnumValuesAsString gets artifact types as string.
func GetAllowedArtifactStateEnumValuesAsString() string {
return strings.Join(AllowedArtifactStateEnumValues, ", ")
}
// GetAllowedRoleTypeEnumValuesAsString gets types of roles as string.
func GetAllowedRoleTypeEnumValuesAsString() string {
return strings.Join(AllowedRoleTypeEnumValues, ", ")
}