protocol

package
v0.0.0-...-b5d9cbe Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package protocol contains Tast gRPC services and protocol buffer messages available to be used outside Tast

Index

Constants

This section is empty.

Variables

View Source
var (
	DeprecatedDeviceConfig_SOC_name = map[int32]string{
		0:  "SOC_UNSPECIFIED",
		1:  "SOC_AMBERLAKE_Y",
		2:  "SOC_APOLLO_LAKE",
		3:  "SOC_BAY_TRAIL",
		4:  "SOC_BRASWELL",
		5:  "SOC_BROADWELL",
		6:  "SOC_CANNON_LAKE_Y",
		7:  "SOC_COMET_LAKE_U",
		8:  "SOC_EXYNOS_5250",
		9:  "SOC_EXYNOS_5420",
		10: "SOC_GEMINI_LAKE",
		11: "SOC_HASWELL",
		12: "SOC_ICE_LAKE_Y",
		13: "SOC_IVY_BRIDGE",
		14: "SOC_KABYLAKE_U",
		15: "SOC_KABYLAKE_U_R",
		16: "SOC_KABYLAKE_Y",
		17: "SOC_MT8173",
		18: "SOC_MT8176",
		19: "SOC_MT8183",
		20: "SOC_PICASSO",
		21: "SOC_PINE_TRAIL",
		22: "SOC_RK3288",
		23: "SOC_RK3399",
		24: "SOC_SANDY_BRIDGE",
		25: "SOC_SDM845",
		26: "SOC_SKYLAKE_U",
		27: "SOC_SKYLAKE_Y",
		28: "SOC_STONEY_RIDGE",
		29: "SOC_TEGRA_K1",
		30: "SOC_WHISKEY_LAKE_U",
		31: "SOC_SC7180",
		32: "SOC_JASPER_LAKE",
		33: "SOC_TIGER_LAKE",
		34: "SOC_MT8192",
		35: "SOC_ALDER_LAKE",
		36: "SOC_SC7280",
		37: "SOC_MT8195",
		38: "SOC_MT8186",
		39: "SOC_MT8188G",
		40: "SOC_CEZANNE",
		41: "SOC_MENDOCINO",
		42: "SOC_PHOENIX",
		43: "SOC_METEOR_LAKE",
	}
	DeprecatedDeviceConfig_SOC_value = map[string]int32{
		"SOC_UNSPECIFIED":    0,
		"SOC_AMBERLAKE_Y":    1,
		"SOC_APOLLO_LAKE":    2,
		"SOC_BAY_TRAIL":      3,
		"SOC_BRASWELL":       4,
		"SOC_BROADWELL":      5,
		"SOC_CANNON_LAKE_Y":  6,
		"SOC_COMET_LAKE_U":   7,
		"SOC_EXYNOS_5250":    8,
		"SOC_EXYNOS_5420":    9,
		"SOC_GEMINI_LAKE":    10,
		"SOC_HASWELL":        11,
		"SOC_ICE_LAKE_Y":     12,
		"SOC_IVY_BRIDGE":     13,
		"SOC_KABYLAKE_U":     14,
		"SOC_KABYLAKE_U_R":   15,
		"SOC_KABYLAKE_Y":     16,
		"SOC_MT8173":         17,
		"SOC_MT8176":         18,
		"SOC_MT8183":         19,
		"SOC_PICASSO":        20,
		"SOC_PINE_TRAIL":     21,
		"SOC_RK3288":         22,
		"SOC_RK3399":         23,
		"SOC_SANDY_BRIDGE":   24,
		"SOC_SDM845":         25,
		"SOC_SKYLAKE_U":      26,
		"SOC_SKYLAKE_Y":      27,
		"SOC_STONEY_RIDGE":   28,
		"SOC_TEGRA_K1":       29,
		"SOC_WHISKEY_LAKE_U": 30,
		"SOC_SC7180":         31,
		"SOC_JASPER_LAKE":    32,
		"SOC_TIGER_LAKE":     33,
		"SOC_MT8192":         34,
		"SOC_ALDER_LAKE":     35,
		"SOC_SC7280":         36,
		"SOC_MT8195":         37,
		"SOC_MT8186":         38,
		"SOC_MT8188G":        39,
		"SOC_CEZANNE":        40,
		"SOC_MENDOCINO":      41,
		"SOC_PHOENIX":        42,
		"SOC_METEOR_LAKE":    43,
	}
)

