woodpecker/client/interface.go

23 lines
451 B
Go
Raw Normal View History

2016-04-20 01:37:53 +00:00
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.
2016-04-22 00:10:19 +00:00
Pull(os, arch string) (*queue.Work, error)
2016-04-20 01:37:53 +00:00
// 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
}