-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is in a good state for runner v1. Let's merge and work from smaller feature branches rather than continually rebasing this branch. - Introduce complex specs (working title; impeding renaming) - Introduce tag and dburl validation - Propagate execution info via context Unfinished.
- Loading branch information
1 parent
a5a1de7
commit c7ed2e7
Showing
34 changed files
with
1,433 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package command | ||
|
||
import "context" | ||
|
||
type runnerContextKey struct{} | ||
|
||
var ExecutionInfoKey = &runnerContextKey{} | ||
|
||
type ExecutionInfo struct { | ||
RunID string | ||
KnownName string | ||
KnownID string | ||
} | ||
|
||
func ContextWithExecutionInfo(ctx context.Context, execInfo *ExecutionInfo) context.Context { | ||
return context.WithValue(ctx, ExecutionInfoKey, execInfo) | ||
} |
Oops, something went wrong.