frontend

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

Documentation

Overview

Package frontend implements the RPC endpoints for the inventory service

Index

Constants

View Source
const (

	// DefaultMachineDBService indicates the default machineDB host for importing
	// TODO(xixuan): rename this variable in the following CL
	DefaultMachineDBService string = "machine-db"
	// ProdMachineDBService indicates the prod machine db service name
	ProdMachineDBService string = "machine-db.appspot.com"
)

Variables

This section is empty.

Functions

func AllowOriginAllAndCustomHeaders

func AllowOriginAllAndCustomHeaders(ctx context.Context, origin string) prpc.AccessControlDecision

AllowOriginAllAndCustomHeaders is similar to LUCI's prpc.AllowOriginAll function but includes custom Namespace header used by UFS. Allows web clients to set Namespace for UFS.

func HaRTPushHandler

func HaRTPushHandler(routerContext *router.Context)

HaRTPushHandler handles the pubsub push responses from HaRT pubsub

Decodes the response sent by PubSub and updates datastore. It doesn't return anything as required by https://cloud.google.com/pubsub/docs/push, this is because by default the return is 200 OK for http POST requests. It does return a http error if the datastore update fails.

func InstallHandlers

func InstallHandlers(r *router.Router, mc router.MiddlewareChain)

InstallHandlers installs non PRPC handlers

func InstallServices

func InstallServices(apiServer *server.Server)

InstallServices installs ...

func PartnerInterceptor

func PartnerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

PartnerInterceptor rejects any calls from partner accounts that don't use the os-partner namespace. Relies on having a namespace set and should only be called after another interceptor that calls `SetupDatastoreNamespace` or an equivalent.

Types

type FleetServerImpl

type FleetServerImpl struct {
	ufspb.UnimplementedFleetServer
	// contains filtered or unexported fields
}

FleetServerImpl implements the configuration server interfaces.

func (*FleetServerImpl) BatchGetChromePlatforms

BatchGetChromePlatforms gets chrome platforms from database.

func (*FleetServerImpl) BatchGetDHCPConfigs

BatchGetDHCPConfigs gets a batch of dhcp records from database.

func (*FleetServerImpl) BatchGetDracs

BatchGetDracs gets a batch of dracs in batch from database.

func (*FleetServerImpl) BatchGetKVMs

BatchGetKVMs gets the kvm information in batch from database.

func (*FleetServerImpl) BatchGetMachineLSEDeployments

BatchGetMachineLSEDeployments retrieves a batch of deployment records for hosts

func (*FleetServerImpl) BatchGetMachineLSEPrototypes

BatchGetMachineLSEPrototypes gets machine lse prototypes from database.

func (*FleetServerImpl) BatchGetMachineLSEs

BatchGetMachineLSEs gets a batch of machineLSE information from database.

func (*FleetServerImpl) BatchGetMachines

BatchGetMachines gets a batch of machines in batch from database.

func (*FleetServerImpl) BatchGetNics

BatchGetNics gets nics in batch from database.

func (*FleetServerImpl) BatchGetRPMs

BatchGetRPMs gets rpms in batch from database.

func (*FleetServerImpl) BatchGetRackLSEPrototypes

BatchGetRackLSEPrototypes gets rack lse prototypes from database.

func (*FleetServerImpl) BatchGetRacks

BatchGetRacks gets racks in batch from database.

func (*FleetServerImpl) BatchGetSwitches

BatchGetSwitches gets switches in batch from database.

func (*FleetServerImpl) BatchGetVMs

BatchGetVMs gets a batch of vms from database.

func (*FleetServerImpl) BatchGetVlans

BatchGetVlans gets a batch of vlans from database.

func (*FleetServerImpl) BatchUpdateMachineLSEDeployment

BatchUpdateMachineLSEDeployment updates the deployment record for a batch of hosts

func (*FleetServerImpl) CheckFleetTestsPolicy

func (fs *FleetServerImpl) CheckFleetTestsPolicy(ctx context.Context, req *api.CheckFleetTestsPolicyRequest) (response *api.CheckFleetTestsPolicyResponse, err error)

CheckFleetTestsPolicy returns whether the given the test parameters are for a valid test.

func (*FleetServerImpl) CreateAsset

func (fs *FleetServerImpl) CreateAsset(ctx context.Context, req *ufsAPI.CreateAssetRequest) (response *ufspb.Asset, err error)

