localinfo

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

Documentation

Index

Constants

View Source
const (
	// CrosVersionKey is the cros version key in the ProvisionableLabels map.
	CrosVersionKey = "cros-version"
	// JobRepoURLKey is the job repo url key in the ProvisionableAttributes map.
	JobRepoURLKey = "job_repo_url"
)

Variables

This section is empty.

Functions

func ReadProvisionInfo

func ReadProvisionInfo(ctx context.Context, dutHostname string) (*tlw.ProvisionedInfo, error)

ReadProvisionInfo takes in the dut name and find the file that existed on the drone about the dut's provision information (cros version and job repo url) and then returns a tlw.ProvisionedInfo that contains these two fields.

func UpdateProvisionInfo

func UpdateProvisionInfo(ctx context.Context, dut *tlw.Dut) error

UpdateProvisionInfo updates the provion file by updating the store.LocalDUTState's two attributes ProvisionableLabels as well as ProvisionableAttributes to the dut's corresponding provision info values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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