-
Notifications
You must be signed in to change notification settings - Fork 4
/
parameters.go
39 lines (31 loc) · 821 Bytes
/
parameters.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
package types
import (
"strings"
diggity "github.com/carbonetes/diggity/pkg/types"
)
type ScanType int
type Format string
const (
JSON Format = "json"
Table Format = "table"
SPDXJSON Format = "spdx-json"
SPDXXML Format = "spdx-xml"
SPDXTag Format = "spdx-tag"
SnapshotJSON Format = "snapshot-json"
)
type Parameters struct {
Quiet bool
Format Format
File string
CI bool
SkipDBUpdate bool
ForceDBUpdate bool
// Diggity tool parameters to be passed to the scan engine
Diggity diggity.Parameters
}
func (o Format) String() string {
return string(o)
}
func GetAllOutputFormat() string {
return strings.Join([]string{JSON.String(), Table.String(), SPDXJSON.String(), SPDXXML.String(), SPDXTag.String(), SnapshotJSON.String()}, ", ")
}