1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02: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:
qwerty287
2023-12-14 19:20:47 +01:00
committed by GitHub
parent 0099ff5d26
commit ff1f51d6a9
12 changed files with 89 additions and 103 deletions

View File

@@ -50,8 +50,8 @@ type local struct {
os, arch string
}
// New returns a new local Engine.
func New() types.Engine {
// New returns a new local Backend.
func New() types.Backend {
return &local{
os: runtime.GOOS,
arch: runtime.GOARCH,
@@ -66,7 +66,7 @@ func (e *local) IsAvailable(context.Context) bool {
return true
}
func (e *local) Load(ctx context.Context) (*types.EngineInfo, error) {
func (e *local) Load(ctx context.Context) (*types.BackendInfo, error) {
c, ok := ctx.Value(types.CliContext).(*cli.Context)
if ok {
e.tempDir = c.String("backend-local-temp-dir")
@@ -74,7 +74,7 @@ func (e *local) Load(ctx context.Context) (*types.EngineInfo, error) {
e.loadClone()
return &types.EngineInfo{
return &types.BackendInfo{
Platform: e.os + "/" + e.arch,
}, nil
}