ufs

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: 14 Imported by: 0

Documentation

Overview

Package ufs is a labservice internal package that contains types and functions related to UFS interaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory struct {
	// UFS gRPC service address.
	Service string
	// Path to service account JSON file.
	ServiceAccountPath string
}

A ClientFactory is used to create UFS clients. The client needs a context which is request specific, so the client needs to be created per incoming request.

func (*ClientFactory) NewClient

func (f *ClientFactory) NewClient(ctx context.Context) (ufsapi.FleetClient, error)

type DeviceType

type DeviceType int64
const (
	ChromeOSDevice DeviceType = iota
	AndroidDevice
)

type Inventory

type Inventory struct {
	// contains filtered or unexported fields
}

Inventory builds the DutTopology object from UFS.

func NewInventory

func NewInventory(c ufsapi.FleetClient, cl *cache.Locator) *Inventory

func (*Inventory) GetDutTopology

func (inv *Inventory) GetDutTopology(ctx context.Context, id string) (*labapi.DutTopology, error)

GetDutTopology returns a DutTopology constructed from UFS. The returned error, if any, has gRPC status information.

Directories

Path Synopsis
Package cache provides functionality to map DUTs to caching servers.
Package cache provides functionality to map DUTs to caching servers.
Package wifisecret provides functionality to map DUTs to a wifi secret.
Package wifisecret provides functionality to map DUTs to a wifi secret.

Jump to

Keyboard shortcuts

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