forked from snyk-tech-services/jira-tickets-for-new-vulns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils_def.go
42 lines (38 loc) · 1 KB
/
utils_def.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
package main
// structure containing the debug flag to check on
type debug struct {
PrintDebug bool
}
// Flags
// flags structures
// separated in 2 structure because some function needs only the mandatory
type flags struct {
mandatoryFlags MandatoryFlags
optionalFlags optionalFlags
customMandatoryJiraFields map[string]interface{}
}
type MandatoryFlags struct {
orgID string
endpointAPI string
apiToken string
jiraProjectID string
jiraProjectKey string
}
type optionalFlags struct {
projectID string
projectCriticality string
projectEnvironment string
projectLifecycle string
jiraTicketType string
severity string
issueType string
maturityFilterString string
assigneeID string
labels string
priorityIsSeverity bool
priorityScoreThreshold int
debug bool
dryRun bool
cveInTitle bool
ifUpgradeAvailableOnly bool
}