schedulingunit

package
v0.0.0-...-40fa89b Latest Latest
Warning

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

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

Documentation

Overview

Package schedulingunit contains library functions that help manipulate UFS scheduling unit data for different Fleet services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfLSEBelongsToSU

func CheckIfLSEBelongsToSU(ctx context.Context, ic ufsAPI.FleetClient, lseName string) error

CheckIfLSEBelongsToSU checks if the DUT/Labstation belongs to a SchedulingUnit.

User is not allowed to udpate a DUT/Labstation which belongs to a SU. The DUT/Labstation needs to be removed from the SU and then updated.

func GetSchedulingUnitBotState

func GetSchedulingUnitBotState(su *ufspb.SchedulingUnit) map[string][]string

GetSchedulingUnitBotState converts UFS SchedulingUnit data to bot state and returns it as a map.

func GetSchedulingUnitDimensions

func GetSchedulingUnitDimensions(su *ufspb.SchedulingUnit, dutsDims []swarming.Dimensions) map[string][]string

GetSchedulingUnitDimensions converts UFS SchedulingUnit data to Swarming labels and returns it as a map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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