domain

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EnvVarGitHubEventPath     string = "GITHUB_EVENT_PATH"
	EnvVarLogLevel            string = "LOG_LEVEL"
	EnvVarRequiredLabel       string = "INPUT_REQUIREDLABEL"
	EnvVarBaseBranch          string = "INPUT_BASEBRANCH"
	EnvVarTargetScriptListDir string = "INPUT_TARGETSCRIPTLISTDIR"
)

Variables

View Source
var ScriptCommandMapping = map[ScriptType][]string{
	Bash:   {"/bin/bash"},
	Python: {"python"},
}
View Source
var ScriptExtensionMapping = map[string]ScriptType{
	".sh": Bash,
	".py": Python,
}

Functions

This section is empty.

Types

type Branches

type Branches struct {
	Base string
	Head string
}

type EventParser

type EventParser interface {
	ParseEvent() (ParsedEvent, error)
	ParseTargetScripts(ParsedEvent, string) ([]TargetScript, error)
}

type Labels

type Labels []string

type ParsedEvent

type ParsedEvent struct {
	Branches Branches
	Labels   Labels
	Merged   bool
}

type ScriptType

type ScriptType int
const (
	Bash ScriptType = iota
	Python
)

type TargetScript

type TargetScript string

type TargetScriptList

type TargetScriptList struct {
	TargetScripts []TargetScript
	Directory     string
}

Directories

Path Synopsis
Package domain is a generated GoMock package.
Package domain is a generated GoMock package.

Jump to

Keyboard shortcuts

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