util

package
v0.0.0-...-0a4d78a Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 7 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 DimensionsMap

func DimensionsMap(sdims []*swarmingv2.StringListPair) strpair.Map

DimensionsMap converts swarming bot dimensions to a map.

func DimensionsMapV2

func DimensionsMapV2(sdims []*swarmingv2.StringListPair) strpair.Map

DimensionsMapV2 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 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 *swarmingv2.BotInfo) 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