github.com/kastenhq/syft@v0.0.0-20230821225854-0710af25cdbe/syft/formats/syftjson/model/file.go (about) 1 package model 2 3 import ( 4 "github.com/kastenhq/syft/syft/file" 5 ) 6 7 type File struct { 8 ID string `json:"id"` 9 Location file.Coordinates `json:"location"` 10 Metadata *FileMetadataEntry `json:"metadata,omitempty"` 11 Contents string `json:"contents,omitempty"` 12 Digests []file.Digest `json:"digests,omitempty"` 13 } 14 15 type FileMetadataEntry struct { 16 Mode int `json:"mode"` 17 Type string `json:"type"` 18 LinkDestination string `json:"linkDestination,omitempty"` 19 UserID int `json:"userID"` 20 GroupID int `json:"groupID"` 21 MIMEType string `json:"mimeType"` 22 Size int64 `json:"size"` 23 }