Enum value maps for DeprecatedDeviceConfig_SOC.

View Source
var (
	DeprecatedDeviceConfig_Architecture_name = map[int32]string{
		0: "ARCHITECTURE_UNDEFINED",
		1: "X86",
		2: "X86_64",
		3: "ARM",
		4: "ARM64",
	}
	DeprecatedDeviceConfig_Architecture_value = map[string]int32{
		"ARCHITECTURE_UNDEFINED": 0,
		"X86":                    1,
		"X86_64":                 2,
		"ARM":                    3,
		"ARM64":                  4,
	}
)

Enum value maps for DeprecatedDeviceConfig_Architecture.

View Source
var (
	DeprecatedDeviceConfig_PowerSupply_name = map[int32]string{
		0: "POWER_SUPPLY_UNSPECIFIED",
		1: "POWER_SUPPLY_BATTERY",
		2: "POWER_SUPPLY_AC_ONLY",
	}
	DeprecatedDeviceConfig_PowerSupply_value = map[string]int32{
		"POWER_SUPPLY_UNSPECIFIED": 0,
		"POWER_SUPPLY_BATTERY":     1,
		"POWER_SUPPLY_AC_ONLY":     2,
	}
)

Enum value maps for DeprecatedDeviceConfig_PowerSupply.

View Source
var File_dut_lab_config_proto protoreflect.FileDescriptor
View Source
var File_dutfeatures_proto protoreflect.FileDescriptor
View Source
var File_reports_proto protoreflect.FileDescriptor

Functions

func RegisterReportsServer

func RegisterReportsServer(s *grpc.Server, srv ReportsServer)

Types

type DUTFeatures

type DUTFeatures struct {
	Software *SoftwareFeatures `protobuf:"bytes,1,opt,name=software,proto3" json:"software,omitempty"`
	Hardware *HardwareFeatures `protobuf:"bytes,2,opt,name=hardware,proto3" json:"hardware,omitempty"`
	// contains filtered or unexported fields
}

DUTFeatures represents a set of features the DUT provides.

func (*DUTFeatures) Descriptor deprecated

func (*DUTFeatures) Descriptor() ([]byte, []int)

Deprecated: Use DUTFeatures.ProtoReflect.Descriptor instead.

func (*DUTFeatures) GetHardware

func (x *DUTFeatures) GetHardware() *HardwareFeatures

func (*DUTFeatures) GetSoftware

func (x *DUTFeatures) GetSoftware() *SoftwareFeatures

func (*DUTFeatures) ProtoMessage

func (*DUTFeatures) ProtoMessage()

func (*DUTFeatures) ProtoReflect

func (x *DUTFeatures) ProtoReflect() protoreflect.Message

func (*DUTFeatures) Reset

func (x *DUTFeatures) Reset()

func (*DUTFeatures) String

func (x *DUTFeatures) String() string

type DUTLabConfig

type DUTLabConfig struct {

	// ChromeOSDUTLabConfig provides a mapping between roles of ChromeOS
	// DUTs and lab configurations of those DUTs.
	// Note: The role of the primary DUT is "" and the roles of the
	// companion DUTs usaually are cd1, cd2, ...
	ChromeOSDUTLabConfig map[string]*api.Dut `` /* 181-byte string literal not displayed */
	// AndroidDUTLabConfig provides a mapping between the associate hostname
	// of the Android DUTs and lab configurations of those DUTs.
	AndroidDUTLabConfig map[string]*api.Dut `` /* 179-byte string literal not displayed */
	// DevboardDUTLabConfig provides a mapping between the role
	// of Devboard DUTs and lab configurations of those DUTs.
	// Note: The role of the primary DUT is "" and the roles of the
	// companion DUTs usaually are cd1, cd2, ...
	DevboardDUTLabConfig map[string]*api.Dut `` /* 181-byte string literal not displayed */
	// contains filtered or unexported fields
}

