clients

package
v0.0.0-...-f4b31ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package clients defines the PRPC clients

Index

Constants

This section is empty.

Variables

View Source
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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSwarmingClient) ListBots

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

func NewSwarmingClient(ctx context.Context, host string, project string) (SwarmingClient, error)

NewSwarmingClient returns a new SwarmingClient to interact with Swarming APIs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL