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: 0

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