DUTLabConfig represents the configurations of all DUT used in a test session.

func (*DUTLabConfig) Descriptor deprecated

func (*DUTLabConfig) Descriptor() ([]byte, []int)

Deprecated: Use DUTLabConfig.ProtoReflect.Descriptor instead.

func (*DUTLabConfig) GetAndroidDUTLabConfig

func (x *DUTLabConfig) GetAndroidDUTLabConfig() map[string]*api.Dut

func (*DUTLabConfig) GetChromeOSDUTLabConfig

func (x *DUTLabConfig) GetChromeOSDUTLabConfig() map[string]*api.Dut

func (*DUTLabConfig) GetDevboardDUTLabConfig

func (x *DUTLabConfig) GetDevboardDUTLabConfig() map[string]*api.Dut

func (*DUTLabConfig) ProtoMessage

func (*DUTLabConfig) ProtoMessage()

func (*DUTLabConfig) ProtoReflect

func (x *DUTLabConfig) ProtoReflect() protoreflect.Message

func (*DUTLabConfig) Reset

func (x *DUTLabConfig) Reset()

func (*DUTLabConfig) String

func (x *DUTLabConfig) String() string

type DeprecatedConfigId

type DeprecatedConfigId struct {
	Model    string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	Brand    string `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"`
	// contains filtered or unexported fields
}

DeprecatedConfigId is the labels given to DUT based on the hardware model or platform name. These information is fetched from the DUT at runtime by the framework.

func (*DeprecatedConfigId) Descriptor deprecated

func (*DeprecatedConfigId) Descriptor() ([]byte, []int)

Deprecated: Use DeprecatedConfigId.ProtoReflect.Descriptor instead.

func (*DeprecatedConfigId) GetBrand

func (x *DeprecatedConfigId) GetBrand() string

func (*DeprecatedConfigId) GetModel

func (x *DeprecatedConfigId) GetModel() string

func (*DeprecatedConfigId) GetPlatform

func (x *DeprecatedConfigId) GetPlatform() string

func (*DeprecatedConfigId) ProtoMessage

func (*DeprecatedConfigId) ProtoMessage()

func (*DeprecatedConfigId) ProtoReflect

func (x *DeprecatedConfigId) ProtoReflect() protoreflect.Message

func (*DeprecatedConfigId) Reset

func (x *DeprecatedConfigId) Reset()

func (*DeprecatedConfigId) String

func (x *DeprecatedConfigId) String() string

type DeprecatedDeviceConfig

type DeprecatedDeviceConfig struct {
	Id    *DeprecatedConfigId                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Soc   DeprecatedDeviceConfig_SOC          `protobuf:"varint,2,opt,name=soc,proto3,enum=tast.core.DeprecatedDeviceConfig_SOC" json:"soc,omitempty"`
	Cpu   DeprecatedDeviceConfig_Architecture `protobuf:"varint,3,opt,name=cpu,proto3,enum=tast.core.DeprecatedDeviceConfig_Architecture" json:"cpu,omitempty"`
	Power DeprecatedDeviceConfig_PowerSupply  `protobuf:"varint,4,opt,name=power,proto3,enum=tast.core.DeprecatedDeviceConfig_PowerSupply" json:"power,omitempty"`
	// Indicate the device's storage supporting NVMe self-test or not.
	HasNvmeSelfTest bool `protobuf:"varint,5,opt,name=has_nvme_self_test,json=hasNvmeSelfTest,proto3" json:"has_nvme_self_test,omitempty"`
	// HasVboot2 indicates whether device uses vboot2.
	HasVboot2 bool `protobuf:"varint,6,opt,name=has_vboot2,json=hasVboot2,proto3" json:"has_vboot2,omitempty"`
	// HasSideVolumeButton indicates whether device has side volume button.
	HasSideVolumeButton bool `protobuf:"varint,7,opt,name=has_side_volume_button,json=hasSideVolumeButton,proto3" json:"has_side_volume_button,omitempty"`
	// contains filtered or unexported fields
}

