feature: Execute actions on startup. Externalize the executor and add… (#101)

* feature: Execute actions on startup. Externalize the executor and add tags to logs.

* fmt: Codestyle fixes
This commit is contained in:
James Read
2023-02-02 09:35:18 +00:00
committed by GitHub
parent b6196a4b3f
commit f05de1c726
10 changed files with 82 additions and 17 deletions

View File

@@ -17,6 +17,7 @@ import (
type ExecutionRequest struct {
ActionName string
Arguments map[string]string
Tags []string
action *config.Action
Cfg *config.Config
AuthenticatedUser *acl.AuthenticatedUser
@@ -33,6 +34,7 @@ type InternalLogEntry struct {
Stderr string
TimedOut bool
ExitCode int32
Tags []string
/*
The following two properties are obviously on Action normally, but it's useful
@@ -185,5 +187,7 @@ func stepExec(req *ExecutionRequest) bool {
req.logEntry.TimedOut = true
}
req.logEntry.Tags = req.Tags
return true
}