github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/conan.go (about) 1 package pkg 2 3 // ConanV1LockEntry represents a single "node" entry from a conan.lock V1 file. 4 type ConanV1LockEntry struct { 5 Ref string `json:"ref"` 6 PackageID string `json:"package_id,omitempty"` 7 Prev string `json:"prev,omitempty"` 8 Requires []string `json:"requires,omitempty"` 9 BuildRequires []string `json:"build_requires,omitempty"` 10 PythonRequires []string `json:"py_requires,omitempty"` 11 Options KeyValues `json:"options,omitempty"` 12 Path string `json:"path,omitempty"` 13 Context string `json:"context,omitempty"` 14 } 15 16 // ConanV2LockEntry represents a single "node" entry from a conan.lock V2 file. 17 type ConanV2LockEntry struct { 18 Ref string `json:"ref"` 19 PackageID string `json:"packageID,omitempty"` 20 Username string `json:"username,omitempty"` 21 Channel string `json:"channel,omitempty"` 22 RecipeRevision string `json:"recipeRevision,omitempty"` 23 PackageRevision string `json:"packageRevision,omitempty"` 24 TimeStamp string `json:"timestamp,omitempty"` 25 } 26 27 // ConanfileEntry represents a single "Requires" entry from a conanfile.txt. 28 type ConanfileEntry struct { 29 Ref string `mapstructure:"ref" json:"ref"` 30 } 31 32 // ConaninfoEntry represents a single "full_requires" entry from a conaninfo.txt. 33 type ConaninfoEntry struct { 34 Ref string `json:"ref"` 35 PackageID string `json:"package_id,omitempty"` 36 }