mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
21 lines
269 B
Go
21 lines
269 B
Go
package functions
|
|
|
|
func PickZones(args ...any) any {
|
|
if len(args) < 3 {
|
|
return nil
|
|
}
|
|
numOfZones := 1
|
|
|
|
if len(args) > 3 {
|
|
numOfZones = min(args[3].(int), 3)
|
|
}
|
|
|
|
var zones []int
|
|
|
|
for i := 1; i <= numOfZones; i++ {
|
|
zones = append(zones, i)
|
|
}
|
|
|
|
return zones
|
|
}
|