CreateAsset creates an asset entry in database.

func (*FleetServerImpl) CreateCachingService

func (fs *FleetServerImpl) CreateCachingService(ctx context.Context, req *ufsAPI.CreateCachingServiceRequest) (rsp *ufspb.CachingService, err error)

CreateCachingService creates CachingService entry in database.

func (*FleetServerImpl) CreateChromePlatform

func (fs *FleetServerImpl) CreateChromePlatform(ctx context.Context, req *ufsAPI.CreateChromePlatformRequest) (rsp *ufspb.ChromePlatform, err error)

CreateChromePlatform creates chromeplatform entry in database.

func (*FleetServerImpl) CreateDefaultWifi

func (fs *FleetServerImpl) CreateDefaultWifi(ctx context.Context, req *ufsAPI.CreateDefaultWifiRequest) (rsp *ufspb.DefaultWifi, err error)

CreateDefaultWifi creates DefaultWifi entry in database.

func (*FleetServerImpl) CreateDrac

func (fs *FleetServerImpl) CreateDrac(ctx context.Context, req *ufsAPI.CreateDracRequest) (rsp *ufspb.Drac, err error)

CreateDrac creates drac entry in database.

func (*FleetServerImpl) CreateKVM

func (fs *FleetServerImpl) CreateKVM(ctx context.Context, req *ufsAPI.CreateKVMRequest) (rsp *ufspb.KVM, err error)

CreateKVM creates kvm entry in database.

func (*FleetServerImpl) CreateMachineLSE

func (fs *FleetServerImpl) CreateMachineLSE(ctx context.Context, req *ufsAPI.CreateMachineLSERequest) (rsp *ufspb.MachineLSE, err error)

CreateMachineLSE creates machineLSE entry in database.

func (*FleetServerImpl) CreateMachineLSEPrototype

func (fs *FleetServerImpl) CreateMachineLSEPrototype(ctx context.Context, req *ufsAPI.CreateMachineLSEPrototypeRequest) (rsp *ufspb.MachineLSEPrototype, err error)

CreateMachineLSEPrototype creates machinelseprototype entry in database.

func (*FleetServerImpl) CreateNic

func (fs *FleetServerImpl) CreateNic(ctx context.Context, req *ufsAPI.CreateNicRequest) (rsp *ufspb.Nic, err error)

CreateNic creates nic entry in database.

func (*FleetServerImpl) CreateRPM

func (fs *FleetServerImpl) CreateRPM(ctx context.Context, req *ufsAPI.CreateRPMRequest) (rsp *ufspb.RPM, err error)

CreateRPM creates rpm entry in database.

func (*FleetServerImpl) CreateRackLSE

func (fs *FleetServerImpl) CreateRackLSE(ctx context.Context, req *ufsAPI.CreateRackLSERequest) (rsp *ufspb.RackLSE, err error)

CreateRackLSE creates rackLSE entry in database.

func (*FleetServerImpl) CreateRackLSEPrototype

func (fs *FleetServerImpl) CreateRackLSEPrototype(ctx context.Context, req *ufsAPI.CreateRackLSEPrototypeRequest) (rsp *ufspb.RackLSEPrototype, err error)

CreateRackLSEPrototype creates racklseprototype entry in database.

func (*FleetServerImpl) CreateSchedulingUnit

func (fs *FleetServerImpl) CreateSchedulingUnit(ctx context.Context, req *ufsAPI.CreateSchedulingUnitRequest) (rsp *ufspb.SchedulingUnit, err error)

CreateSchedulingUnit creates SchedulingUnit entry in database.

func (*FleetServerImpl) CreateSwitch

func (fs *FleetServerImpl) CreateSwitch(ctx context.Context, req *ufsAPI.CreateSwitchRequest) (rsp *ufspb.Switch, err error)

CreateSwitch creates switch entry in database.

func (*FleetServerImpl) CreateVM

func (fs *FleetServerImpl) CreateVM(ctx context.Context, req *ufsAPI.CreateVMRequest) (rsp *ufspb.VM, err error)

CreateVM creates a vm entry in database.

func (*FleetServerImpl) CreateVlan

func (fs *FleetServerImpl) CreateVlan(ctx context.Context, req *ufsAPI.CreateVlanRequest) (rsp *ufspb.Vlan, err error)

