Documentation
¶
Index ¶
Constants ¶
View Source
const ( LangGolang = 1 << iota LangJava LangNodeJS LangPython LangRuby LangRust )
enums start at 1 to allow us to specify found languages 0 = nil
View Source
const LangGeneric = 0
Variables ¶
This section is empty.
Functions ¶
func GetDeps ¶
func GetDeps(fullPath string, ignoreDirs ...string) ([]Dependency, Bitmask, error)
GetDeps scans a given repository and returns all dependencies found in a DependencyList struct.
func GetLanguageStr ¶
GetLanguageStr returns from a bitmask return the ecosystem name
Types ¶
type Bitmask ¶
type Bitmask uint32
Bitmask type allows easy tagging of what langs there are
func (*Bitmask) DepFoundAddFlag ¶
DepFoundAddFlag add a lang type to the bitmask
func (Bitmask) DepFoundHasFlag ¶
DepFoundHasFlag deteremine if bitmask has a lang type
type Dependency ¶
type Dependency struct {
DepType Bitmask // golang, nodejs, python etc
Path string // the module path, github.com/teris-io/shortid
Version string // v0.0.0-20171029131806-771a37caa5cf
Files []string // if available, list of all files for a package
}
Dependency per dependency info
func (*Dependency) ToString ¶ added in v1.0.31
func (d *Dependency) ToString() string
type Discovered ¶ added in v1.0.30
type Discovered struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.