Documentation ¶
Overview ¶
Package source includes detectors for STI source repositories
Index ¶
- Variables
- type DetectorFunc
- type Detectors
- type Info
- func DetectDotNet(dir string) (*Info, bool)
- func DetectJava(dir string) (*Info, bool)
- func DetectLiteralDotNet(dir string) (*Info, bool)
- func DetectNodeJS(dir string) (*Info, bool)
- func DetectPHP(dir string) (*Info, bool)
- func DetectPerl(dir string) (*Info, bool)
- func DetectPython(dir string) (*Info, bool)
- func DetectRuby(dir string) (*Info, bool)
- func DetectScala(dir string) (*Info, bool)
Constants ¶
This section is empty.
Variables ¶
var DefaultDetectors = Detectors{ DetectRuby, DetectJava, DetectNodeJS, DetectPHP, DetectPython, DetectPerl, DetectScala, DetectDotNet, DetectLiteralDotNet, }
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 annotatin or dotnet imagestream name
func DetectLiteralDotNet ¶ added in v1.3.0
DetectLiteralDotNet detects .NET source and matches it to a .net supported annotation
func DetectScala ¶ added in v1.0.2
DetectScala detects Scala source