CreateVlan creates vlan entry in database.

func (*FleetServerImpl) DeleteAsset

func (fs *FleetServerImpl) DeleteAsset(ctx context.Context, req *ufsAPI.DeleteAssetRequest) (rsp *empty.Empty, err error)

DeleteAsset deletes the asset from database.

func (*FleetServerImpl) DeleteCachingService

func (fs *FleetServerImpl) DeleteCachingService(ctx context.Context, req *ufsAPI.DeleteCachingServiceRequest) (rsp *empty.Empty, err error)

DeleteCachingService deletes the CachingService from database.

func (*FleetServerImpl) DeleteChromePlatform

func (fs *FleetServerImpl) DeleteChromePlatform(ctx context.Context, req *ufsAPI.DeleteChromePlatformRequest) (rsp *empty.Empty, err error)

DeleteChromePlatform deletes the chromeplatform from database.

func (*FleetServerImpl) DeleteDefaultWifi

func (fs *FleetServerImpl) DeleteDefaultWifi(ctx context.Context, req *ufsAPI.DeleteDefaultWifiRequest) (rsp *empty.Empty, err error)

DeleteDefaultWifi deletes the DefaultWifi from database.

func (*FleetServerImpl) DeleteDrac

func (fs *FleetServerImpl) DeleteDrac(ctx context.Context, req *ufsAPI.DeleteDracRequest) (rsp *empty.Empty, err error)

DeleteDrac deletes the drac from database.

func (*FleetServerImpl) DeleteKVM

func (fs *FleetServerImpl) DeleteKVM(ctx context.Context, req *ufsAPI.DeleteKVMRequest) (rsp *empty.Empty, err error)

DeleteKVM deletes the kvm from database.

func (*FleetServerImpl) DeleteMachine

func (fs *FleetServerImpl) DeleteMachine(ctx context.Context, req *ufsAPI.DeleteMachineRequest) (rsp *empty.Empty, err error)

DeleteMachine deletes the machine from database.

func (*FleetServerImpl) DeleteMachineLSE

func (fs *FleetServerImpl) DeleteMachineLSE(ctx context.Context, req *ufsAPI.DeleteMachineLSERequest) (rsp *empty.Empty, err error)

DeleteMachineLSE deletes the machineLSE from database.

func (*FleetServerImpl) DeleteMachineLSEPrototype

func (fs *FleetServerImpl) DeleteMachineLSEPrototype(ctx context.Context, req *ufsAPI.DeleteMachineLSEPrototypeRequest) (rsp *empty.Empty, err error)

DeleteMachineLSEPrototype deletes the machinelseprototype from database.

func (*FleetServerImpl) DeleteNic

func (fs *FleetServerImpl) DeleteNic(ctx context.Context, req *ufsAPI.DeleteNicRequest) (rsp *empty.Empty, err error)

DeleteNic deletes the nic from database.

func (*FleetServerImpl) DeleteRPM

func (fs *FleetServerImpl) DeleteRPM(ctx context.Context, req *ufsAPI.DeleteRPMRequest) (rsp *empty.Empty, err error)

DeleteRPM deletes the rpm from database.

func (*FleetServerImpl) DeleteRack

func (fs *FleetServerImpl) DeleteRack(ctx context.Context, req *ufsAPI.DeleteRackRequest) (rsp *empty.Empty, err error)

DeleteRack deletes the rack from database.

func (*FleetServerImpl) DeleteRackLSE

func (fs *FleetServerImpl) DeleteRackLSE(ctx context.Context, req *ufsAPI.DeleteRackLSERequest) (rsp *empty.Empty, err error)

DeleteRackLSE deletes the rackLSE from database.

func (*FleetServerImpl) DeleteRackLSEPrototype

func (fs *FleetServerImpl) DeleteRackLSEPrototype(ctx context.Context, req *ufsAPI.DeleteRackLSEPrototypeRequest) (rsp *empty.Empty, err error)

DeleteRackLSEPrototype deletes the racklseprototype from database.

func (*FleetServerImpl) DeleteSchedulingUnit

func (fs *FleetServerImpl) DeleteSchedulingUnit(ctx context.Context, req *ufsAPI.DeleteSchedulingUnitRequest) (rsp *empty.Empty, err error)

DeleteSchedulingUnit deletes the SchedulingUnit from database.

