build

package
v0.0.0-...-901927a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dotnet = Tool{
	Name:            "Dotnet",
	Language:        "C#",
	ExpectedRegexps: regexps(`project\.json`, `.*\.csproj`),
	ExpectedFiles:   []string{"project.json", "app.csproj"},
}
View Source
var Golang = Tool{
	Name:            "Golang",
	Language:        "go",
	ExpectedRegexps: regexps(`main\.go`, `Gopkg\.toml`, `glide\.yaml`),
	ExpectedFiles:   []string{"main.go", "Gopkg.toml", "glide.yaml"},
}
View Source
var Gradle = Tool{
	Name:            "Gradle",
	Language:        "java",
	ExpectedRegexps: regexps(`.*gradle.*`),
	ExpectedFiles:   []string{"build.gradle", "gradlew", "gradlew.bat"},
}
View Source
var Maven = Tool{
	Name:            "Maven",
	Language:        "java",
	ExpectedRegexps: regexps(`pom\.xml`),
	ExpectedFiles:   []string{"pom.xml"},
}
View Source
var NodeJS = Tool{
	Name:            "NodeJS",
	Language:        "javascript",
	ExpectedRegexps: regexps(`app\.json`, `package\.json`, `gulpfile\.js`, `Gruntfile\.js`),
	ExpectedFiles:   []string{"app.json", "package.json", "gulpfile.js", "Gruntfile.js"},
}
View Source
var PHP = Tool{
	Name:            "PHP",
	Language:        "php",
	ExpectedRegexps: regexps(`index\.php`, `composer\.json`),
	ExpectedFiles:   []string{"index.php", "composer.json"},
}
View Source
var Perl = Tool{
	Name:            "Perl",
	Language:        "perl",
	ExpectedRegexps: regexps(`index\.pl`, `cpanfile`),
	ExpectedFiles:   []string{"index.pl", "cpanfile"},
}
View Source
var Python = Tool{
	Name:            "Python",
	Language:        "python",
	ExpectedRegexps: regexps(`requirements\.txt`, `setup\.py`),
	ExpectedFiles:   []string{"requirements.txt", "setup.py"},
}
View Source
var Ruby = Tool{
	Name:            "Ruby",
	Language:        "ruby",
	ExpectedRegexps: regexps(`Gemfile`, `Rakefile`, `config\.ru`),
	ExpectedFiles:   []string{"Gemfile", "Rakefile", "config.ru"},
}

Functions

func NewDetectedBuildTool

func NewDetectedBuildTool(language string, name string, detectedFiles []string) *v1alpha1.DetectedBuildType

Types

type Tool

type Tool struct {
	Language        string
	Name            string
	ExpectedRegexps []*regexp.Regexp
	ExpectedFiles   []string
}

Jump to

Keyboard shortcuts

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