Documentation ¶
Index ¶
- Variables
- type APEManager
- type CommonFail
- type Container
- type Object
- type Section
- type Session
- type Status
- func (x *Status) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Status) GetCode() uint32
- func (x *Status) GetDetails() []Status_Detail
- func (x *Status) GetMessage() string
- func (x *Status) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Status) MarshalJSON() ([]byte, error)
- func (x *Status) MarshalProtobuf(dst []byte) []byte
- func (x *Status) SetCode(v uint32)
- func (x *Status) SetDetails(v []Status_Detail)
- func (x *Status) SetMessage(v string)
- func (x *Status) StableSize() (size int)
- func (x *Status) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Status) UnmarshalJSON(data []byte) error
- func (x *Status) UnmarshalProtobuf(src []byte) (err error)
- type Status_Detail
- func (x *Status_Detail) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Status_Detail) GetId() uint32
- func (x *Status_Detail) GetValue() []byte
- func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Status_Detail) MarshalJSON() ([]byte, error)
- func (x *Status_Detail) MarshalProtobuf(dst []byte) []byte
- func (x *Status_Detail) SetId(v uint32)
- func (x *Status_Detail) SetValue(v []byte)
- func (x *Status_Detail) StableSize() (size int)
- func (x *Status_Detail) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Status_Detail) UnmarshalJSON(data []byte) error
- func (x *Status_Detail) UnmarshalProtobuf(src []byte) (err error)
- type Success
Constants ¶
This section is empty.
Variables ¶
var ( Section_name = map[int32]string{ 0: "SECTION_SUCCESS", 1: "SECTION_FAILURE_COMMON", 2: "SECTION_OBJECT", 3: "SECTION_CONTAINER", 4: "SECTION_SESSION", 5: "SECTION_APE_MANAGER", } Section_value = map[string]int32{ "SECTION_SUCCESS": 0, "SECTION_FAILURE_COMMON": 1, "SECTION_OBJECT": 2, "SECTION_CONTAINER": 3, "SECTION_SESSION": 4, "SECTION_APE_MANAGER": 5, } )
var ( Success_name = map[int32]string{ 0: "OK", } Success_value = map[string]int32{ "OK": 0, } )
var ( CommonFail_name = map[int32]string{ 0: "INTERNAL", 1: "WRONG_MAGIC_NUMBER", 2: "SIGNATURE_VERIFICATION_FAIL", 3: "NODE_UNDER_MAINTENANCE", 4: "INVALID_ARGUMENT", } CommonFail_value = map[string]int32{ "INTERNAL": 0, "WRONG_MAGIC_NUMBER": 1, "SIGNATURE_VERIFICATION_FAIL": 2, "NODE_UNDER_MAINTENANCE": 3, "INVALID_ARGUMENT": 4, } )
var ( Object_name = map[int32]string{ 0: "ACCESS_DENIED", 1: "OBJECT_NOT_FOUND", 2: "LOCKED", 3: "LOCK_NON_REGULAR_OBJECT", 4: "OBJECT_ALREADY_REMOVED", 5: "OUT_OF_RANGE", } Object_value = map[string]int32{ "ACCESS_DENIED": 0, "OBJECT_NOT_FOUND": 1, "LOCKED": 2, "LOCK_NON_REGULAR_OBJECT": 3, "OBJECT_ALREADY_REMOVED": 4, "OUT_OF_RANGE": 5, } )
var ( Container_name = map[int32]string{ 0: "CONTAINER_NOT_FOUND", 1: "EACL_NOT_FOUND", 2: "CONTAINER_ACCESS_DENIED", } Container_value = map[string]int32{ "CONTAINER_NOT_FOUND": 0, "EACL_NOT_FOUND": 1, "CONTAINER_ACCESS_DENIED": 2, } )
var ( Session_name = map[int32]string{ 0: "TOKEN_NOT_FOUND", 1: "TOKEN_EXPIRED", } Session_value = map[string]int32{ "TOKEN_NOT_FOUND": 0, "TOKEN_EXPIRED": 1, } )
var ( APEManager_name = map[int32]string{ 0: "APE_MANAGER_ACCESS_DENIED", } APEManager_value = map[string]int32{ "APE_MANAGER_ACCESS_DENIED": 0, } )
Functions ¶
This section is empty.
Types ¶
type APEManager ¶
type APEManager int32
const (
APEManager_APE_MANAGER_ACCESS_DENIED APEManager = 0
)
func (*APEManager) FromString ¶
func (x *APEManager) FromString(s string) bool
func (APEManager) String ¶
func (x APEManager) String() string
type CommonFail ¶
type CommonFail int32
const ( CommonFail_INTERNAL CommonFail = 0 CommonFail_WRONG_MAGIC_NUMBER CommonFail = 1 CommonFail_SIGNATURE_VERIFICATION_FAIL CommonFail = 2 CommonFail_NODE_UNDER_MAINTENANCE CommonFail = 3 CommonFail_INVALID_ARGUMENT CommonFail = 4 )
func (*CommonFail) FromString ¶
func (x *CommonFail) FromString(s string) bool
func (CommonFail) String ¶
func (x CommonFail) String() string
type Status ¶
type Status struct { Code uint32 `json:"code"` Message string `json:"message"` Details []Status_Detail `json:"details"` }
func (*Status) EmitProtobuf ¶
func (x *Status) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Status) GetDetails ¶
func (x *Status) GetDetails() []Status_Detail
func (*Status) GetMessage ¶
func (*Status) MarshalEasyJSON ¶
func (*Status) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Status) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Status) SetDetails ¶
func (x *Status) SetDetails(v []Status_Detail)
func (*Status) SetMessage ¶
func (*Status) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Status) UnmarshalEasyJSON ¶
func (*Status) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Status) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type Status_Detail ¶
func (*Status_Detail) EmitProtobuf ¶
func (x *Status_Detail) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Status_Detail) GetId ¶
func (x *Status_Detail) GetId() uint32
func (*Status_Detail) GetValue ¶
func (x *Status_Detail) GetValue() []byte
func (*Status_Detail) MarshalEasyJSON ¶
func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer)
func (*Status_Detail) MarshalJSON ¶
func (x *Status_Detail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*Status_Detail) MarshalProtobuf ¶
func (x *Status_Detail) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Status_Detail) SetId ¶
func (x *Status_Detail) SetId(v uint32)
func (*Status_Detail) SetValue ¶
func (x *Status_Detail) SetValue(v []byte)
func (*Status_Detail) StableSize ¶
func (x *Status_Detail) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Status_Detail) UnmarshalEasyJSON ¶
func (x *Status_Detail) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*Status_Detail) UnmarshalJSON ¶
func (x *Status_Detail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Status_Detail) UnmarshalProtobuf ¶
func (x *Status_Detail) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.