1
0
Fork 0
mirror of https://github.com/drone/drone-cli.git synced 2024-05-26 16:56:02 +02:00
drone-cli/vendor/github.com/cncd/pipeline/pipeline/backend/backend.go
2017-05-15 13:59:26 +02:00

22 lines
561 B
Go

package backend
import "io"
// Engine defines a container orchestration backend and is used
// to create and manage container resources.
type Engine interface {
// Setup the pipeline environment.
Setup(*Config) error
// Start the pipeline step.
Exec(*Step) error
// Kill the pipeline step.
Kill(*Step) error
// Wait for the pipeline step to complete and returns
// the completion results.
Wait(*Step) (*State, error)
// Tail the pipeline step logs.
Tail(*Step) (io.ReadCloser, error)
// Destroy the pipeline environment.
Destroy(*Config) error
}