Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyInfo ¶
type DependencyInfo struct { GroupID string `json:"groupId"` ArtifactID string `json:"artifactId"` Version string `json:"version"` Type string `json:"type"` Classifier string `json:"classifier,omitempty"` Scope string `json:"scope,omitempty"` Sha1 string `json:"sha1,omitempty"` AdditionalSha1 string `json:"additionalSha1,omitempty"` SystemPath string `json:"systemPath,omitempty"` Filename string `json:"filename,omitempty"` DependencyType string `json:"dependencyType,omitempty"` DependencyFile string `json:"dependencyFile,omitempty"` Deduped bool `json:"deduped"` Commit string `json:"commit,omitempty"` Checksums *map[string]string `json:"checksums,omitempty"` Children *[]DependencyInfo `json:"children,omitempty"` }
type EnhancedResult ¶
type EnhancedResult struct { OperationResult Deps *map[Id]DependencyInfo DepId2VulnerableLib map[Id]VulnerableLib }
func (EnhancedResult) DependencyTree ¶
func (er EnhancedResult) DependencyTree() []DependencyInfo
func (EnhancedResult) IsVulnerable ¶
func (er EnhancedResult) IsVulnerable() bool
func (EnhancedResult) Print ¶
func (er EnhancedResult) Print(w io.Writer)
type OperationResult ¶
type OperationResult struct { // the manifest file from which the library discovered // e.g. go.mod, pom.xml, package-lock.json ManifestFile string // direct libraries found Direct *[]Id // mapping from each library to its direct transitive libraries LibraryToChildren *map[Id][]Id // info about all libraries found Libraries *map[Id]Library LType LibType // in case an error occurred for the specific scan Err error // how long it took to produce this operation result Elapsed time.Duration // Organ represents the organ type for this operation result Organ Organ }
func (*OperationResult) Print ¶
func (op *OperationResult) Print(w io.Writer)
func (*OperationResult) TrackTime ¶
func (op *OperationResult) TrackTime(start time.Time)
TrackTime sets the total time that elapsed to
Click to show internal directories.
Click to hide internal directories.