source

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package source includes detectors for STI source repositories

Index

Constants

This section is empty.

Variables

DefafultDetectors is a default set of Detector functions

Functions

This section is empty.

Types

type DetectorFunc

type DetectorFunc func(dir string) (*Info, bool)

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

type Info struct {
	Platform string
	Version  string
}

Info is detected platform information from a source directory

func DetectDotNet added in v1.3.0

func DetectDotNet(dir string) (*Info, bool)

DetectDotNet detects .NET source and matches it to a dotnet supported annotatin or dotnet imagestream name

func DetectJava

func DetectJava(dir string) (*Info, bool)

DetectJava detects Java source

func DetectLiteralDotNet added in v1.3.0

func DetectLiteralDotNet(dir string) (*Info, bool)

DetectLiteralDotNet detects .NET source and matches it to a .net supported annotation

func DetectNodeJS

func DetectNodeJS(dir string) (*Info, bool)

DetectNodeJS detects NodeJS source

func DetectPHP added in v0.6.1

func DetectPHP(dir string) (*Info, bool)

DetectPHP detects PHP source

func DetectPerl added in v0.6.1

func DetectPerl(dir string) (*Info, bool)

DetectPerl detects Perl source

func DetectPython added in v0.6.1

func DetectPython(dir string) (*Info, bool)

DetectPython detects Python source

func DetectRuby

func DetectRuby(dir string) (*Info, bool)

DetectRuby detects Ruby source

func DetectScala added in v1.0.2

func DetectScala(dir string) (*Info, bool)

DetectScala detects Scala source

Jump to

Keyboard shortcuts

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