func (*FleetServerImpl) DeleteSwitch

func (fs *FleetServerImpl) DeleteSwitch(ctx context.Context, req *ufsAPI.DeleteSwitchRequest) (rsp *empty.Empty, err error)

DeleteSwitch deletes the switch from database.

func (*FleetServerImpl) DeleteVM

func (fs *FleetServerImpl) DeleteVM(ctx context.Context, req *ufsAPI.DeleteVMRequest) (rsp *empty.Empty, err error)

DeleteVM deletes a VM from database.

func (*FleetServerImpl) DeleteVlan

func (fs *FleetServerImpl) DeleteVlan(ctx context.Context, req *ufsAPI.DeleteVlanRequest) (rsp *empty.Empty, err error)

DeleteVlan deletes the vlan from database.

func (*FleetServerImpl) GetAsset

func (fs *FleetServerImpl) GetAsset(ctx context.Context, req *ufsAPI.GetAssetRequest) (rsp *ufspb.Asset, err error)

GetAsset gets the asset information from database.

func (*FleetServerImpl) GetCachingService

func (fs *FleetServerImpl) GetCachingService(ctx context.Context, req *ufsAPI.GetCachingServiceRequest) (rsp *ufspb.CachingService, err error)

GetCachingService gets the CachingService information from database.

func (*FleetServerImpl) GetChromeOSDeviceData

func (fs *FleetServerImpl) GetChromeOSDeviceData(ctx context.Context, req *ufsAPI.GetChromeOSDeviceDataRequest) (rsp *ufspb.ChromeOSDeviceData, err error)

GetChromeOSDeviceData gets the ChromeOSDeviceData(MachineLSE, Machine, Device config, Manufacturing config, Dutstate and Hwid data)

func (*FleetServerImpl) GetChromePlatform

func (fs *FleetServerImpl) GetChromePlatform(ctx context.Context, req *ufsAPI.GetChromePlatformRequest) (rsp *ufspb.ChromePlatform, err error)

GetChromePlatform gets the chromeplatform information from database.

func (*FleetServerImpl) GetDHCPConfig

func (fs *FleetServerImpl) GetDHCPConfig(ctx context.Context, req *ufsAPI.GetDHCPConfigRequest) (rsp *ufspb.DHCPConfig, err error)

GetDHCPConfig gets a dhcp record from database.

func (*FleetServerImpl) GetDUTsForLabstation

GetDUTsForLabstation gets the duts associated with a specific labstation in UFS.

func (*FleetServerImpl) GetDefaultWifi

func (fs *FleetServerImpl) GetDefaultWifi(ctx context.Context, req *ufsAPI.GetDefaultWifiRequest) (rsp *ufspb.DefaultWifi, err error)

GetDefaultWifi returns the specified GetDefaultWifi.

func (*FleetServerImpl) GetDeviceData

GetDeviceData gets the requested device data (scheduling unit, chromeos data, attached device data) from UFS.

func (*FleetServerImpl) GetDeviceLabels

func (*FleetServerImpl) GetDeviceLabels(ctx context.Context, req *ufsAPI.GetDeviceLabelsRequest) (rsp *ufspb.DeviceLabels, err error)

func (*FleetServerImpl) GetDrac

func (fs *FleetServerImpl) GetDrac(ctx context.Context, req *ufsAPI.GetDracRequest) (rsp *ufspb.Drac, err error)

GetDrac gets the drac information from database.

func (*FleetServerImpl) GetDutState

func (fs *FleetServerImpl) GetDutState(ctx context.Context, req *ufsAPI.GetDutStateRequest) (rsp *chromeosLab.DutState, err error)

GetDutState gets the ChromeOS device DutState.

func (*FleetServerImpl) GetHostData

GetHostData gets the machine, host information from database given the serial number.

func (*FleetServerImpl) GetKVM

func (fs *FleetServerImpl) GetKVM(ctx context.Context, req *ufsAPI.GetKVMRequest) (rsp *ufspb.KVM, err error)

GetKVM gets the kvm information from database.

func (*FleetServerImpl) GetMachine

func (fs *FleetServerImpl) GetMachine(ctx context.Context, req *ufsAPI.GetMachineRequest) (rsp *ufspb.Machine, err error)

GetMachine gets the machine information from database.

func (*FleetServerImpl) GetMachineLSE

