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 ¶
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.
Click to show internal directories.
Click to hide internal directories.