source

package
v3.10.0-0.49.0+incompa... Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 1 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

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

func DetectDotNet(dir string) *Info

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

func DetectGolang

func DetectGolang(dir string) *Info

DetectGolang detects Go source

func DetectJava

func DetectJava(dir string) *Info

DetectJava detects Java source

func DetectLiteralDotNet

func DetectLiteralDotNet(dir string) *Info

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

func DetectNodeJS

func DetectNodeJS(dir string) *Info

DetectNodeJS detects NodeJS source

func DetectPHP

func DetectPHP(dir string) *Info

DetectPHP detects PHP source

func DetectPerl

func DetectPerl(dir string) *Info

DetectPerl detects Perl source

func DetectPython

func DetectPython(dir string) *Info

DetectPython detects Python source

func DetectRuby

func DetectRuby(dir string) *Info

DetectRuby detects Ruby source

func DetectScala

func DetectScala(dir string) *Info

DetectScala detects Scala source

Jump to

Keyboard shortcuts

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