status

package
v0.0.0-...-0352b5b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
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,
	}
)
View Source
var (
	Success_name = map[int32]string{
		0: "OK",
	}
	Success_value = map[string]int32{
		"OK": 0,
	}
)
View Source
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,
	}
)
View Source
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,
	}
)
View Source
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,
	}
)
View Source
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,
	}
)
View Source
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 Container

type Container int32
const (
	Container_CONTAINER_NOT_FOUND     Container = 0
	Container_EACL_NOT_FOUND          Container = 1
	Container_CONTAINER_ACCESS_DENIED Container = 2
)

func (*Container) FromString

func (x *Container) FromString(s string) bool

func (Container) String

func (x Container) String() string

type Object

type Object int32
const (
	Object_ACCESS_DENIED           Object = 0
	Object_OBJECT_NOT_FOUND        Object = 1
	Object_LOCKED                  Object = 2
	Object_LOCK_NON_REGULAR_OBJECT Object = 3
	Object_OBJECT_ALREADY_REMOVED  Object = 4
	Object_OUT_OF_RANGE            Object = 5
)

func (*Object) FromString

func (x *Object) FromString(s string) bool

func (Object) String

func (x Object) String() string

type Section

type Section int32
const (
	Section_SECTION_SUCCESS        Section = 0
	Section_SECTION_FAILURE_COMMON Section = 1
	Section_SECTION_OBJECT         Section = 2
	Section_SECTION_CONTAINER      Section = 3
	Section_SECTION_SESSION        Section = 4
	Section_SECTION_APE_MANAGER    Section = 5
)

func (*Section) FromString

func (x *Section) FromString(s string) bool

func (Section) String

func (x Section) String() string

type Session

type Session int32
const (
	Session_TOKEN_NOT_FOUND Session = 0
	Session_TOKEN_EXPIRED   Session = 1
)

func (*Session) FromString

func (x *Session) FromString(s string) bool

func (Session) String

func (x Session) 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) GetCode

func (x *Status) GetCode() uint32

func (*Status) GetDetails

func (x *Status) GetDetails() []Status_Detail

func (*Status) GetMessage

func (x *Status) GetMessage() string

func (*Status) MarshalEasyJSON

func (x *Status) MarshalEasyJSON(out *jwriter.Writer)

func (*Status) MarshalJSON

func (x *Status) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Status) MarshalProtobuf

func (x *Status) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Status) SetCode

func (x *Status) SetCode(v uint32)

func (*Status) SetDetails

func (x *Status) SetDetails(v []Status_Detail)

func (*Status) SetMessage

func (x *Status) SetMessage(v string)

func (*Status) StableSize

func (x *Status) 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) UnmarshalEasyJSON

func (x *Status) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Status) UnmarshalJSON

func (x *Status) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Status) UnmarshalProtobuf

func (x *Status) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type Status_Detail

type Status_Detail struct {
	Id    uint32 `json:"id"`
	Value []byte `json:"value"`
}

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.

type Success

type Success int32
const (
	Success_OK Success = 0
)

func (*Success) FromString

func (x *Success) FromString(s string) bool

func (Success) String

func (x Success) String() string

Jump to

Keyboard shortcuts

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