dependencies

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AssetFileName = "project.assets.json"
	AssetDirName  = "obj"
)
View Source
const PackagesFileName = "packages.config"

Variables

This section is empty.

Functions

func CreateDependencyTree

func CreateDependencyTree(extractor Extractor) (deptree.Root, error)

Types

type Extractor

type Extractor interface {
	// Check whether the extractor is compatible with the current dependency resolution method
	IsCompatible(projectName, dependenciesSource string) bool
	// 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, dependenciesSource string) (Extractor, error)

Jump to

Keyboard shortcuts

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