DeprecatedDeviceConfig stores DUT characteristics not covered by config.api.HardwareFeatures. Some fields/enums were copied from go.chromium.org/chromiumos/infra/proto/go/device package.

func (*DeprecatedDeviceConfig) Descriptor deprecated

func (*DeprecatedDeviceConfig) Descriptor() ([]byte, []int)

Deprecated: Use DeprecatedDeviceConfig.ProtoReflect.Descriptor instead.

func (*DeprecatedDeviceConfig) GetCpu

func (*DeprecatedDeviceConfig) GetHasNvmeSelfTest

func (x *DeprecatedDeviceConfig) GetHasNvmeSelfTest() bool

func (*DeprecatedDeviceConfig) GetHasSideVolumeButton

func (x *DeprecatedDeviceConfig) GetHasSideVolumeButton() bool

func (*DeprecatedDeviceConfig) GetHasVboot2

func (x *DeprecatedDeviceConfig) GetHasVboot2() bool

func (*DeprecatedDeviceConfig) GetId

func (*DeprecatedDeviceConfig) GetPower

func (*DeprecatedDeviceConfig) GetSoc

func (*DeprecatedDeviceConfig) ProtoMessage

func (*DeprecatedDeviceConfig) ProtoMessage()

func (*DeprecatedDeviceConfig) ProtoReflect

func (x *DeprecatedDeviceConfig) ProtoReflect() protoreflect.Message

func (*DeprecatedDeviceConfig) Reset

func (x *DeprecatedDeviceConfig) Reset()

func (*DeprecatedDeviceConfig) String

func (x *DeprecatedDeviceConfig) String() string

type DeprecatedDeviceConfig_Architecture

type DeprecatedDeviceConfig_Architecture int32
const (
	DeprecatedDeviceConfig_ARCHITECTURE_UNDEFINED DeprecatedDeviceConfig_Architecture = 0
	DeprecatedDeviceConfig_X86                    DeprecatedDeviceConfig_Architecture = 1
	DeprecatedDeviceConfig_X86_64                 DeprecatedDeviceConfig_Architecture = 2
	DeprecatedDeviceConfig_ARM                    DeprecatedDeviceConfig_Architecture = 3
	DeprecatedDeviceConfig_ARM64                  DeprecatedDeviceConfig_Architecture = 4
)

func (DeprecatedDeviceConfig_Architecture) Descriptor

func (DeprecatedDeviceConfig_Architecture) Enum

func (DeprecatedDeviceConfig_Architecture) EnumDescriptor deprecated

func (DeprecatedDeviceConfig_Architecture) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeprecatedDeviceConfig_Architecture.Descriptor instead.

func (DeprecatedDeviceConfig_Architecture) Number

func (DeprecatedDeviceConfig_Architecture) String

func (DeprecatedDeviceConfig_Architecture) Type

type DeprecatedDeviceConfig_PowerSupply

type DeprecatedDeviceConfig_PowerSupply int32

Indicate the device's power supply.

const (
	DeprecatedDeviceConfig_POWER_SUPPLY_UNSPECIFIED DeprecatedDeviceConfig_PowerSupply = 0
	DeprecatedDeviceConfig_POWER_SUPPLY_BATTERY     DeprecatedDeviceConfig_PowerSupply = 1
	DeprecatedDeviceConfig_POWER_SUPPLY_AC_ONLY     DeprecatedDeviceConfig_PowerSupply = 2
)

