device

package
v0.0.0-...-9febfc8 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: 13 Imported by: 0

Documentation

Overview

Package device contains helper functions for fleet devices.

Package device contains library functions that help manipulate UFS device data for different Fleet services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOSResourceDims

func GetOSResourceDims(ctx context.Context, client ufsAPI.FleetClient, r swarming.ReportFunc, name string) (swarming.Dimensions, error)

GetOSResourceDims gets the dimensions of a fleet resource to present to the scheduling layer.

func GetPools

func GetPools(ctx context.Context, client GetPoolsClient, hostname string) ([]string, error)

GetPools gets the pools associated with a particular bot or dut.

Types

type GetPoolsClient

type GetPoolsClient interface {
	GetMachineLSE(ctx context.Context, in *ufsAPI.GetMachineLSERequest, opts ...grpc.CallOption) (*ufspb.MachineLSE, error)
	GetDeviceData(ctx context.Context, in *ufsAPI.GetDeviceDataRequest, opts ...grpc.CallOption) (*ufsAPI.GetDeviceDataResponse, error)
}

GetPoolsClient exposes the subset of the UFS client API for GetPools.

Directories

Path Synopsis
Package attacheddevice contains library functions that help manipulate UFS Attached Device data for different Fleet services.
Package attacheddevice contains library functions that help manipulate UFS Attached Device data for different Fleet services.
Package dut contains library functions that help manipulate UFS DUT data for different Fleet services.
Package dut contains library functions that help manipulate UFS DUT data for different Fleet services.
Package schedulingunit contains library functions that help manipulate UFS scheduling unit data for different Fleet services.
Package schedulingunit contains library functions that help manipulate UFS scheduling unit data for different Fleet services.

Jump to

Keyboard shortcuts

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