Files
trivy/pkg/cloud/cache/schema.go
Liam Galvin b259b25ce4 feat: Add AWS Cloud scanning (#2493)
* feat: Added AWS Cloud scanning

Co-authored-by: Owen Rumney <owen.rumney@aquasec.com>
2022-08-11 14:59:32 +01:00

25 lines
576 B
Go

package cache
import (
"time"
"github.com/aquasecurity/trivy/pkg/types"
)
const SchemaVersion = 1
type Metadata struct {
SchemaVersion int `json:"schema_version"`
Provider string `json:"provider"`
AccountID string `json:"account_id"`
Region string `json:"region"`
ServicesInScope []string `json:"services"`
}
type Record struct {
SchemaVersion int `json:"schema_version"`
Service string `json:"service"`
Results types.Results `json:"results"`
CreationTime time.Time `json:"creation_time"`
}