func (DeprecatedDeviceConfig_PowerSupply) Descriptor

func (DeprecatedDeviceConfig_PowerSupply) Enum

func (DeprecatedDeviceConfig_PowerSupply) EnumDescriptor deprecated

func (DeprecatedDeviceConfig_PowerSupply) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeprecatedDeviceConfig_PowerSupply.Descriptor instead.

func (DeprecatedDeviceConfig_PowerSupply) Number

func (DeprecatedDeviceConfig_PowerSupply) String

func (DeprecatedDeviceConfig_PowerSupply) Type

type DeprecatedDeviceConfig_SOC

type DeprecatedDeviceConfig_SOC int32
const (
	DeprecatedDeviceConfig_SOC_UNSPECIFIED DeprecatedDeviceConfig_SOC = 0
	// Aka AML-Y
	DeprecatedDeviceConfig_SOC_AMBERLAKE_Y   DeprecatedDeviceConfig_SOC = 1
	DeprecatedDeviceConfig_SOC_APOLLO_LAKE   DeprecatedDeviceConfig_SOC = 2
	DeprecatedDeviceConfig_SOC_BAY_TRAIL     DeprecatedDeviceConfig_SOC = 3
	DeprecatedDeviceConfig_SOC_BRASWELL      DeprecatedDeviceConfig_SOC = 4
	DeprecatedDeviceConfig_SOC_BROADWELL     DeprecatedDeviceConfig_SOC = 5
	DeprecatedDeviceConfig_SOC_CANNON_LAKE_Y DeprecatedDeviceConfig_SOC = 6
	DeprecatedDeviceConfig_SOC_COMET_LAKE_U  DeprecatedDeviceConfig_SOC = 7
	DeprecatedDeviceConfig_SOC_EXYNOS_5250   DeprecatedDeviceConfig_SOC = 8
	DeprecatedDeviceConfig_SOC_EXYNOS_5420   DeprecatedDeviceConfig_SOC = 9
	// Aka GLK
	DeprecatedDeviceConfig_SOC_GEMINI_LAKE DeprecatedDeviceConfig_SOC = 10
	DeprecatedDeviceConfig_SOC_HASWELL     DeprecatedDeviceConfig_SOC = 11
	DeprecatedDeviceConfig_SOC_ICE_LAKE_Y  DeprecatedDeviceConfig_SOC = 12
	DeprecatedDeviceConfig_SOC_IVY_BRIDGE  DeprecatedDeviceConfig_SOC = 13
	DeprecatedDeviceConfig_SOC_KABYLAKE_U  DeprecatedDeviceConfig_SOC = 14
	// KabyLake U refresh
	DeprecatedDeviceConfig_SOC_KABYLAKE_U_R   DeprecatedDeviceConfig_SOC = 15
	DeprecatedDeviceConfig_SOC_KABYLAKE_Y     DeprecatedDeviceConfig_SOC = 16
	DeprecatedDeviceConfig_SOC_MT8173         DeprecatedDeviceConfig_SOC = 17
	DeprecatedDeviceConfig_SOC_MT8176         DeprecatedDeviceConfig_SOC = 18
	DeprecatedDeviceConfig_SOC_MT8183         DeprecatedDeviceConfig_SOC = 19
	DeprecatedDeviceConfig_SOC_PICASSO        DeprecatedDeviceConfig_SOC = 20
	DeprecatedDeviceConfig_SOC_PINE_TRAIL     DeprecatedDeviceConfig_SOC = 21
	DeprecatedDeviceConfig_SOC_RK3288         DeprecatedDeviceConfig_SOC = 22
	DeprecatedDeviceConfig_SOC_RK3399         DeprecatedDeviceConfig_SOC = 23
	DeprecatedDeviceConfig_SOC_SANDY_BRIDGE   DeprecatedDeviceConfig_SOC = 24
	DeprecatedDeviceConfig_SOC_SDM845         DeprecatedDeviceConfig_SOC = 25
	DeprecatedDeviceConfig_SOC_SKYLAKE_U      DeprecatedDeviceConfig_SOC = 26
	DeprecatedDeviceConfig_SOC_SKYLAKE_Y      DeprecatedDeviceConfig_SOC = 27
	DeprecatedDeviceConfig_SOC_STONEY_RIDGE   DeprecatedDeviceConfig_SOC = 28
	DeprecatedDeviceConfig_SOC_TEGRA_K1       DeprecatedDeviceConfig_SOC = 29
	DeprecatedDeviceConfig_SOC_WHISKEY_LAKE_U DeprecatedDeviceConfig_SOC = 30
	DeprecatedDeviceConfig_SOC_SC7180         DeprecatedDeviceConfig_SOC = 31
	DeprecatedDeviceConfig_SOC_JASPER_LAKE    DeprecatedDeviceConfig_SOC = 32
	DeprecatedDeviceConfig_SOC_TIGER_LAKE     DeprecatedDeviceConfig_SOC = 33
	DeprecatedDeviceConfig_SOC_MT8192         DeprecatedDeviceConfig_SOC = 34
	DeprecatedDeviceConfig_SOC_ALDER_LAKE     DeprecatedDeviceConfig_SOC = 35
	DeprecatedDeviceConfig_SOC_SC7280         DeprecatedDeviceConfig_SOC = 36
	DeprecatedDeviceConfig_SOC_MT8195         DeprecatedDeviceConfig_SOC = 37
	DeprecatedDeviceConfig_SOC_MT8186         DeprecatedDeviceConfig_SOC = 38
	DeprecatedDeviceConfig_SOC_MT8188G        DeprecatedDeviceConfig_SOC = 39
	DeprecatedDeviceConfig_SOC_CEZANNE        DeprecatedDeviceConfig_SOC = 40
	DeprecatedDeviceConfig_SOC_MENDOCINO      DeprecatedDeviceConfig_SOC = 41
	DeprecatedDeviceConfig_SOC_PHOENIX        DeprecatedDeviceConfig_SOC = 42
	DeprecatedDeviceConfig_SOC_METEOR_LAKE    DeprecatedDeviceConfig_SOC = 43
)

