Documentation ¶
Index ¶
- Variables
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetGroup() string
- func (x *Group) GetNamespace() string
- func (x *Group) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- func (m *Group) Validate() error
- func (m *Group) ValidateAll() error
- type GroupMultiError
- type GroupValidationError
- type ListTaskRequest
- func (*ListTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTaskRequest) GetGroup() *Group
- func (x *ListTaskRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (*ListTaskRequest) ProtoMessage()
- func (x *ListTaskRequest) ProtoReflect() protoreflect.Message
- func (x *ListTaskRequest) Reset()
- func (x *ListTaskRequest) String() string
- func (m *ListTaskRequest) Validate() error
- func (m *ListTaskRequest) ValidateAll() error
- type ListTaskRequestMultiError
- type ListTaskRequestValidationError
- func (e ListTaskRequestValidationError) Cause() error
- func (e ListTaskRequestValidationError) Error() string
- func (e ListTaskRequestValidationError) ErrorName() string
- func (e ListTaskRequestValidationError) Field() string
- func (e ListTaskRequestValidationError) Key() bool
- func (e ListTaskRequestValidationError) Reason() string
- type State
- type TaskInfo
- func (*TaskInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TaskInfo) GetGroup() *Group
- func (x *TaskInfo) GetId() string
- func (x *TaskInfo) GetInputData() string
- func (x *TaskInfo) GetInputType() string
- func (x *TaskInfo) GetReason() string
- func (x *TaskInfo) GetState() State
- func (x *TaskInfo) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (*TaskInfo) ProtoMessage()
- func (x *TaskInfo) ProtoReflect() protoreflect.Message
- func (x *TaskInfo) Reset()
- func (x *TaskInfo) String() string
- func (m *TaskInfo) Validate() error
- func (m *TaskInfo) ValidateAll() error
- type TaskInfoMultiError
- type TaskInfoValidationError
Constants ¶
This section is empty.
Variables ¶
var ( State_name = map[int32]string{ 0: "UNKNOWN", 1: "RUNNING", 2: "SUCCESS", 3: "FAILURE", 4: "CLAIMED", } State_value = map[string]int32{ "UNKNOWN": 0, "RUNNING": 1, "SUCCESS": 2, "FAILURE": 3, "CLAIMED": 4, } )
Enum value maps for State.
var File_task_task_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetNamespace ¶
func (*Group) MarshalLogObject ¶
func (x *Group) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶ added in v2.7.0
func (x *Group) ProtoReflect() protoreflect.Message
func (*Group) Validate ¶ added in v2.8.0
Validate checks the field values on Group with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Group) ValidateAll ¶ added in v2.8.0
ValidateAll checks the field values on Group with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GroupMultiError, or nil if none found.
type GroupMultiError ¶ added in v2.8.0
type GroupMultiError []error
GroupMultiError is an error wrapping multiple validation errors returned by Group.ValidateAll() if the designated constraints aren't met.
func (GroupMultiError) AllErrors ¶ added in v2.8.0
func (m GroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GroupMultiError) Error ¶ added in v2.8.0
func (m GroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GroupValidationError ¶ added in v2.8.0
type GroupValidationError struct {
// contains filtered or unexported fields
}
GroupValidationError is the validation error returned by Group.Validate if the designated constraints aren't met.
func (GroupValidationError) Cause ¶ added in v2.8.0
func (e GroupValidationError) Cause() error
Cause function returns cause value.
func (GroupValidationError) Error ¶ added in v2.8.0
func (e GroupValidationError) Error() string
Error satisfies the builtin error interface
func (GroupValidationError) ErrorName ¶ added in v2.8.0
func (e GroupValidationError) ErrorName() string
ErrorName returns error name.
func (GroupValidationError) Field ¶ added in v2.8.0
func (e GroupValidationError) Field() string
Field function returns field value.
func (GroupValidationError) Key ¶ added in v2.8.0
func (e GroupValidationError) Key() bool
Key function returns key value.
func (GroupValidationError) Reason ¶ added in v2.8.0
func (e GroupValidationError) Reason() string
Reason function returns reason value.
type ListTaskRequest ¶
type ListTaskRequest struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*ListTaskRequest) Descriptor
deprecated
func (*ListTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTaskRequest.ProtoReflect.Descriptor instead.
func (*ListTaskRequest) GetGroup ¶
func (x *ListTaskRequest) GetGroup() *Group
func (*ListTaskRequest) MarshalLogObject ¶
func (x *ListTaskRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (*ListTaskRequest) ProtoMessage ¶
func (*ListTaskRequest) ProtoMessage()
func (*ListTaskRequest) ProtoReflect ¶ added in v2.7.0
func (x *ListTaskRequest) ProtoReflect() protoreflect.Message
func (*ListTaskRequest) Reset ¶
func (x *ListTaskRequest) Reset()
func (*ListTaskRequest) String ¶
func (x *ListTaskRequest) String() string
func (*ListTaskRequest) Validate ¶ added in v2.8.0
func (m *ListTaskRequest) Validate() error
Validate checks the field values on ListTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListTaskRequest) ValidateAll ¶ added in v2.8.0
func (m *ListTaskRequest) ValidateAll() error
ValidateAll checks the field values on ListTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTaskRequestMultiError, or nil if none found.
type ListTaskRequestMultiError ¶ added in v2.8.0
type ListTaskRequestMultiError []error
ListTaskRequestMultiError is an error wrapping multiple validation errors returned by ListTaskRequest.ValidateAll() if the designated constraints aren't met.
func (ListTaskRequestMultiError) AllErrors ¶ added in v2.8.0
func (m ListTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListTaskRequestMultiError) Error ¶ added in v2.8.0
func (m ListTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListTaskRequestValidationError ¶ added in v2.8.0
type ListTaskRequestValidationError struct {
// contains filtered or unexported fields
}
ListTaskRequestValidationError is the validation error returned by ListTaskRequest.Validate if the designated constraints aren't met.
func (ListTaskRequestValidationError) Cause ¶ added in v2.8.0
func (e ListTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTaskRequestValidationError) Error ¶ added in v2.8.0
func (e ListTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTaskRequestValidationError) ErrorName ¶ added in v2.8.0
func (e ListTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTaskRequestValidationError) Field ¶ added in v2.8.0
func (e ListTaskRequestValidationError) Field() string
Field function returns field value.
func (ListTaskRequestValidationError) Key ¶ added in v2.8.0
func (e ListTaskRequestValidationError) Key() bool
Key function returns key value.
func (ListTaskRequestValidationError) Reason ¶ added in v2.8.0
func (e ListTaskRequestValidationError) Reason() string
Reason function returns reason value.
type State ¶
type State int32
func (State) Descriptor ¶ added in v2.7.0
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶ added in v2.7.0
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶ added in v2.7.0
func (State) Type() protoreflect.EnumType
type TaskInfo ¶
type TaskInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` State State `protobuf:"varint,3,opt,name=state,proto3,enum=taskapi.State" json:"state,omitempty"` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` InputType string `protobuf:"bytes,5,opt,name=input_type,json=inputType,proto3" json:"input_type,omitempty"` InputData string `protobuf:"bytes,6,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"` // contains filtered or unexported fields }
func (*TaskInfo) Descriptor
deprecated
func (*TaskInfo) GetInputData ¶
func (*TaskInfo) GetInputType ¶
func (*TaskInfo) MarshalLogObject ¶
func (x *TaskInfo) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (*TaskInfo) ProtoMessage ¶
func (*TaskInfo) ProtoMessage()
func (*TaskInfo) ProtoReflect ¶ added in v2.7.0
func (x *TaskInfo) ProtoReflect() protoreflect.Message
func (*TaskInfo) Validate ¶ added in v2.8.0
Validate checks the field values on TaskInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TaskInfo) ValidateAll ¶ added in v2.8.0
ValidateAll checks the field values on TaskInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TaskInfoMultiError, or nil if none found.
type TaskInfoMultiError ¶ added in v2.8.0
type TaskInfoMultiError []error
TaskInfoMultiError is an error wrapping multiple validation errors returned by TaskInfo.ValidateAll() if the designated constraints aren't met.
func (TaskInfoMultiError) AllErrors ¶ added in v2.8.0
func (m TaskInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TaskInfoMultiError) Error ¶ added in v2.8.0
func (m TaskInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TaskInfoValidationError ¶ added in v2.8.0
type TaskInfoValidationError struct {
// contains filtered or unexported fields
}
TaskInfoValidationError is the validation error returned by TaskInfo.Validate if the designated constraints aren't met.
func (TaskInfoValidationError) Cause ¶ added in v2.8.0
func (e TaskInfoValidationError) Cause() error
Cause function returns cause value.
func (TaskInfoValidationError) Error ¶ added in v2.8.0
func (e TaskInfoValidationError) Error() string
Error satisfies the builtin error interface
func (TaskInfoValidationError) ErrorName ¶ added in v2.8.0
func (e TaskInfoValidationError) ErrorName() string
ErrorName returns error name.
func (TaskInfoValidationError) Field ¶ added in v2.8.0
func (e TaskInfoValidationError) Field() string
Field function returns field value.
func (TaskInfoValidationError) Key ¶ added in v2.8.0
func (e TaskInfoValidationError) Key() bool
Key function returns key value.
func (TaskInfoValidationError) Reason ¶ added in v2.8.0
func (e TaskInfoValidationError) Reason() string
Reason function returns reason value.