Documentation ¶
Overview ¶
Package source includes detectors for STI source repositories
Index ¶
- Variables
- type DetectorFunc
- type Detectors
- type Info
- func DetectDotNet(dir string) *Info
- func DetectGolang(dir string) *Info
- func DetectJava(dir string) *Info
- func DetectLiteralDotNet(dir string) *Info
- func DetectNodeJS(dir string) *Info
- func DetectPHP(dir string) *Info
- func DetectPerl(dir string) *Info
- func DetectPython(dir string) *Info
- func DetectRuby(dir string) *Info
- func DetectScala(dir string) *Info
Constants ¶
This section is empty.
Variables ¶
var DefaultDetectors = Detectors{ DetectRuby, DetectJava, DetectNodeJS, DetectPHP, DetectPython, DetectPerl, DetectScala, DetectDotNet, DetectLiteralDotNet, DetectGolang, }
DefafultDetectors is a default set of Detector functions
Functions ¶
This section is empty.
Types ¶
type DetectorFunc ¶
DetectorFunc is a function that returns source Info from a given directory. It returns true if it was able to detect the code in the given directory.
type Detectors ¶
type Detectors []DetectorFunc
Detectors is a set of DetectorFunc that is used to detect the language/platform for a given source directory
type Info ¶
Info is detected platform information from a source directory
func DetectDotNet ¶ added in v1.3.0
DetectDotNet detects .NET source and matches it to a dotnet supported annotation or dotnet imagestream name
func DetectGolang ¶ added in v1.5.0
DetectGolang detects Go source
func DetectLiteralDotNet ¶ added in v1.3.0
DetectLiteralDotNet detects .NET source and matches it to a .net supported annotation
func DetectPython ¶ added in v0.6.1
DetectPython detects Python source
func DetectScala ¶ added in v1.0.2
DetectScala detects Scala source