func (DeprecatedDeviceConfig_SOC) Descriptor

func (DeprecatedDeviceConfig_SOC) Enum

func (DeprecatedDeviceConfig_SOC) EnumDescriptor deprecated

func (DeprecatedDeviceConfig_SOC) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeprecatedDeviceConfig_SOC.Descriptor instead.

func (DeprecatedDeviceConfig_SOC) Number

func (DeprecatedDeviceConfig_SOC) String

func (DeprecatedDeviceConfig_SOC) Type

type ErrorReport

type ErrorReport struct {
	Time   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Reason string                 `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	File   string                 `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	Line   int32                  `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"`
	Stack  string                 `protobuf:"bytes,5,opt,name=stack,proto3" json:"stack,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorReport) Descriptor deprecated

func (*ErrorReport) Descriptor() ([]byte, []int)

Deprecated: Use ErrorReport.ProtoReflect.Descriptor instead.

func (*ErrorReport) GetFile

func (x *ErrorReport) GetFile() string

func (*ErrorReport) GetLine

func (x *ErrorReport) GetLine() int32

func (*ErrorReport) GetReason

func (x *ErrorReport) GetReason() string

func (*ErrorReport) GetStack

func (x *ErrorReport) GetStack() string

func (*ErrorReport) GetTime

func (x *ErrorReport) GetTime() *timestamppb.Timestamp

func (*ErrorReport) ProtoMessage

func (*ErrorReport) ProtoMessage()

func (*ErrorReport) ProtoReflect

func (x *ErrorReport) ProtoReflect() protoreflect.Message

func (*ErrorReport) Reset

func (x *ErrorReport) Reset()

func (*ErrorReport) String

func (x *ErrorReport) String() string

type HardwareFeatures

type HardwareFeatures struct {
	HardwareFeatures       *api.HardwareFeatures    `protobuf:"bytes,1,opt,name=hardware_features,json=hardwareFeatures,proto3" json:"hardware_features,omitempty"`
	DeprecatedDeviceConfig *DeprecatedDeviceConfig  `` /* 129-byte string literal not displayed */
	SoftwareConfig         *software.SoftwareConfig `protobuf:"bytes,4,opt,name=software_config,json=softwareConfig,proto3" json:"software_config,omitempty"`
	// contains filtered or unexported fields
}

HardwareFeatures represents a set of hardware features available for the device model being tested.

func (*HardwareFeatures) Descriptor deprecated

func (*HardwareFeatures) Descriptor() ([]byte, []int)

Deprecated: Use HardwareFeatures.ProtoReflect.Descriptor instead.

func (*HardwareFeatures) GetDeprecatedDeviceConfig

func (x *HardwareFeatures) GetDeprecatedDeviceConfig() *DeprecatedDeviceConfig

func (*HardwareFeatures) GetHardwareFeatures

func (x *HardwareFeatures) GetHardwareFeatures() *api.HardwareFeatures

func (*HardwareFeatures) GetSoftwareConfig

func (x *HardwareFeatures) GetSoftwareConfig() *software.SoftwareConfig

func (*HardwareFeatures) ProtoMessage

func (*HardwareFeatures) ProtoMessage()

func (*HardwareFeatures) ProtoReflect

func (x *HardwareFeatures) ProtoReflect() protoreflect.Message

func (*HardwareFeatures) Reset

func (x *HardwareFeatures) Reset()

func (*HardwareFeatures) String

func (x *HardwareFeatures) String() string

type LogStreamRequest

type LogStreamRequest struct {
	Test    string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`                      // test name of this log message
	LogPath string `protobuf:"bytes,2,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"` // test log file path relative to the result directory
	Data    []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LogStreamRequest) Descriptor deprecated

