Documentation
¶
Index ¶
- func BuildDependencyTree(elements []models.ComponentDependency) tree
- func CalculateDepth(node *treeNode, currentDepth int, depthMap map[string]int)
- func NewHttpController(repository repository, assetComponentsLoader assetComponentsLoader, ...) *httpController
- func NewService(assetRepository assetRepository, componentRepository componentRepository, ...) *service
- type DepsDevResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDependencyTree ¶ added in v0.4.19
func BuildDependencyTree(elements []models.ComponentDependency) tree
func CalculateDepth ¶ added in v0.4.19
func NewHttpController ¶
func NewHttpController(repository repository, assetComponentsLoader assetComponentsLoader, flawRepository flawRepository, assetService assetService) *httpController
func NewService ¶
func NewService(assetRepository assetRepository, componentRepository componentRepository, flawRepository flawRepository, flawService flawService) *service
Types ¶
type DepsDevResponse ¶
type DepsDevResponse struct {
Nodes []struct {
VersionKey struct {
System string `json:"system"`
Name string `json:"name"`
Version string `json:"version"`
} `json:"versionKey"`
Bundled bool `json:"bundled"`
Relation string `json:"relation"`
Errors []interface{} `json:"errors"`
} `json:"nodes"`
Edges []struct {
FromNode int `json:"fromNode"`
ToNode int `json:"toNode"`
Requirement string `json:"requirement"`
} `json:"edges"`
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.