You've already forked woodpecker
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user