func (fs *FleetServerImpl) GetMachineLSE(ctx context.Context, req *ufsAPI.GetMachineLSERequest) (rsp *ufspb.MachineLSE, err error)

GetMachineLSE gets the machineLSE information from database.

func (*FleetServerImpl) GetMachineLSEBySerial

func (fs *FleetServerImpl) GetMachineLSEBySerial(ctx context.Context, req *ufsAPI.GetMachineLSEBySerialRequest) (rsp *ufspb.MachineLSE, err error)

GetMachineLSEBySerial gets the machineLSE information from database from serial number.

func (*FleetServerImpl) GetMachineLSEDeployment

func (fs *FleetServerImpl) GetMachineLSEDeployment(ctx context.Context, req *ufsAPI.GetMachineLSEDeploymentRequest) (resp *ufspb.MachineLSEDeployment, err error)

GetMachineLSEDeployment retrieves the deployment record for a host

func (*FleetServerImpl) GetMachineLSEPrototype

func (fs *FleetServerImpl) GetMachineLSEPrototype(ctx context.Context, req *ufsAPI.GetMachineLSEPrototypeRequest) (rsp *ufspb.MachineLSEPrototype, err error)

GetMachineLSEPrototype gets the machinelseprototype information from database.

func (*FleetServerImpl) GetNic

func (fs *FleetServerImpl) GetNic(ctx context.Context, req *ufsAPI.GetNicRequest) (rsp *ufspb.Nic, err error)

GetNic gets the nic information from database.

func (*FleetServerImpl) GetOwnershipData

func (fs *FleetServerImpl) GetOwnershipData(ctx context.Context, req *ufsAPI.GetOwnershipDataRequest) (response *ufspb.OwnershipData, err error)

GetOwnershipData returns the ownership data for a given host.

func (*FleetServerImpl) GetRPM

func (fs *FleetServerImpl) GetRPM(ctx context.Context, req *ufsAPI.GetRPMRequest) (rsp *ufspb.RPM, err error)

GetRPM gets the rpm information from database.

func (*FleetServerImpl) GetRack

func (fs *FleetServerImpl) GetRack(ctx context.Context, req *ufsAPI.GetRackRequest) (rsp *ufspb.Rack, err error)

GetRack gets the rack information from database.

func (*FleetServerImpl) GetRackLSE

func (fs *FleetServerImpl) GetRackLSE(ctx context.Context, req *ufsAPI.GetRackLSERequest) (rsp *ufspb.RackLSE, err error)

GetRackLSE gets the rackLSE information from database.

func (*FleetServerImpl) GetRackLSEPrototype

func (fs *FleetServerImpl) GetRackLSEPrototype(ctx context.Context, req *ufsAPI.GetRackLSEPrototypeRequest) (rsp *ufspb.RackLSEPrototype, err error)

GetRackLSEPrototype gets the racklseprototype information from database.

func (*FleetServerImpl) GetSchedulingUnit

func (fs *FleetServerImpl) GetSchedulingUnit(ctx context.Context, req *ufsAPI.GetSchedulingUnitRequest) (rsp *ufspb.SchedulingUnit, err error)

GetSchedulingUnit gets the SchedulingUnit information from database.

func (*FleetServerImpl) GetState

func (fs *FleetServerImpl) GetState(ctx context.Context, req *ufsAPI.GetStateRequest) (response *ufspb.StateRecord, err error)

GetState returns the state for a resource.

func (*FleetServerImpl) GetSwitch

func (fs *FleetServerImpl) GetSwitch(ctx context.Context, req *ufsAPI.GetSwitchRequest) (rsp *ufspb.Switch, err error)

GetSwitch gets the switch information from database.

func (*FleetServerImpl) GetVM

func (fs *FleetServerImpl) GetVM(ctx context.Context, req *ufsAPI.GetVMRequest) (rsp *ufspb.VM, err error)

GetVM gets the VM information from database.

func (*FleetServerImpl) GetVlan

func (fs *FleetServerImpl) GetVlan(ctx context.Context, req *ufsAPI.GetVlanRequest) (rsp *ufspb.Vlan, err error)

GetVlan gets the vlan information from database.

func (*FleetServerImpl) ImportOSVlans

func (fs *FleetServerImpl) ImportOSVlans(ctx context.Context, req *ufsAPI.ImportOSVlansRequest) (response *status.Status, err error)

