2022-08-13 22:41:01 +08:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2022-09-25 18:54:00 +08:00
|
|
|
"gitea.com/gitea/proto-go/ping/v1/pingv1connect"
|
|
|
|
"gitea.com/gitea/proto-go/runner/v1/runnerv1connect"
|
2022-08-13 22:41:01 +08:00
|
|
|
)
|
|
|
|
|
2022-08-28 14:05:56 +08:00
|
|
|
type Filter struct {
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
OS string `json:"os"`
|
|
|
|
Arch string `json:"arch"`
|
|
|
|
Capacity int `json:"capacity"`
|
|
|
|
}
|
|
|
|
|
2022-08-13 22:41:01 +08:00
|
|
|
// A Client manages communication with the runner.
|
|
|
|
type Client interface {
|
2022-09-25 18:54:00 +08:00
|
|
|
pingv1connect.PingServiceClient
|
|
|
|
runnerv1connect.RunnerServiceClient
|
2022-08-13 22:41:01 +08:00
|
|
|
}
|