mvn_dependency_tree

package module
v0.0.0-...-3ea64e6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: BSD-3-Clause Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mvn_dependency_tree

This program reads the output of mvn dependency:tree and creates a CSV file containing all the Wavefront direct dependencies.

Sample usage:

$ mvn dependency:tree | ~/go/bin/mvn_dependency_tree > direct_dependencies.csv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeAll

func MergeAll(dependencies []Dependency, m Merger) error

func WriteDependencies

func WriteDependencies(w io.Writer, dependencies []Dependency) error

func WriteDependenciesFile

func WriteDependenciesFile(path string, dependencies []Dependency) error

func WriteLibrariesFile

func WriteLibrariesFile(path string, libraries []Library) error

func WriteVersionsFile

func WriteVersionsFile(path string, versions []Version) error

Types

type Dependency

type Dependency struct {
	VersionKey
	Date        string `csv:"date"`
	Latest      string `csv:"latest"`
	LatestDate  string `csv:"latest_date"`
	NewLocation string `csv:"new_location"`
	Description string `csv:"description"`
}

func ReadDependenciesFile

func ReadDependenciesFile(path string) ([]Dependency, error)

type Library

type Library struct {
	Name        string `csv:"name"`
	NewLocation string `csv:"new_location"`
	Latest      string `csv:"latest"`
	Description string `csv:"description"`
}

func ReadLibrariesFile

func ReadLibrariesFile(path string) ([]Library, error)

type LibraryDB

type LibraryDB map[string]Library

func NewLibraryDB

func NewLibraryDB(libraries []Library) LibraryDB

func (LibraryDB) Libraries

func (db LibraryDB) Libraries() []Library

func (LibraryDB) Merge

func (db LibraryDB) Merge(d *Dependency) error

type Merger

type Merger interface {
	Merge(d *Dependency) error
}

type Version

type Version struct {
	VersionKey
	Date string `csv:"date"`
}

func ReadVersionsFile

func ReadVersionsFile(path string) ([]Version, error)

type VersionDB

type VersionDB map[VersionKey]Version

func NewVersionDB

func NewVersionDB(versions []Version) VersionDB

func (VersionDB) Date

func (db VersionDB) Date(name, version string) string

func (VersionDB) Merge

func (db VersionDB) Merge(d *Dependency) error

func (VersionDB) Versions

func (db VersionDB) Versions() []Version

type VersionKey

type VersionKey struct {
	Name    string `csv:"name"`
	Version string `csv:"version"`
}

Directories

Path Synopsis
cmd
build_indexes command

Jump to

Keyboard shortcuts

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