ImportOSVlans imports the ChromeOS vlans, ips and dhcp configs.

func (*FleetServerImpl) ListAssets

func (fs *FleetServerImpl) ListAssets(ctx context.Context, req *ufsAPI.ListAssetsRequest) (rsp *ufsAPI.ListAssetsResponse, err error)

ListAssets list the assets information from database.

func (*FleetServerImpl) ListCachingServices

ListCachingServices list the CachingServices information from database.

func (*FleetServerImpl) ListChromePlatforms

ListChromePlatforms list the chromeplatforms information from database.

func (*FleetServerImpl) ListDefaultWifis

ListDefaultWifis list the DefaultWifis information from database.

func (*FleetServerImpl) ListDeviceLabels

func (*FleetServerImpl) ListDracs

func (fs *FleetServerImpl) ListDracs(ctx context.Context, req *ufsAPI.ListDracsRequest) (rsp *ufsAPI.ListDracsResponse, err error)

ListDracs list the dracs information from database.

func (*FleetServerImpl) ListDutStates

ListDutStates list the DutStates information from database.

func (*FleetServerImpl) ListIPs

func (fs *FleetServerImpl) ListIPs(ctx context.Context, req *ufsAPI.ListIPsRequest) (rsp *ufsAPI.ListIPsResponse, err error)

ListIPs retrieves ips.

func (*FleetServerImpl) ListKVMs

func (fs *FleetServerImpl) ListKVMs(ctx context.Context, req *ufsAPI.ListKVMsRequest) (rsp *ufsAPI.ListKVMsResponse, err error)

ListKVMs list the kvms information from database.

func (*FleetServerImpl) ListMachineLSEDeployments

ListMachineLSEDeployments retrieves a list of deployment records

func (*FleetServerImpl) ListMachineLSEPrototypes

ListMachineLSEPrototypes list the machinelseprototypes information from database.

func (*FleetServerImpl) ListMachineLSEs

ListMachineLSEs list the machineLSEs information from database.

func (*FleetServerImpl) ListMachines

ListMachines list the machines information from database.

func (*FleetServerImpl) ListNics

func (fs *FleetServerImpl) ListNics(ctx context.Context, req *ufsAPI.ListNicsRequest) (rsp *ufsAPI.ListNicsResponse, err error)

ListNics list the nics information from database.

func (*FleetServerImpl) ListOSVersions

func (fs *FleetServerImpl) ListOSVersions(ctx context.Context, req *ufsAPI.ListOSVersionsRequest) (response *ufsAPI.ListOSVersionsResponse, err error)

ListOSVersions lists the chrome os versions in batch.

func (*FleetServerImpl) ListOwnershipData

func (fs *FleetServerImpl) ListOwnershipData(ctx context.Context, req *ufsAPI.ListOwnershipDataRequest) (response *ufsAPI.ListOwnershipDataResponse, err error)

ListOwnershipData returns the ownership data entries.

func (*FleetServerImpl) ListRPMs

func (fs *FleetServerImpl) ListRPMs(ctx context.Context, req *ufsAPI.ListRPMsRequest) (rsp *ufsAPI.ListRPMsResponse, err error)

ListRPMs list the rpms information from database.

func (*FleetServerImpl) ListRackLSEPrototypes

ListRackLSEPrototypes list the racklseprototypes information from database.

func (*FleetServerImpl) ListRackLSEs

ListRackLSEs list the rackLSEs information from database.

func (*FleetServerImpl) ListRacks

func (fs *FleetServerImpl) ListRacks(ctx context.Context, req *ufsAPI.ListRacksRequest) (rsp *ufsAPI.ListRacksResponse, err error)

ListRacks list the racks information from database.

func (*FleetServerImpl) ListSchedulingUnits

ListSchedulingUnits list the SchedulingUnits information from database.

func (*FleetServerImpl) ListSwitches

ListSwitches list the switches information from database.

func (*FleetServerImpl) ListVMs

func (fs *FleetServerImpl) ListVMs(ctx context.Context, req *ufsAPI.ListVMsRequest) (rsp *ufsAPI.ListVMsResponse, err error)

ListVMs list the vms information from database.

func (*FleetServerImpl) ListVlans

func (fs *FleetServerImpl) ListVlans(ctx context.Context, req *ufsAPI.ListVlansRequest) (rsp *ufsAPI.ListVlansResponse, err error)

