Documentation
¶
Overview ¶
Package clients defines the PRPC clients
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MockSwarmingClientKey = "used in tests only for setting the mock SwarmingClient"
Functions ¶
This section is empty.
Types ¶
type MockSwarmingClient ¶
type MockSwarmingClient struct {
// contains filtered or unexported fields
}
MockSwarmingClient is a mock of SwarmingClient interface.
func NewMockSwarmingClient ¶
func NewMockSwarmingClient(ctrl *gomock.Controller) *MockSwarmingClient
NewMockSwarmingClient creates a new mock instance.
func (*MockSwarmingClient) EXPECT ¶
func (m *MockSwarmingClient) EXPECT() *MockSwarmingClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwarmingClient) ListBots ¶
func (m *MockSwarmingClient) ListBots(ctx context.Context, in *apipb.BotsRequest) (*apipb.BotInfoListResponse, error)
ListBots mocks base method.
type MockSwarmingClientMockRecorder ¶
type MockSwarmingClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSwarmingClientMockRecorder is the mock recorder for MockSwarmingClient.
func (*MockSwarmingClientMockRecorder) ListBots ¶
func (mr *MockSwarmingClientMockRecorder) ListBots(ctx, in interface{}) *gomock.Call
ListBots indicates an expected call of ListBots.
type SwarmingClient ¶
type SwarmingClient interface {
ListBots(ctx context.Context, in *apipb.BotsRequest) (*apipb.BotInfoListResponse, error)
}
SwarmingClient is a Swarming API wrapper for drone-queen specific usage.
In prod, a SwarmingClient for interacting with the Swarming service will be used. Tests should use a fake implementation.
func NewSwarmingClient ¶
NewSwarmingClient returns a new SwarmingClient to interact with Swarming APIs.