mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 08:27:02 +00:00
Rename engine
to backend
(#2950)
rename based on https://woodpecker-ci.org/docs/usage/terminiology --------- Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -37,16 +37,16 @@ type Runner struct {
|
||||
filter rpc.Filter
|
||||
hostname string
|
||||
counter *State
|
||||
engine *backend.Engine
|
||||
backend *backend.Backend
|
||||
}
|
||||
|
||||
func NewRunner(workEngine rpc.Peer, f rpc.Filter, h string, state *State, backend *backend.Engine) Runner {
|
||||
func NewRunner(workEngine rpc.Peer, f rpc.Filter, h string, state *State, backend *backend.Backend) Runner {
|
||||
return Runner{
|
||||
client: workEngine,
|
||||
filter: f,
|
||||
hostname: h,
|
||||
counter: state,
|
||||
engine: backend,
|
||||
backend: backend,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ func (r *Runner) Run(runnerCtx context.Context) error {
|
||||
pipeline.WithTaskUUID(fmt.Sprint(work.ID)),
|
||||
pipeline.WithLogger(r.createLogger(logger, &uploads, work)),
|
||||
pipeline.WithTracer(r.createTracer(ctxmeta, logger, work)),
|
||||
pipeline.WithEngine(*r.engine),
|
||||
pipeline.WithBackend(*r.backend),
|
||||
pipeline.WithDescription(map[string]string{
|
||||
"ID": work.ID,
|
||||
"Repo": repoName,
|
||||
|
Reference in New Issue
Block a user