frontend

package
v0.0.0-...-350d524 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallServices

func InstallServices(srv *server.Server)

InstallServices install the prpc handlers in the server

Types

type InventoryServerImpl

type InventoryServerImpl struct {
}

InventoryServerImpl implements service interfaces.

func (*InventoryServerImpl) BatchCreateManualRepairRecords

BatchCreateManualRepairRecords creates new submitted manual repair records for a batch of given devices. All records will have the same CreatedTime.

func (*InventoryServerImpl) BatchGetManualRepairRecords

BatchGetManualRepairRecords gets the open record corresponding to each host in the list of given hostnames. If no open record is found, an empty object will be returned for that hostname.

func (*InventoryServerImpl) CreateDeviceManualRepairRecord

CreateDeviceManualRepairRecord adds a new submitted manual repair record for a given device.

func (*InventoryServerImpl) DeviceConfigsExists

DeviceConfigsExists checks if the device_configs for the given configIds exists in the datastore

func (*InventoryServerImpl) GetCrosDevices

func (is *InventoryServerImpl) GetCrosDevices(ctx context.Context, req *api.GetCrosDevicesRequest) (resp *api.GetCrosDevicesResponse, err error)

GetCrosDevices retrieves requested Chrome OS devices from the inventory.

func (*InventoryServerImpl) GetDeviceConfig

func (is *InventoryServerImpl) GetDeviceConfig(ctx context.Context, req *api.GetDeviceConfigRequest) (resp *device.Config, err error)

GetDeviceConfig retrieves requested Chrome OS device device config from the inventory.

func (*InventoryServerImpl) GetDeviceManualRepairRecord

GetDeviceManualRepairRecord checks and returns a manual repair record for a given device hostname if it exists.

func (*InventoryServerImpl) GetHwidData

func (is *InventoryServerImpl) GetHwidData(ctx context.Context, req *api.GetHwidDataRequest) (resp *api.HwidData, err error)

GetHwidData retrieves requested Chrome OS device Hwid Data from the inventory.

func (*InventoryServerImpl) GetManufacturingConfig

func (is *InventoryServerImpl) GetManufacturingConfig(ctx context.Context, req *api.GetManufacturingConfigRequest) (resp *manufacturing.Config, err error)

GetManufacturingConfig retrieves requested Chrome OS device manufacturing config from the inventory.

func (*InventoryServerImpl) ListCrosDevicesLabConfig

func (is *InventoryServerImpl) ListCrosDevicesLabConfig(ctx context.Context, req *api.ListCrosDevicesLabConfigRequest) (response *api.ListCrosDevicesLabConfigResponse, err error)

ListCrosDevicesLabConfig retrieves all lab configs

func (*InventoryServerImpl) ListDeviceConfigs

func (is *InventoryServerImpl) ListDeviceConfigs(ctx context.Context, req *api.ListDeviceConfigsRequest) (resp *api.ListDeviceConfigsResponse, err error)

ListDeviceConfigs lists all device configs inventory has in datastore.

func (*InventoryServerImpl) ListManualRepairRecords

ListManualRepairRecords takes filtering parameters and returns a list of repair records that match the filters.

Currently supports filtering on: - hostname - asset tag - user ldap - repair state - limit (number of records) - offset - used for pagination

func (*InventoryServerImpl) UpdateDeviceManualRepairRecord

UpdateDeviceManualRepairRecord updates an existing manual repair record with new submitted info for a given device.

func (*InventoryServerImpl) UpdateDutsStatus

func (is *InventoryServerImpl) UpdateDutsStatus(ctx context.Context, req *api.UpdateDutsStatusRequest) (resp *api.UpdateDutsStatusResponse, err error)

UpdateDutsStatus updates selected Duts' status labels, metas related to testing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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