mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-20 17:01:01 +00:00
17 lines
333 B
Go
17 lines
333 B
Go
|
package build
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
|
||
|
"github.com/drone/drone/yaml"
|
||
|
)
|
||
|
|
||
|
// Engine defines the container runtime engine.
|
||
|
type Engine interface {
|
||
|
ContainerStart(*yaml.Container) (string, error)
|
||
|
ContainerStop(string) error
|
||
|
ContainerRemove(string) error
|
||
|
ContainerWait(string) (*State, error)
|
||
|
ContainerLogs(string) (io.ReadCloser, error)
|
||
|
}
|