mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-21 20:27:17 +03:00
307c2c63de
Signed-off-by: GiteaBot <teabot@gitea.io>
16 lines
402 B
Go
16 lines
402 B
Go
package client
|
|
|
|
import (
|
|
"context"
|
|
|
|
runnerv1 "gitea.com/gitea/proto-go/runner/v1"
|
|
)
|
|
|
|
// A Client manages communication with the runner.
|
|
type Client interface {
|
|
// Ping sends a ping message to the server to test connectivity.
|
|
Ping(ctx context.Context, machine string) error
|
|
|
|
// Request requests the next available build stage for execution.
|
|
Request(ctx context.Context) (*runnerv1.Stage, error)
|
|
}
|