statuspb

package
v0.0.0-...-73c8340 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

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

func (Code) String

func (x Code) String() string

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) Descriptor() ([]byte, []int)

func (*Status) Equal

func (this *Status) Equal(that interface{}) bool

func (*Status) GetContext

func (m *Status) GetContext() *types.Any

func (*Status) GetErrCode

func (m *Status) GetErrCode() Code

func (*Status) GetMsg

func (m *Status) GetMsg() string

func (*Status) GoString

func (this *Status) GoString() string

func (*Status) Marshal

func (m *Status) Marshal() (dAtA []byte, err error)

func (*Status) MarshalTo

func (m *Status) MarshalTo(dAtA []byte) (int, error)

func (*Status) MarshalToSizedBuffer

func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) Size

func (m *Status) Size() (n int)

func (*Status) String

func (this *Status) String() string

func (*Status) Unmarshal

func (m *Status) Unmarshal(dAtA []byte) error

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

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

func (*Status) XXX_Merge

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

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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