rpc_services

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

Documentation

Overview

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2024 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2024 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SatlabRpcServiceServer

type SatlabRpcServiceServer struct {
	pb.UnimplementedSatlabRpcServiceServer
	// contains filtered or unexported fields
}

SatlabRpcServiceServer is the gRPC service that provides every function.

func New

func New(
	dev bool,
	buildService build_service.IBuildService,
	bucketService bucket_services.IBucketServices,
	dutService dut_services.IDUTServices,
	cpuTemperatureOrchestrator *cpu_temperature.CPUTemperatureOrchestrator,
	swarmingService services.ISwarmingService,
) *SatlabRpcServiceServer

func (*SatlabRpcServiceServer) AbortJobs

CancelJobs handles the request that users want to cancel jobs.

func (*SatlabRpcServiceServer) AddDuts

func (*SatlabRpcServiceServer) AddPool

func (*SatlabRpcServiceServer) Close

func (s *SatlabRpcServiceServer) Close(ctx context.Context)

Close clean up

func (*SatlabRpcServiceServer) DeleteDuts

DeleteDuts the RPC service for deleting DUTs

func (*SatlabRpcServiceServer) DownloadLog

func (*SatlabRpcServiceServer) GetChildTasksCountByStatus

func (s *SatlabRpcServiceServer) GetChildTasksCountByStatus(
	ctx context.Context,
	startTime *timestamp.Timestamp,
	jobID string,
	tags []string,
	jobStates []swarmingapi.StateQuery,
) (*pb.TasksStatusCount, error)

GetChildTasksCountByStatus returns child tasks count for given states.

func (*SatlabRpcServiceServer) GetCloudConfiguration

GetCloudConfiguration get the cloud configuration from env and boto file.

func (*SatlabRpcServiceServer) GetConnectedDuts

func (s *SatlabRpcServiceServer) GetConnectedDuts(ctx context.Context, executor executor.IExecCommander) ([]*pb.Dut, error)

func (*SatlabRpcServiceServer) GetDutDetail

func (*SatlabRpcServiceServer) GetJobDetails

func (s *SatlabRpcServiceServer) GetJobDetails(ctx context.Context, taskInfo *swarmingapi.TaskResultResponse) (*pb.Job, error)

GetJobDetails extracts tasks details used by Satlab UI.

func (*SatlabRpcServiceServer) GetNetworkInfo

GetNetworkInfo gets newwork information of satlab.

func (*SatlabRpcServiceServer) GetPeripheralInformation

GetPeripheralInformation get peripheral inforamtion by given DUT IP.

func (*SatlabRpcServiceServer) GetSystemInfo

GetSystemInfo get the system information

func (*SatlabRpcServiceServer) GetTestPlan

func (*SatlabRpcServiceServer) GetVersionInfo

func (*SatlabRpcServiceServer) ListAccessibleModels

ListAccessibleModels the gRPC server entry point to list all models for a given board

pb.ListAccessibleModelsRequest in the request from the client we use it as a filter to list the models.

func (*SatlabRpcServiceServer) ListBuildTargets

ListBuildTargets the gRPC server entry point to list all the build targets.

ListBuildTargetsRequest _ we don't need use any parameter from the request, but we need to define it as a parameter to satisfy the compiler. To see more, we can look at the `src/satlab_rpcserver/satlabrpc.proto`

func (*SatlabRpcServiceServer) ListBuildVersions

ListBuildVersions the gRPC server entry point to list all build versions for given board, model, and milestone. TODO Add a cache for listing build versions

pb.ListBuildVersionsRequest in the request from the client we use to it as a filter to list the build versions.

func (*SatlabRpcServiceServer) ListConnectedDutsFirmware

ListConnectedDutsFirmware get current and firmware update on each DUT

func (*SatlabRpcServiceServer) ListDutEvents

func (*SatlabRpcServiceServer) ListDutTasks

func (*SatlabRpcServiceServer) ListDuts

func (*SatlabRpcServiceServer) ListEnrolledDuts

func (*SatlabRpcServiceServer) ListJobs

ListJobs a GRPC call to list all jobs(swarming tasks) based on filters.

func (*SatlabRpcServiceServer) ListMilestones

ListMilestones the gRPC server entry point to list all milestones from GCS bucket. TODO Add a cache for listing milestones

pb.ListMilestonesRequest in the request from the client we use it as a filter to list the milestones.

func (*SatlabRpcServiceServer) ListTestPlans

func (*SatlabRpcServiceServer) OpenCCD

OpenCCD trigger `open CCD`

func (*SatlabRpcServiceServer) Reboot

Reboot call a reboot command on RPC container

func (*SatlabRpcServiceServer) RepairDuts

RepairDuts a GRPC call for repairing the DUTs.

func (*SatlabRpcServiceServer) RunLabQual

RunBvt run a bvt test with special parameters

func (*SatlabRpcServiceServer) RunQualification

RunQualification runs a generic PVS qualification on the provided hardware and software.

func (*SatlabRpcServiceServer) RunStorageQual

RunStorageQual run a storage qualification suite or test

func (*SatlabRpcServiceServer) RunSuite

Run suite triggers the test suite on the satlab. Right now, this is implemented using CTPBuildRequest

func (*SatlabRpcServiceServer) RunTest

func (*SatlabRpcServiceServer) RunTestPlan

func (*SatlabRpcServiceServer) SendMessageToCCDSession

func (*SatlabRpcServiceServer) SetCloudConfiguration

func (*SatlabRpcServiceServer) StableVersion

func (*SatlabRpcServiceServer) StageBuild

StageBuild stage a build version in bucket.

pb.StageBuildRequest in the request from client which we want to stage the artifact in the partner bucket.

func (*SatlabRpcServiceServer) StartServod

StartServod start Docker servod container.

func (*SatlabRpcServiceServer) UpdateDutsFirmware

UpdateDutsFirmware update Duts by given IPs

func (*SatlabRpcServiceServer) UpdatePool

func (*SatlabRpcServiceServer) UploadLog

type Streaming

type Streaming struct {
	// contains filtered or unexported fields
}

func (*Streaming) Write

func (s *Streaming) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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