mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
24 lines
303 B
Go
24 lines
303 B
Go
package scope
|
|
|
|
const (
|
|
UnknownScope Option = iota
|
|
SquashedScope
|
|
AllLayersScope
|
|
)
|
|
|
|
type Option int
|
|
|
|
var optionStr = []string{
|
|
"UnknownScope",
|
|
"Squashed",
|
|
"AllLayers",
|
|
}
|
|
|
|
func (o Option) String() string {
|
|
if int(o) >= len(optionStr) || int(o) < 0 {
|
|
return optionStr[0]
|
|
}
|
|
|
|
return optionStr[o]
|
|
}
|