Documentation ¶
Index ¶
- Variables
- type Code
- type LifeCycleState
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (this *Status) Equal(that interface{}) bool
- func (m *Status) GetContext() *types.Any
- func (m *Status) GetErrCode() Code
- func (m *Status) GetMsg() string
- func (this *Status) GoString() string
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (this *Status) String() string
- func (m *Status) Unmarshal(dAtA []byte) error
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthStatus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStatus = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStatus = fmt.Errorf("proto: unexpected end of group") )
View Source
var Code_name = map[int32]string{
0: "OK",
1: "CANCELLED",
2: "UNKNOWN",
3: "INVALID_ARGUMENT",
4: "DEADLINE_EXCEEDED",
5: "NOT_FOUND",
6: "ALREADY_EXISTS",
7: "PERMISSION_DENIED",
8: "UNAUTHENTICATED",
9: "INTERNAL",
10: "UNIMPLEMENTED",
11: "RESOURCE_UNAVAILABLE",
12: "SYSTEM",
13: "FAILED_PRECONDITION",
100: "DO_NOT_USE_",
}
View Source
var Code_value = map[string]int32{
"OK": 0,
"CANCELLED": 1,
"UNKNOWN": 2,
"INVALID_ARGUMENT": 3,
"DEADLINE_EXCEEDED": 4,
"NOT_FOUND": 5,
"ALREADY_EXISTS": 6,
"PERMISSION_DENIED": 7,
"UNAUTHENTICATED": 8,
"INTERNAL": 9,
"UNIMPLEMENTED": 10,
"RESOURCE_UNAVAILABLE": 11,
"SYSTEM": 12,
"FAILED_PRECONDITION": 13,
"DO_NOT_USE_": 100,
}
View Source
var LifeCycleState_name = map[int32]string{
0: "UNKNOWN_STATE",
1: "PENDING_STATE",
2: "RUNNING_STATE",
3: "FAILED_STATE",
4: "TERMINATED_STATE",
}
View Source
var LifeCycleState_value = map[string]int32{
"UNKNOWN_STATE": 0,
"PENDING_STATE": 1,
"RUNNING_STATE": 2,
"FAILED_STATE": 3,
"TERMINATED_STATE": 4,
}
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code int32
const ( OK Code = 0 CANCELLED Code = 1 UNKNOWN Code = 2 INVALID_ARGUMENT Code = 3 DEADLINE_EXCEEDED Code = 4 NOT_FOUND Code = 5 ALREADY_EXISTS Code = 6 PERMISSION_DENIED Code = 7 UNAUTHENTICATED Code = 8 INTERNAL Code = 9 UNIMPLEMENTED Code = 10 RESOURCE_UNAVAILABLE Code = 11 SYSTEM Code = 12 FAILED_PRECONDITION Code = 13 DO_NOT_USE_ Code = 100 )
func (Code) EnumDescriptor ¶
type LifeCycleState ¶
type LifeCycleState int32
const ( UNKNOWN_STATE LifeCycleState = 0 PENDING_STATE LifeCycleState = 1 RUNNING_STATE LifeCycleState = 2 FAILED_STATE LifeCycleState = 3 TERMINATED_STATE LifeCycleState = 4 )
func (LifeCycleState) EnumDescriptor ¶
func (LifeCycleState) EnumDescriptor() ([]byte, []int)
func (LifeCycleState) String ¶
func (x LifeCycleState) String() string
type Status ¶
type Status struct { ErrCode Code `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3,enum=px.statuspb.Code" json:"err_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Context *types.Any `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` }
func (*Status) Descriptor ¶
func (*Status) GetContext ¶
func (*Status) GetErrCode ¶
func (*Status) MarshalToSizedBuffer ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.