dependenciestree

package
v1.39.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependenciesTree

type DependenciesTree struct {
	Dependency         *buildinfo.Dependency `json:"dependencies,omitempty"`
	DirectDependencies []*DependenciesTree
	Id                 string
}

func (*DependenciesTree) AddChildren

func (t *DependenciesTree) AddChildren(allDependencies map[string]*buildinfo.Dependency, children map[string][]string)

Add children nodes for a dependency

func (DependenciesTree) MarshalJSON

func (t DependenciesTree) MarshalJSON() ([]byte, error)

type Root

type Root []*DependenciesTree

func CreateDependencyTree

func CreateDependencyTree(rootDependencies []string, allDependencies map[string]*buildinfo.Dependency, childrenMap map[string][]string) Root

Create dependency tree using the data received from the extractors.

func (Root) MarshalJSON

func (r Root) MarshalJSON() ([]byte, error)

type Tree

type Tree interface {
	MarshalJSON() ([]byte, error)
}

Dependency tree

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL