Skip to content

Commit

Permalink
Graph Scan internal API - New GraphNode field added to GraphNode (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
asafambar authored Jan 4, 2024
1 parent 2d35a98 commit b17dd66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xray/services/utils/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ type OtherComponentIds struct {

// Audit Graph Node
type GraphNode struct {
Id string `json:"component_id,omitempty"`
// List of subcomponents.
Nodes []*GraphNode `json:"nodes,omitempty"`
// Node parent (for internal use)
Parent *GraphNode `json:"-"`
// Node file types (tar, jar, zip, pom)
Types *[]string `json:"-"`
Id string `json:"component_id,omitempty"`
// List of subcomponents.
Nodes []*GraphNode `json:"nodes,omitempty"`
}

func (currNode *GraphNode) NodeHasLoop() bool {
Expand Down

0 comments on commit b17dd66

Please sign in to comment.