results

package
v0.0.0-...-b8a1838 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Result_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "SUCCEEDED",
		2: "FAILED",
		3: "SKIPPED",
	}
	Result_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"SUCCEEDED":         1,
		"FAILED":            2,
		"SKIPPED":           3,
	}
)

Enum value maps for Result_State.

View Source
var (
	Result_Error_Source_name = map[int32]string{
		0: "SOURCE_UNSPECIFIED",
		1: "TEST",
		2: "REMOTE_TEST_DRIVER",
		3: "TEST_LAB_SERVICES",
	}
	Result_Error_Source_value = map[string]int32{
		"SOURCE_UNSPECIFIED": 0,
		"TEST":               1,
		"REMOTE_TEST_DRIVER": 2,
		"TEST_LAB_SERVICES":  3,
	}
)

Enum value maps for Result_Error_Source.

View Source
var (
	Result_Error_Severity_name = map[int32]string{
		0: "SEVERITY_UNSPECIFIED",
		1: "CRITICAL",
		2: "WARNING",
	}
	Result_Error_Severity_value = map[string]int32{
		"SEVERITY_UNSPECIFIED": 0,
		"CRITICAL":             1,
		"WARNING":              2,
	}
)

Enum value maps for Result_Error_Severity.

View Source
var File_chromiumos_config_api_test_results_v2_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Result

type Result struct {

	// Final state of the test execution.
	//
	// Error details MUST be available in `errors` if state != SUCCEEDED.
	State Result_State `protobuf:"varint,1,opt,name=state,proto3,enum=chromiumos.config.api.test.results.v2.Result_State" json:"state,omitempty"`
	// errors MUST be set if state != SUCCEEDED.
	//
	// errors may be provided even if state == SUCCEEDED. Remote Test Drivers are
	// encouraged to provide multiple observed errors in Result to aid end-user
	// visibility of problems encountered.
	Errors []*Result_Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Result for a single invocation request.

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetErrors

func (x *Result) GetErrors() []*Result_Error

func (*Result) GetState

func (x *Result) GetState() Result_State

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Result_Error

type Result_Error struct {

	// Provenance of the detected error.
	Source Result_Error_Source `` /* 129-byte string literal not displayed */
	// Severity of reported error.
	Severity Result_Error_Severity `` /* 135-byte string literal not displayed */
	// Machine parseable details about the error.
	//
	// Test Lab Environments and Remote Test Servers MUST NOT interpret the
	// details.
	//
	// Remote Test Drivers SHOULD use uniform stable schema for `details` to
	// enable robust analytics.
	Details *structpb.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*Result_Error) Descriptor deprecated

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

Deprecated: Use Result_Error.ProtoReflect.Descriptor instead.

func (*Result_Error) GetDetails

func (x *Result_Error) GetDetails() *structpb.Struct

func (*Result_Error) GetSeverity

func (x *Result_Error) GetSeverity() Result_Error_Severity

func (*Result_Error) GetSource

func (x *Result_Error) GetSource() Result_Error_Source

func (*Result_Error) ProtoMessage

func (*Result_Error) ProtoMessage()

func (*Result_Error) ProtoReflect

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

func (*Result_Error) Reset

func (x *Result_Error) Reset()

func (*Result_Error) String

func (x *Result_Error) String() string

type Result_Error_Severity

type Result_Error_Severity int32

Enum entries *may* be added in the future.

const (
	// No Severity set. SHOULD NOT be used.
	Result_Error_SEVERITY_UNSPECIFIED Result_Error_Severity = 0
	// Remote Test Server SHOULD validate that a Result contains a CRITICAL
	// message iff state == FAILED.
	Result_Error_CRITICAL Result_Error_Severity = 1
	// MUST NOT, by itself, lead to a FAILED Result.state.
	Result_Error_WARNING Result_Error_Severity = 2
)

func (Result_Error_Severity) Descriptor

func (Result_Error_Severity) Enum

func (Result_Error_Severity) EnumDescriptor deprecated

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

Deprecated: Use Result_Error_Severity.Descriptor instead.

func (Result_Error_Severity) Number

func (Result_Error_Severity) String

func (x Result_Error_Severity) String() string

func (Result_Error_Severity) Type

type Result_Error_Source

type Result_Error_Source int32

Enum entries *may* be added in the future.

const (
	// No Source specified. SHOULD NOT be used.
	//
	// If source is unspecified, the Test Lab Environment SHOULD assume the
	// source to be the Remote Test Driver.
	Result_Error_SOURCE_UNSPECIFIED Result_Error_Source = 0
	// The test failed.
	Result_Error_TEST Result_Error_Source = 1
	// There was an error in Remote Test Driver invocation.
	Result_Error_REMOTE_TEST_DRIVER Result_Error_Source = 2
	// There was an error in a Test Lab Services API call.
	Result_Error_TEST_LAB_SERVICES Result_Error_Source = 3
)

func (Result_Error_Source) Descriptor

func (Result_Error_Source) Enum

func (Result_Error_Source) EnumDescriptor deprecated

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

Deprecated: Use Result_Error_Source.Descriptor instead.

func (Result_Error_Source) Number

func (Result_Error_Source) String

func (x Result_Error_Source) String() string

func (Result_Error_Source) Type

type Result_State

type Result_State int32

Enum entries *may* be added to this enum in the future.

const (
	// No end state specified. MUST NOT be used.
	Result_STATE_UNSPECIFIED Result_State = 0
	// Test request succeeded. All was well.
	Result_SUCCEEDED Result_State = 1
	// Test request failed. See `error` for more information.
	Result_FAILED Result_State = 2
	// Test did not run because the Remote Test Driver decided to skip it.
	//
	// Common reasons a test may be skipped:
	//
	// * A runtime check by the Remote Test Driver concluded that the test is
	//   not applicable to the targeted device(s). The Remote Test Driver SHOULD
	//   include detailed reasons in `errors`.
	Result_SKIPPED Result_State = 3
)

func (Result_State) Descriptor

func (Result_State) Enum

func (x Result_State) Enum() *Result_State

func (Result_State) EnumDescriptor deprecated

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

Deprecated: Use Result_State.Descriptor instead.

func (Result_State) Number

func (Result_State) String

func (x Result_State) String() string

func (Result_State) Type

Jump to

Keyboard shortcuts

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