ListVlans list the vlans information from database.

func (*FleetServerImpl) MachineRegistration

func (fs *FleetServerImpl) MachineRegistration(ctx context.Context, req *ufsAPI.MachineRegistrationRequest) (rsp *ufspb.Machine, err error)

MachineRegistration creates machine/nics/drac entry in database.

func (*FleetServerImpl) RackRegistration

func (fs *FleetServerImpl) RackRegistration(ctx context.Context, req *ufsAPI.RackRegistrationRequest) (rsp *ufspb.Rack, err error)

RackRegistration creates rack, switches, kvms, rpms in database.

func (*FleetServerImpl) RenameAsset

func (fs *FleetServerImpl) RenameAsset(ctx context.Context, req *ufsAPI.RenameAssetRequest) (rsp *ufspb.Asset, err error)

RenameAsset renames the asset from database.

func (*FleetServerImpl) RenameMachine

func (fs *FleetServerImpl) RenameMachine(ctx context.Context, req *ufsAPI.RenameMachineRequest) (rsp *ufspb.Machine, err error)

RenameMachine renames the machine in database.

func (*FleetServerImpl) RenameMachineLSE

func (fs *FleetServerImpl) RenameMachineLSE(ctx context.Context, req *ufsAPI.RenameMachineLSERequest) (lse *ufspb.MachineLSE, err error)

RenameMachineLSE renames the machinelse in database.

func (*FleetServerImpl) RenameNic

func (fs *FleetServerImpl) RenameNic(ctx context.Context, req *ufsAPI.RenameNicRequest) (rsp *ufspb.Nic, err error)

RenameNic renames the nic in database.

func (*FleetServerImpl) RenameRack

func (fs *FleetServerImpl) RenameRack(ctx context.Context, req *ufsAPI.RenameRackRequest) (rsp *ufspb.Rack, err error)

RenameRack rename a rack name to a new one.

func (*FleetServerImpl) RenameSwitch

func (fs *FleetServerImpl) RenameSwitch(ctx context.Context, req *ufsAPI.RenameSwitchRequest) (rsp *ufspb.Switch, err error)

RenameSwitch renames the switch in database.

func (*FleetServerImpl) UpdateAsset

func (fs *FleetServerImpl) UpdateAsset(ctx context.Context, req *ufsAPI.UpdateAssetRequest) (rsp *ufspb.Asset, err error)

UpdateAsset updates the asset information in database.

func (*FleetServerImpl) UpdateCachingService

func (fs *FleetServerImpl) UpdateCachingService(ctx context.Context, req *ufsAPI.UpdateCachingServiceRequest) (rsp *ufspb.CachingService, err error)

UpdateCachingService updates the CachingService information in database.

func (*FleetServerImpl) UpdateChromePlatform

func (fs *FleetServerImpl) UpdateChromePlatform(ctx context.Context, req *ufsAPI.UpdateChromePlatformRequest) (rsp *ufspb.ChromePlatform, err error)

UpdateChromePlatform updates the chromeplatform information in database.

func (*FleetServerImpl) UpdateConfigBundle

UpdateConfigBundle creates or updates the ConfigBundle from datastore.

func (*FleetServerImpl) UpdateDefaultWifi

func (fs *FleetServerImpl) UpdateDefaultWifi(ctx context.Context, req *ufsAPI.UpdateDefaultWifiRequest) (rsp *ufspb.DefaultWifi, err error)

UpdateDefaultWifi updates the DefaultWifi information in database.

func (*FleetServerImpl) UpdateDeviceRecoveryData

UpdateDeviceRecoveryData update device configs for a DUT

func (*FleetServerImpl) UpdateDrac

func (fs *FleetServerImpl) UpdateDrac(ctx context.Context, req *ufsAPI.UpdateDracRequest) (rsp *ufspb.Drac, err error)

UpdateDrac updates the drac information in database.

func (*FleetServerImpl) UpdateDutState

func (fs *FleetServerImpl) UpdateDutState(ctx context.Context, req *ufsAPI.UpdateDutStateRequest) (response *chromeosLab.DutState, err error)

UpdateDutState updates DUT state for a DUT.

func (*FleetServerImpl) UpdateKVM

func (fs *FleetServerImpl) UpdateKVM(ctx context.Context, req *ufsAPI.UpdateKVMRequest) (rsp *ufspb.KVM, err error)

