Documentation ¶
Index ¶
Constants ¶
View Source
const ( PASS = "PASS" FAIL = "FAIL" SKIP = "SKIP" )
View Source
const GitFetchProjectRetries = 5
Variables ¶
This section is empty.
Functions ¶
func RegisterCommand ¶
func RegisterCommand(name string, factory CommandFactory) error
func RegisteredCommandNames ¶
func RegisteredCommandNames() []string
func ToModelTestResults ¶
func ToModelTestResults(results []*goTestResult) task.LocalTestResults
ToModelTestResults converts the implementation of LocalTestResults native to the goTest plugin to the implementation used by MCI tasks
Types ¶
type Command ¶
type Command interface { // ParseParams takes a map of fields to values extracted from // the project config and passes them to the command. Any // errors parsing the information are returned. ParseParams(params map[string]interface{}) error // Execute runs the command using the agent's logger, communicator, // task config, and a channel for interrupting long-running commands. // Execute is called after ParseParams. Execute(context.Context, client.Communicator, client.LoggerProducer, *model.TaskConfig) error // A string name for the command Name() string // Type reports on or overrides the default command type // (e.g. system or task.) The setter MUST NOT override a value // if it has already been set. Type() string SetType(string) DisplayName() string SetDisplayName(string) IdleTimeout() time.Duration SetIdleTimeout(time.Duration) SetJasperManager(jasper.Manager) JasperManager() jasper.Manager }
Command is an interface that defines a command A Command takes parameters as a map, and is executed after those parameters are parsed.
func Render ¶
func Render(c model.PluginCommandConf, fns map[string]*model.YAMLCommandSet) ([]Command, error)
type CommandFactory ¶
type CommandFactory func() Command
func GetCommandFactory ¶
func GetCommandFactory(name string) (CommandFactory, bool)
Source Files ¶
- archive_auto_extract.go
- archive_tarball_create.go
- archive_tarball_extract.go
- archive_zip_create.go
- archive_zip_extract.go
- attach_artifacts.go
- deprecated.go
- exec.go
- expansion_update.go
- expansion_write.go
- generate.go
- git.go
- git_push.go
- host_create.go
- host_list.go
- initial_setup.go
- interface.go
- keyval.go
- manifest.go
- registry.go
- results_go_test2json.go
- results_gotest.go
- results_gotest_parser.go
- results_native.go
- results_utils.go
- results_xunit.go
- results_xunit_parser.go
- s3_copy.go
- s3_get.go
- s3_put.go
- s3_util.go
- shell.go
- taskdata_get.go
- taskdata_history.go
- taskdata_send.go
- timeout.go
- util.go
Click to show internal directories.
Click to hide internal directories.