Documentation ¶
Index ¶
Constants ¶
View Source
const ( LangGolang = 1 << iota LangJava LangNodeJS LangPython LangRuby )
enums start at 1 to allow us to specify found languages 0 = nil
Variables ¶
This section is empty.
Functions ¶
func GetDeps ¶
func GetDeps(fullPath 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
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.