config: go.chromium.org/chromiumos/config/go/api/test/results/v2 Index | Files

package results

import "go.chromium.org/chromiumos/config/go/api/test/results/v2"

Index

Package Files

result.pb.go

Variables

var Result_Error_Severity_name = map[int32]string{
    0:  "SEVERITY_UNSPECIFIED",
    1:  "CRITICAL",
    2:  "WARNING",
}
var Result_Error_Severity_value = map[string]int32{
    "SEVERITY_UNSPECIFIED": 0,
    "CRITICAL":             1,
    "WARNING":              2,
}
var Result_Error_Source_name = map[int32]string{
    0:  "SOURCE_UNSPECIFIED",
    1:  "TEST",
    2:  "REMOTE_TEST_DRIVER",
    3:  "TEST_LAB_SERVICES",
}
var Result_Error_Source_value = map[string]int32{
    "SOURCE_UNSPECIFIED": 0,
    "TEST":               1,
    "REMOTE_TEST_DRIVER": 2,
    "TEST_LAB_SERVICES":  3,
}
var Result_State_name = map[int32]string{
    0:  "STATE_UNSPECIFIED",
    1:  "SUCCEEDED",
    2:  "FAILED",
    3:  "SKIPPED",
}
var Result_State_value = map[string]int32{
    "STATE_UNSPECIFIED": 0,
    "SUCCEEDED":         1,
    "FAILED":            2,
    "SKIPPED":           3,
}

type Result Uses

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"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

Result for a single invocation request.

func (*Result) Descriptor Uses

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

func (*Result) GetErrors Uses

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

func (*Result) GetState Uses

func (m *Result) GetState() Result_State

func (*Result) ProtoMessage Uses

func (*Result) ProtoMessage()

func (*Result) Reset Uses

func (m *Result) Reset()

func (*Result) String Uses

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown Uses

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal Uses

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge Uses

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size Uses

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal Uses

func (m *Result) XXX_Unmarshal(b []byte) error

type Result_Error Uses

type Result_Error struct {
    // Provenance of the detected error.
    Source Result_Error_Source `protobuf:"varint,1,opt,name=source,proto3,enum=chromiumos.config.api.test.results.v2.Result_Error_Source" json:"source,omitempty"`
    // Severity of reported error.
    Severity Result_Error_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=chromiumos.config.api.test.results.v2.Result_Error_Severity" json:"severity,omitempty"`
    // 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              *_struct.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

func (*Result_Error) Descriptor Uses

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

func (*Result_Error) GetDetails Uses

func (m *Result_Error) GetDetails() *_struct.Struct

func (*Result_Error) GetSeverity Uses

func (m *Result_Error) GetSeverity() Result_Error_Severity

func (*Result_Error) GetSource Uses

func (m *Result_Error) GetSource() Result_Error_Source

func (*Result_Error) ProtoMessage Uses

func (*Result_Error) ProtoMessage()

func (*Result_Error) Reset Uses

func (m *Result_Error) Reset()

func (*Result_Error) String Uses

func (m *Result_Error) String() string

func (*Result_Error) XXX_DiscardUnknown Uses

func (m *Result_Error) XXX_DiscardUnknown()

func (*Result_Error) XXX_Marshal Uses

func (m *Result_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result_Error) XXX_Merge Uses

func (m *Result_Error) XXX_Merge(src proto.Message)

func (*Result_Error) XXX_Size Uses

func (m *Result_Error) XXX_Size() int

func (*Result_Error) XXX_Unmarshal Uses

func (m *Result_Error) XXX_Unmarshal(b []byte) error

type Result_Error_Severity Uses

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) EnumDescriptor Uses

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

func (Result_Error_Severity) String Uses

func (x Result_Error_Severity) String() string

type Result_Error_Source Uses

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) EnumDescriptor Uses

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

func (Result_Error_Source) String Uses

func (x Result_Error_Source) String() string

type Result_State Uses

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) EnumDescriptor Uses

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

func (Result_State) String Uses

func (x Result_State) String() string

Package results imports 4 packages (graph) and is imported by 1 packages. Updated 2020-08-04. Refresh now. Tools for package owners.