dependencies

package
v0.0.0-...-152d858 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDependencyTree

func CreateDependencyTree(extractor Extractor) (root, error)

Types

type Extractor

type Extractor interface {
	// Check whether the extractor is compatible with the current dependency resolution method
	IsCompatible(projectName, projectRoot string) (bool, error)
	// Get all the dependencies for the project
	AllDependencies() (map[string]*buildinfo.Dependency, error)
	// Get all the root dependencies of the project
	DirectDependencies() ([]string, error)
	// Dependencies relations map
	ChildrenMap() (map[string][]string, error)
	// contains filtered or unexported methods
}

The extractor responsible to calculate the project dependencies.

func CreateCompatibleExtractor

func CreateCompatibleExtractor(projectName, projectRoot string) (Extractor, 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