labels

package
v0.0.0-...-75e9695 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArtifactGoExecutable  = "artifact:go-executable"
	ArtifactRustCrate     = "artifact:rust-crate"
	DepsGo                = "deps:go"
	DepsJava              = "deps:java"
	DepsNode              = "deps:node"
	DepsPython            = "deps:python"
	DepsRuby              = "deps:ruby"
	DepsRust              = "deps:rust"
	DepsPhp               = "deps:php"
	PackageManagerPipenv  = "package_manager:pipenv"
	PackageManagerPoetry  = "package_manager:poetry"
	PackageManagerYarn    = "package_manager:yarn"
	PackageManagerGemspec = "package_manager:gemspec"
	CICDGithubActions     = "cicd:github-actions"
	CICDGitlabWorkflow    = "cicd:gitlab-workflows"
	CICDJenkins           = "cicd:jenkins"
	EmptyRepo             = "cicd:empty"
	TestJest              = "test:jest"
	ToolGradle            = "tool:gradle"
	FileManagePy          = "file:manage.py"
	FileSetupPy           = "file:setup.py"
	TestTox               = "test:tox"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Key       string // string identifying the label, like "deps:go"
	Valid     bool   // If the rule applies, Valid = true
	LabelData        // LabelData rule-specific data for each label
}

Label is the result of applying a Rule

func (Label) String

func (label Label) String() string

type LabelData

type LabelData struct {
	BasePath     string
	Dependencies map[string]string
	Tasks        map[string]string
	HasLockFile  bool
	Version      string
}

type LabelSet

type LabelSet map[string]Label

func (LabelSet) String

func (ls LabelSet) String() string

type Rule

type Rule func(codebase.Codebase, LabelSet) (Label, error)

Jump to

Keyboard shortcuts

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