func (*LogStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogStreamRequest.ProtoReflect.Descriptor instead.

func (*LogStreamRequest) GetData

func (x *LogStreamRequest) GetData() []byte

func (*LogStreamRequest) GetLogPath

func (x *LogStreamRequest) GetLogPath() string

func (*LogStreamRequest) GetTest

func (x *LogStreamRequest) GetTest() string

func (*LogStreamRequest) ProtoMessage

func (*LogStreamRequest) ProtoMessage()

func (*LogStreamRequest) ProtoReflect

func (x *LogStreamRequest) ProtoReflect() protoreflect.Message

func (*LogStreamRequest) Reset

func (x *LogStreamRequest) Reset()

func (*LogStreamRequest) String

func (x *LogStreamRequest) String() string

type ReportResultRequest

type ReportResultRequest struct {
	Test string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"` // test name of this test result
	// errors contain errors encountered while running the test.
	Errors []*ErrorReport `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
	// skip_reason tells why the test is skipped.
	SkipReason string `protobuf:"bytes,3,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
	// start_time tells the start running time of the test.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// duration tells the duration of the test run.
	Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportResultRequest) Descriptor deprecated

func (*ReportResultRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReportResultRequest.ProtoReflect.Descriptor instead.

func (*ReportResultRequest) GetDuration

func (x *ReportResultRequest) GetDuration() *durationpb.Duration

func (*ReportResultRequest) GetErrors

func (x *ReportResultRequest) GetErrors() []*ErrorReport

func (*ReportResultRequest) GetSkipReason

func (x *ReportResultRequest) GetSkipReason() string

func (*ReportResultRequest) GetStartTime

func (x *ReportResultRequest) GetStartTime() *timestamppb.Timestamp

func (*ReportResultRequest) GetTest

func (x *ReportResultRequest) GetTest() string

func (*ReportResultRequest) ProtoMessage

func (*ReportResultRequest) ProtoMessage()

func (*ReportResultRequest) ProtoReflect

func (x *ReportResultRequest) ProtoReflect() protoreflect.Message

func (*ReportResultRequest) Reset

func (x *ReportResultRequest) Reset()

func (*ReportResultRequest) String

func (x *ReportResultRequest) String() string

type ReportResultResponse

type ReportResultResponse struct {
	Terminate bool `protobuf:"varint,1,opt,name=terminate,proto3" json:"terminate,omitempty"` // If set, the tast should, skipping remaining tests.
	// contains filtered or unexported fields
}

func (*ReportResultResponse) Descriptor deprecated

func (*ReportResultResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReportResultResponse.ProtoReflect.Descriptor instead.

func (*ReportResultResponse) GetTerminate

func (x *ReportResultResponse) GetTerminate() bool

func (*ReportResultResponse) ProtoMessage

func (*ReportResultResponse) ProtoMessage()

func (*ReportResultResponse) ProtoReflect

func (x *ReportResultResponse) ProtoReflect() protoreflect.Message

func (*ReportResultResponse) Reset

func (x *ReportResultResponse) Reset()

func (*ReportResultResponse) String

func (x *ReportResultResponse) String() string

type ReportsClient

type ReportsClient interface {
	// LogStream accepts a stream of log data.
	// The request should be called only once per client.
	LogStream(ctx context.Context, opts ...grpc.CallOption) (Reports_LogStreamClient, error)
	// ReportResults accepts test results from a client.
	// This request can be called multiple times per client.
	ReportResult(ctx context.Context, in *ReportResultRequest, opts ...grpc.CallOption) (*ReportResultResponse, error)
}

ReportsClient is the client API for Reports service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewReportsClient

func NewReportsClient(cc grpc.ClientConnInterface) ReportsClient

type ReportsServer

type ReportsServer interface {
	// LogStream accepts a stream of log data.
	// The request should be called only once per client.
	LogStream(Reports_LogStreamServer) error
	// ReportResults accepts test results from a client.
	// This request can be called multiple times per client.
	ReportResult(context.Context, *ReportResultRequest) (*ReportResultResponse, error)
}

ReportsServer is the server API for Reports service.

type Reports_LogStreamClient

type Reports_LogStreamClient interface {
	Send(*LogStreamRequest) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type Reports_LogStreamServer

type Reports_LogStreamServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*LogStreamRequest, error)
	grpc.ServerStream
}

type SoftwareFeatures

type SoftwareFeatures struct {
	Available   []string `protobuf:"bytes,1,rep,name=available,proto3" json:"available,omitempty"`
	Unavailable []string `protobuf:"bytes,2,rep,name=unavailable,proto3" json:"unavailable,omitempty"`
	// contains filtered or unexported fields
}

SoftwareFeatures represents a set of software features available for the image being tested.

func (*SoftwareFeatures) Descriptor deprecated

func (*SoftwareFeatures) Descriptor() ([]byte, []int)

Deprecated: Use SoftwareFeatures.ProtoReflect.Descriptor instead.

func (*SoftwareFeatures) GetAvailable

func (x *SoftwareFeatures) GetAvailable() []string

func (*SoftwareFeatures) GetUnavailable

func (x *SoftwareFeatures) GetUnavailable() []string

func (*SoftwareFeatures) ProtoMessage

func (*SoftwareFeatures) ProtoMessage()

func (*SoftwareFeatures) ProtoReflect

func (x *SoftwareFeatures) ProtoReflect() protoreflect.Message

func (*SoftwareFeatures) Reset

func (x *SoftwareFeatures) Reset()

func (*SoftwareFeatures) String

func (x *SoftwareFeatures) String() string

type UnimplementedReportsServer

type UnimplementedReportsServer struct {
}

UnimplementedReportsServer can be embedded to have forward compatible implementations.

func (*UnimplementedReportsServer) LogStream

func (*UnimplementedReportsServer) ReportResult

Jump to

Keyboard shortcuts

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