Documentation
¶
Index ¶
- Variables
- type Exception
- type Failure
- func (*Failure) Descriptor() ([]byte, []int)deprecated
- func (x *Failure) GetException() *Exception
- func (x *Failure) GetFailure() *StepFailure
- func (x *Failure) GetFailureType() isFailure_FailureType
- func (x *Failure) GetHumanReason() string
- func (x *Failure) GetStepData() *StepData
- func (x *Failure) GetTimeout() *Timeout
- func (*Failure) ProtoMessage()
- func (x *Failure) ProtoReflect() protoreflect.Message
- func (x *Failure) Reset()
- func (x *Failure) String() string
- type Failure_Exception
- type Failure_Failure
- type Failure_StepData
- type Failure_Timeout
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetFailure() *Failure
- func (x *Result) GetJsonResult() string
- func (x *Result) GetOneofResult() isResult_OneofResult
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Result_Failure
- type Result_JsonResult
- type StepData
- type StepFailure
- type Timeout
Constants ¶
This section is empty.
Variables ¶
View Source
var File_go_chromium_org_infra_tools_kitchen_third_party_recipe_engine_result_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Exception ¶
type Exception struct { // Traceback of an exception which occurred. Traceback []string `protobuf:"bytes,1,rep,name=traceback,proto3" json:"traceback,omitempty"` // contains filtered or unexported fields }
An unexpected exception occurred during execution. Caused by the builtin Exception class.
func (*Exception) Descriptor
deprecated
func (*Exception) GetTraceback ¶
func (*Exception) ProtoMessage ¶
func (*Exception) ProtoMessage()
func (*Exception) ProtoReflect ¶
func (x *Exception) ProtoReflect() protoreflect.Message
type Failure ¶
type Failure struct { // A reason readable by humans. Printed to the UI, and will be seen by users. HumanReason string `protobuf:"bytes,1,opt,name=human_reason,json=humanReason,proto3" json:"human_reason,omitempty"` // The cause of this failure. // // Types that are valid to be assigned to FailureType: // // *Failure_Timeout // *Failure_Exception // *Failure_StepData // *Failure_Failure FailureType isFailure_FailureType `protobuf_oneof:"failure_type"` // contains filtered or unexported fields }
func (*Failure) Descriptor
deprecated
func (*Failure) GetException ¶
func (*Failure) GetFailure ¶
func (x *Failure) GetFailure() *StepFailure
func (*Failure) GetFailureType ¶
func (x *Failure) GetFailureType() isFailure_FailureType
func (*Failure) GetHumanReason ¶
func (*Failure) GetStepData ¶
func (*Failure) GetTimeout ¶
func (*Failure) ProtoMessage ¶
func (*Failure) ProtoMessage()
func (*Failure) ProtoReflect ¶
func (x *Failure) ProtoReflect() protoreflect.Message
type Failure_Exception ¶
type Failure_Exception struct { // Step threw an exception. Exception *Exception `protobuf:"bytes,3,opt,name=exception,proto3,oneof"` }
type Failure_Failure ¶
type Failure_Failure struct { // Step failed (return code not ok). Failure *StepFailure `protobuf:"bytes,5,opt,name=failure,proto3,oneof"` }
type Failure_StepData ¶
type Failure_StepData struct { // Step accessed invalid step data. StepData *StepData `protobuf:"bytes,4,opt,name=step_data,json=stepData,proto3,oneof"` }
type Failure_Timeout ¶
type Failure_Timeout struct { // Step timed out. Timeout *Timeout `protobuf:"bytes,2,opt,name=timeout,proto3,oneof"` }
type Result ¶
type Result struct { // Types that are valid to be assigned to OneofResult: // // *Result_JsonResult // *Result_Failure OneofResult isResult_OneofResult `protobuf_oneof:"oneof_result"` // contains filtered or unexported fields }
The result of a recipe execution.
func (*Result) Descriptor
deprecated
func (*Result) GetFailure ¶
func (*Result) GetJsonResult ¶
func (*Result) GetOneofResult ¶
func (x *Result) GetOneofResult() isResult_OneofResult
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Result_Failure ¶
type Result_Failure struct { // The cause of the failure of a recipe. Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"` }
type Result_JsonResult ¶
type Result_JsonResult struct { // The json result of a recipe. Guaranteed to be a JSON 'object' (e.g. // "{...}") or omitted. JsonResult string `protobuf:"bytes,1,opt,name=json_result,json=jsonResult,proto3,oneof"` }
type StepData ¶
type StepData struct { // The step which attempted to access invalid data. Step string `protobuf:"bytes,1,opt,name=step,proto3" json:"step,omitempty"` // contains filtered or unexported fields }
A step attempted to access data which did not exist. Caused by StepDataAttributeError in types.py.
func (*StepData) Descriptor
deprecated
func (*StepData) ProtoMessage ¶
func (*StepData) ProtoMessage()
func (*StepData) ProtoReflect ¶
func (x *StepData) ProtoReflect() protoreflect.Message
type StepFailure ¶
type StepFailure struct { // The step which failed. Step string `protobuf:"bytes,1,opt,name=step,proto3" json:"step,omitempty"` // contains filtered or unexported fields }
A step failed to execute "correctly". Correct generally is indicated by a return code of 0, but the step can allow for other return codes as well.
func (*StepFailure) Descriptor
deprecated
func (*StepFailure) Descriptor() ([]byte, []int)
Deprecated: Use StepFailure.ProtoReflect.Descriptor instead.
func (*StepFailure) GetStep ¶
func (x *StepFailure) GetStep() string
func (*StepFailure) ProtoMessage ¶
func (*StepFailure) ProtoMessage()
func (*StepFailure) ProtoReflect ¶
func (x *StepFailure) ProtoReflect() protoreflect.Message
func (*StepFailure) Reset ¶
func (x *StepFailure) Reset()
func (*StepFailure) String ¶
func (x *StepFailure) String() string
type Timeout ¶
type Timeout struct { // The timeout set for the step. TimeoutS float32 `protobuf:"fixed32,1,opt,name=timeout_s,json=timeoutS,proto3" json:"timeout_s,omitempty"` // contains filtered or unexported fields }
A step timed out during its execution. Caused by StepTimeout in recipe_api.py
func (*Timeout) Descriptor
deprecated
func (*Timeout) GetTimeoutS ¶
func (*Timeout) ProtoMessage ¶
func (*Timeout) ProtoMessage()
func (*Timeout) ProtoReflect ¶
func (x *Timeout) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.