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