initial commit [ci skip]
This commit is contained in:
23
engine/engine.go
Normal file
23
engine/engine.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2019 Drone.IO Inc. All rights reserved.
|
||||
// Use of this source code is governed by the Polyform License
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
package engine
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
)
|
||||
|
||||
// Engine is the interface that must be implemented by a
|
||||
// pipeline execution engine.
|
||||
type Engine interface {
|
||||
// Setup the pipeline environment.
|
||||
Setup(context.Context, *Spec) error
|
||||
|
||||
// Destroy the pipeline environment.
|
||||
Destroy(context.Context, *Spec) error
|
||||
|
||||
// Run runs the pipeine step.
|
||||
Run(context.Context, *Spec, *Step, io.Writer) (*State, error)
|
||||
}
|
||||
Reference in New Issue
Block a user