mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
23 lines
451 B
Go
23 lines
451 B
Go
package client
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/drone/drone/queue"
|
|
)
|
|
|
|
// Client is used to communicate with a Drone server.
|
|
type Client interface {
|
|
// Pull pulls work from the server queue.
|
|
Pull(os, arch string) (*queue.Work, error)
|
|
|
|
// Push pushes an update to the server.
|
|
Push(*queue.Work) error
|
|
|
|
// Stream streams the build logs to the server.
|
|
Stream(int64, io.ReadCloser) error
|
|
|
|
// Wait waits for the job to the complete.
|
|
Wait(int64) *Wait
|
|
}
|