UpdateKVM updates the kvm information in database.

func (*FleetServerImpl) UpdateMachine

func (fs *FleetServerImpl) UpdateMachine(ctx context.Context, req *ufsAPI.UpdateMachineRequest) (rsp *ufspb.Machine, err error)

UpdateMachine updates the machine information in database.

func (*FleetServerImpl) UpdateMachineLSE

func (fs *FleetServerImpl) UpdateMachineLSE(ctx context.Context, req *ufsAPI.UpdateMachineLSERequest) (rsp *ufspb.MachineLSE, err error)

UpdateMachineLSE updates the machineLSE information in database.

func (*FleetServerImpl) UpdateMachineLSEDeployment

func (fs *FleetServerImpl) UpdateMachineLSEDeployment(ctx context.Context, req *ufsAPI.UpdateMachineLSEDeploymentRequest) (resp *ufspb.MachineLSEDeployment, err error)

UpdateMachineLSEDeployment updates the deployment record for a host

func (*FleetServerImpl) UpdateMachineLSEPrototype

func (fs *FleetServerImpl) UpdateMachineLSEPrototype(ctx context.Context, req *ufsAPI.UpdateMachineLSEPrototypeRequest) (rsp *ufspb.MachineLSEPrototype, err error)

UpdateMachineLSEPrototype updates the machinelseprototype information in database.

func (*FleetServerImpl) UpdateNic

func (fs *FleetServerImpl) UpdateNic(ctx context.Context, req *ufsAPI.UpdateNicRequest) (rsp *ufspb.Nic, err error)

UpdateNic updates the nic information in database.

func (*FleetServerImpl) UpdateRPM

func (fs *FleetServerImpl) UpdateRPM(ctx context.Context, req *ufsAPI.UpdateRPMRequest) (rsp *ufspb.RPM, err error)

UpdateRPM updates the rpm information in database.

func (*FleetServerImpl) UpdateRack

func (fs *FleetServerImpl) UpdateRack(ctx context.Context, req *ufsAPI.UpdateRackRequest) (rsp *ufspb.Rack, err error)

UpdateRack updates the rack information in database.

func (*FleetServerImpl) UpdateRackLSE

func (fs *FleetServerImpl) UpdateRackLSE(ctx context.Context, req *ufsAPI.UpdateRackLSERequest) (rsp *ufspb.RackLSE, err error)

UpdateRackLSE updates the rackLSE information in database.

func (*FleetServerImpl) UpdateRackLSEPrototype

func (fs *FleetServerImpl) UpdateRackLSEPrototype(ctx context.Context, req *ufsAPI.UpdateRackLSEPrototypeRequest) (rsp *ufspb.RackLSEPrototype, err error)

UpdateRackLSEPrototype updates the racklseprototype information in database.

func (*FleetServerImpl) UpdateSchedulingUnit

func (fs *FleetServerImpl) UpdateSchedulingUnit(ctx context.Context, req *ufsAPI.UpdateSchedulingUnitRequest) (rsp *ufspb.SchedulingUnit, err error)

UpdateSchedulingUnit updates the SchedulingUnit information in database.

func (*FleetServerImpl) UpdateState

func (fs *FleetServerImpl) UpdateState(ctx context.Context, req *ufsAPI.UpdateStateRequest) (response *ufspb.StateRecord, err error)

UpdateState updates the state for a resource.

func (*FleetServerImpl) UpdateSwitch

func (fs *FleetServerImpl) UpdateSwitch(ctx context.Context, req *ufsAPI.UpdateSwitchRequest) (rsp *ufspb.Switch, err error)

UpdateSwitch updates the switch information in database.

func (*FleetServerImpl) UpdateTestData

UpdateTestData updates the device date provide by Test runner.

func (*FleetServerImpl) UpdateVM

func (fs *FleetServerImpl) UpdateVM(ctx context.Context, req *ufsAPI.UpdateVMRequest) (rsp *ufspb.VM, err error)

UpdateVM updates the vm information in database.

func (*FleetServerImpl) UpdateVlan

func (fs *FleetServerImpl) UpdateVlan(ctx context.Context, req *ufsAPI.UpdateVlanRequest) (rsp *ufspb.Vlan, err error)

UpdateVlan updates the vlan information in database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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