2023-02-28 13:44:46 +03:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-08-13 17:41:01 +03:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2022-12-06 11:37:38 +03:00
|
|
|
"code.gitea.io/actions-proto-go/ping/v1/pingv1connect"
|
|
|
|
"code.gitea.io/actions-proto-go/runner/v1/runnerv1connect"
|
2022-08-13 17:41:01 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// A Client manages communication with the runner.
|
2023-05-06 12:00:52 +03:00
|
|
|
//
|
|
|
|
//go:generate mockery --name Client
|
2022-08-13 17:41:01 +03:00
|
|
|
type Client interface {
|
2022-09-25 13:54:00 +03:00
|
|
|
pingv1connect.PingServiceClient
|
|
|
|
runnerv1connect.RunnerServiceClient
|
2022-11-15 17:42:41 +03:00
|
|
|
Address() string
|
2023-02-15 11:51:14 +03:00
|
|
|
Insecure() bool
|
2022-08-13 17:41:01 +03:00
|
|
|
}
|