2022-08-13 15:41:01 +01:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2022-11-22 04:22:19 +00:00
|
|
|
"code.gitea.io/bots-proto-go/ping/v1/pingv1connect"
|
|
|
|
"code.gitea.io/bots-proto-go/runner/v1/runnerv1connect"
|
2022-08-13 15:41:01 +01:00
|
|
|
)
|
|
|
|
|
2022-08-28 07:05:56 +01:00
|
|
|
type Filter struct {
|
2022-10-02 05:33:17 +01:00
|
|
|
OS string `json:"os"`
|
|
|
|
Arch string `json:"arch"`
|
|
|
|
Labels []string `json:"labels"`
|
2022-08-28 07:05:56 +01:00
|
|
|
}
|
|
|
|
|
2022-08-13 15:41:01 +01:00
|
|
|
// A Client manages communication with the runner.
|
|
|
|
type Client interface {
|
2022-09-25 11:54:00 +01:00
|
|
|
pingv1connect.PingServiceClient
|
|
|
|
runnerv1connect.RunnerServiceClient
|
2022-11-15 14:42:41 +00:00
|
|
|
Address() string
|
2022-08-13 15:41:01 +01:00
|
|
|
}
|