Documentation
¶
Index ¶
- func InstallServices(srv *server.Server)
- type InventoryServerImpl
- func (is *InventoryServerImpl) BatchCreateManualRepairRecords(ctx context.Context, req *api.BatchCreateManualRepairRecordsRequest) (rsp *api.BatchCreateManualRepairRecordsResponse, err error)
- func (is *InventoryServerImpl) BatchGetManualRepairRecords(ctx context.Context, req *api.BatchGetManualRepairRecordsRequest) (rsp *api.BatchGetManualRepairRecordsResponse, err error)
- func (is *InventoryServerImpl) CreateDeviceManualRepairRecord(ctx context.Context, req *api.CreateDeviceManualRepairRecordRequest) (rsp *api.CreateDeviceManualRepairRecordResponse, err error)
- func (is *InventoryServerImpl) DeviceConfigsExists(ctx context.Context, req *api.DeviceConfigsExistsRequest) (rsp *api.DeviceConfigsExistsResponse, err error)
- func (is *InventoryServerImpl) GetCrosDevices(ctx context.Context, req *api.GetCrosDevicesRequest) (resp *api.GetCrosDevicesResponse, err error)
- func (is *InventoryServerImpl) GetDeviceConfig(ctx context.Context, req *api.GetDeviceConfigRequest) (resp *device.Config, err error)
- func (is *InventoryServerImpl) GetDeviceManualRepairRecord(ctx context.Context, req *api.GetDeviceManualRepairRecordRequest) (rsp *api.GetDeviceManualRepairRecordResponse, err error)
- func (is *InventoryServerImpl) GetHwidData(ctx context.Context, req *api.GetHwidDataRequest) (resp *api.HwidData, err error)
- func (is *InventoryServerImpl) GetManufacturingConfig(ctx context.Context, req *api.GetManufacturingConfigRequest) (resp *manufacturing.Config, err error)
- func (is *InventoryServerImpl) ListCrosDevicesLabConfig(ctx context.Context, req *api.ListCrosDevicesLabConfigRequest) (response *api.ListCrosDevicesLabConfigResponse, err error)
- func (is *InventoryServerImpl) ListDeviceConfigs(ctx context.Context, req *api.ListDeviceConfigsRequest) (resp *api.ListDeviceConfigsResponse, err error)
- func (is *InventoryServerImpl) ListManualRepairRecords(ctx context.Context, req *api.ListManualRepairRecordsRequest) (rsp *api.ListManualRepairRecordsResponse, err error)
- func (is *InventoryServerImpl) UpdateDeviceManualRepairRecord(ctx context.Context, req *api.UpdateDeviceManualRepairRecordRequest) (rsp *api.UpdateDeviceManualRepairRecordResponse, err error)
- func (is *InventoryServerImpl) UpdateDutsStatus(ctx context.Context, req *api.UpdateDutsStatusRequest) (resp *api.UpdateDutsStatusResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallServices ¶
InstallServices install the prpc handlers in the server
Types ¶
type InventoryServerImpl ¶
type InventoryServerImpl struct { }
InventoryServerImpl implements service interfaces.
func (*InventoryServerImpl) BatchCreateManualRepairRecords ¶
func (is *InventoryServerImpl) BatchCreateManualRepairRecords(ctx context.Context, req *api.BatchCreateManualRepairRecordsRequest) (rsp *api.BatchCreateManualRepairRecordsResponse, err error)
BatchCreateManualRepairRecords creates new submitted manual repair records for a batch of given devices. All records will have the same CreatedTime.
func (*InventoryServerImpl) BatchGetManualRepairRecords ¶
func (is *InventoryServerImpl) BatchGetManualRepairRecords(ctx context.Context, req *api.BatchGetManualRepairRecordsRequest) (rsp *api.BatchGetManualRepairRecordsResponse, err error)
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 ¶
func (is *InventoryServerImpl) CreateDeviceManualRepairRecord(ctx context.Context, req *api.CreateDeviceManualRepairRecordRequest) (rsp *api.CreateDeviceManualRepairRecordResponse, err error)
CreateDeviceManualRepairRecord adds a new submitted manual repair record for a given device.
func (*InventoryServerImpl) DeviceConfigsExists ¶
func (is *InventoryServerImpl) DeviceConfigsExists(ctx context.Context, req *api.DeviceConfigsExistsRequest) (rsp *api.DeviceConfigsExistsResponse, err error)
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 ¶
func (is *InventoryServerImpl) GetDeviceManualRepairRecord(ctx context.Context, req *api.GetDeviceManualRepairRecordRequest) (rsp *api.GetDeviceManualRepairRecordResponse, err error)
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 ¶
func (is *InventoryServerImpl) ListManualRepairRecords(ctx context.Context, req *api.ListManualRepairRecordsRequest) (rsp *api.ListManualRepairRecordsResponse, err error)
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 ¶
func (is *InventoryServerImpl) UpdateDeviceManualRepairRecord(ctx context.Context, req *api.UpdateDeviceManualRepairRecordRequest) (rsp *api.UpdateDeviceManualRepairRecordResponse, err error)
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.