ufs

package
v0.0.0-...-f4b31ea Latest Latest
Warning

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

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

Documentation

Overview

Package ufs provides option to build connection to UFS service & invoke it's endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDutStateFromUFS

func GetDutStateFromUFS(ctx context.Context, dutName string) (dutstate.State, error)

GetDutStateFromUFS reads DUT state from the UFS service.

func NewClient

func NewClient(ctx context.Context) (ufsAPI.FleetClient, error)

NewClient initialize and return new client to work with UFS service.

func SafeUpdateUFSDUTState

func SafeUpdateUFSDUTState(ctx context.Context, dutName string, dutState dutstate.State) error

SafeUpdateUFSDUTState attempts to safely update the DUT state to the given value in UFS.

func SetupContext

func SetupContext(ctx context.Context, namespace string) context.Context

SetupContext set up the outgoing context for API calls.

Types

This section is empty.

Jump to

Keyboard shortcuts

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