Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BotForDUT ¶
func BotForDUT(id string, state string, dims string) *swarming.SwarmingRpcsBotInfo
BotForDUT returns BotInfos for DUTs with the given dut id.
state is the bot's state dimension. dims is a convenient way to specify other bot dimensions. "a:x,y;b:z" will set the dimensions of the bot to ["a": ["x", "y"], "b":
["z"]]
func FakeListAliveBotsInPool ¶
func FakeListAliveBotsInPool(bots []*swarming.SwarmingRpcsBotInfo) func(context.Context, string, strpair.Map) ([]*swarming.SwarmingRpcsBotInfo, error)
FakeListAliveBotsInPool returns a function that implements SwarmingClient.ListAliveBotsInPool.
This fake implementation captures the bots argument and returns a subset of the bots filtered by the dimensions argument in the SwarmingClient.ListAliveBotsInPool call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.