forked from anchore/syft
/
conan.go
25 lines (22 loc) · 1009 Bytes
/
conan.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package pkg
// ConanLockEntry represents a single "node" entry from a conan.lock file.
type ConanLockEntry struct {
Ref string `json:"ref"`
PackageID string `json:"package_id,omitempty"`
Prev string `json:"prev,omitempty"`
Requires []string `json:"requires,omitempty"`
BuildRequires []string `json:"build_requires,omitempty"`
PythonRequires []string `json:"py_requires,omitempty"`
Options map[string]string `json:"options,omitempty"`
Path string `json:"path,omitempty"`
Context string `json:"context,omitempty"`
}
// ConanfileEntry represents a single "Requires" entry from a conanfile.txt.
type ConanfileEntry struct {
Ref string `mapstructure:"ref" json:"ref"`
}
// ConaninfoEntry represents a single "full_requires" entry from a conaninfo.txt.
type ConaninfoEntry struct {
Ref string `json:"ref"`
PackageID string `json:"package_id,omitempty"`
}