swarming

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package swarming contains utilities for skylab swarming tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonTags

func AddCommonTags(ctx context.Context, ts ...string) []string

AddCommonTags adds some Swarming tags common to all Skylab admin tasks.

func DimensionsMap

func DimensionsMap(sdims []*swarming.SwarmingRpcsStringListPair) strpair.Map

DimensionsMap converts swarming bot dimensions to a map.

func ExtractSingleValuedDimension

func ExtractSingleValuedDimension(dims strpair.Map, key string) (string, error)

ExtractSingleValuedDimension extracts one specified dimension from a dimension slice.

func SetCommonTaskArgs

SetCommonTaskArgs sets Swarming task arguments common to all Skylab admin tasks.

func URLForTags

func URLForTags(ctx context.Context, tags []string) string

URLForTags returns the task URL for a given tag list.

func URLForTask

func URLForTask(ctx context.Context, tid string) string

URLForTask returns the task URL for a given task ID.

Types

type BotState

type BotState struct {
	StorageState  []string `json:"storage_state"`
	ServoUSBState []string `json:"servo_usb_state"`
	RpmState      []string `json:"rpm_state"`
}

BotState represents State of the BOT in the swarming

func ExtractBotState

func ExtractBotState(botInfo *swarming.SwarmingRpcsBotInfo) BotState

ExtractBotState extracts BOTState from BOT info.

Jump to

Keyboard shortcuts

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