Documentation ¶
Index ¶
- Constants
- func GlobalizeFail(c *status.Code)
- func LocalizeFailStatus(c *status.Code) bool
- func ReadAccessDeniedDesc(st status.Status) (desc string)
- func WriteAccessDeniedDesc(st *status.Status, desc string)
- type AddChainRequest
- type AddChainRequestBody
- func (reqBody *AddChainRequestBody) FromGRPCMessage(m grpc.Message) error
- func (rb *AddChainRequestBody) GetChain() *ape.Chain
- func (rb *AddChainRequestBody) GetTarget() *ape.ChainTarget
- func (rb *AddChainRequestBody) SetChain(chain *ape.Chain)
- func (rb *AddChainRequestBody) SetTarget(target *ape.ChainTarget)
- func (rb *AddChainRequestBody) StableMarshal(buf []byte) []byte
- func (rb *AddChainRequestBody) StableSize() (size int)
- func (reqBody *AddChainRequestBody) ToGRPCMessage() grpc.Message
- func (rb *AddChainRequestBody) Unmarshal(data []byte) error
- type AddChainResponse
- type AddChainResponseBody
- func (respBody *AddChainResponseBody) FromGRPCMessage(m grpc.Message) error
- func (rb *AddChainResponseBody) GetChainID() []byte
- func (rb *AddChainResponseBody) SetChainID(chainID []byte)
- func (rb *AddChainResponseBody) StableMarshal(buf []byte) []byte
- func (rb *AddChainResponseBody) StableSize() (size int)
- func (respBody *AddChainResponseBody) ToGRPCMessage() grpc.Message
- func (rb *AddChainResponseBody) Unmarshal(data []byte) error
- type ListChainsRequest
- type ListChainsRequestBody
- func (reqBody *ListChainsRequestBody) FromGRPCMessage(m grpc.Message) error
- func (rb *ListChainsRequestBody) GetTarget() *ape.ChainTarget
- func (rb *ListChainsRequestBody) SetTarget(target *ape.ChainTarget)
- func (rb *ListChainsRequestBody) StableMarshal(buf []byte) []byte
- func (rb *ListChainsRequestBody) StableSize() (size int)
- func (reqBody *ListChainsRequestBody) ToGRPCMessage() grpc.Message
- func (rb *ListChainsRequestBody) Unmarshal(data []byte) error
- type ListChainsResponse
- type ListChainsResponseBody
- func (respBody *ListChainsResponseBody) FromGRPCMessage(m grpc.Message) error
- func (r *ListChainsResponseBody) GetChains() []*ape.Chain
- func (r *ListChainsResponseBody) SetChains(chains []*ape.Chain)
- func (rb *ListChainsResponseBody) StableMarshal(buf []byte) []byte
- func (rb *ListChainsResponseBody) StableSize() (size int)
- func (respBody *ListChainsResponseBody) ToGRPCMessage() grpc.Message
- func (rb *ListChainsResponseBody) Unmarshal(data []byte) error
- type RemoveChainRequest
- type RemoveChainRequestBody
- func (reqBody *RemoveChainRequestBody) FromGRPCMessage(m grpc.Message) error
- func (rb *RemoveChainRequestBody) GetChainID() []byte
- func (rb *RemoveChainRequestBody) GetTarget() *ape.ChainTarget
- func (rb *RemoveChainRequestBody) SetChainID(chainID []byte)
- func (rb *RemoveChainRequestBody) SetTarget(target *ape.ChainTarget)
- func (rb *RemoveChainRequestBody) StableMarshal(buf []byte) []byte
- func (rb *RemoveChainRequestBody) StableSize() (size int)
- func (reqBody *RemoveChainRequestBody) ToGRPCMessage() grpc.Message
- func (rb *RemoveChainRequestBody) Unmarshal(data []byte) error
- type RemoveChainResponse
- type RemoveChainResponseBody
- func (respBody *RemoveChainResponseBody) FromGRPCMessage(m grpc.Message) error
- func (rb *RemoveChainResponseBody) StableMarshal(buf []byte) []byte
- func (rb *RemoveChainResponseBody) StableSize() (size int)
- func (respBody *RemoveChainResponseBody) ToGRPCMessage() grpc.Message
- func (rb *RemoveChainResponseBody) Unmarshal(data []byte) error
Constants ¶
View Source
const ( // StatusAPEManagerAccessDenied is a local status.Code value for // ACCESS_DENIED ape manager failure. StatusAPEManagerAccessDenied status.Code = iota )
Variables ¶
This section is empty.
Functions ¶
func GlobalizeFail ¶
GlobalizeFail globalizes local code of ape manager failure.
Arg must be non-nil.
func LocalizeFailStatus ¶
LocalizeFailStatus checks if passed global status.Code is related to ape manager failure and:
then localizes the code and returns true, else leaves the code unchanged and returns false.
Arg must be non-nil.
func ReadAccessDeniedDesc ¶
ReadAccessDeniedDesc looks up for status detail with human-readable description of StatusAccessDenied. Returns empty string if detail is missing.
func WriteAccessDeniedDesc ¶
WriteAccessDeniedDesc writes human-readable description of StatusAccessDenied into status.Status as a detail. The status must not be nil.
Existing details are expected to be ID-unique, otherwise undefined behavior.
Types ¶
type AddChainRequest ¶
type AddChainRequest struct { session.RequestHeaders // contains filtered or unexported fields }
func (*AddChainRequest) FromGRPCMessage ¶
func (req *AddChainRequest) FromGRPCMessage(m grpc.Message) error
func (*AddChainRequest) GetBody ¶
func (r *AddChainRequest) GetBody() *AddChainRequestBody
func (*AddChainRequest) SetBody ¶
func (r *AddChainRequest) SetBody(body *AddChainRequestBody)
func (*AddChainRequest) ToGRPCMessage ¶
func (req *AddChainRequest) ToGRPCMessage() grpc.Message
type AddChainRequestBody ¶
type AddChainRequestBody struct {
// contains filtered or unexported fields
}
func (*AddChainRequestBody) FromGRPCMessage ¶
func (reqBody *AddChainRequestBody) FromGRPCMessage(m grpc.Message) error
func (*AddChainRequestBody) GetChain ¶
func (rb *AddChainRequestBody) GetChain() *ape.Chain
func (*AddChainRequestBody) GetTarget ¶
func (rb *AddChainRequestBody) GetTarget() *ape.ChainTarget
func (*AddChainRequestBody) SetChain ¶
func (rb *AddChainRequestBody) SetChain(chain *ape.Chain)
func (*AddChainRequestBody) SetTarget ¶
func (rb *AddChainRequestBody) SetTarget(target *ape.ChainTarget)
func (*AddChainRequestBody) StableMarshal ¶
func (rb *AddChainRequestBody) StableMarshal(buf []byte) []byte
func (*AddChainRequestBody) StableSize ¶
func (rb *AddChainRequestBody) StableSize() (size int)
func (*AddChainRequestBody) ToGRPCMessage ¶
func (reqBody *AddChainRequestBody) ToGRPCMessage() grpc.Message
func (*AddChainRequestBody) Unmarshal ¶
func (rb *AddChainRequestBody) Unmarshal(data []byte) error
type AddChainResponse ¶
type AddChainResponse struct { session.ResponseHeaders // contains filtered or unexported fields }
func (*AddChainResponse) FromGRPCMessage ¶
func (resp *AddChainResponse) FromGRPCMessage(m grpc.Message) error
func (*AddChainResponse) GetBody ¶
func (r *AddChainResponse) GetBody() *AddChainResponseBody
func (*AddChainResponse) SetBody ¶
func (r *AddChainResponse) SetBody(body *AddChainResponseBody)
func (*AddChainResponse) ToGRPCMessage ¶
func (resp *AddChainResponse) ToGRPCMessage() grpc.Message
type AddChainResponseBody ¶
type AddChainResponseBody struct {
// contains filtered or unexported fields
}
func (*AddChainResponseBody) FromGRPCMessage ¶
func (respBody *AddChainResponseBody) FromGRPCMessage(m grpc.Message) error
func (*AddChainResponseBody) GetChainID ¶
func (rb *AddChainResponseBody) GetChainID() []byte
func (*AddChainResponseBody) SetChainID ¶
func (rb *AddChainResponseBody) SetChainID(chainID []byte)
func (*AddChainResponseBody) StableMarshal ¶
func (rb *AddChainResponseBody) StableMarshal(buf []byte) []byte
func (*AddChainResponseBody) StableSize ¶
func (rb *AddChainResponseBody) StableSize() (size int)
func (*AddChainResponseBody) ToGRPCMessage ¶
func (respBody *AddChainResponseBody) ToGRPCMessage() grpc.Message
func (*AddChainResponseBody) Unmarshal ¶
func (rb *AddChainResponseBody) Unmarshal(data []byte) error
type ListChainsRequest ¶
type ListChainsRequest struct { session.RequestHeaders // contains filtered or unexported fields }
func (*ListChainsRequest) FromGRPCMessage ¶
func (req *ListChainsRequest) FromGRPCMessage(m grpc.Message) error
func (*ListChainsRequest) GetBody ¶
func (r *ListChainsRequest) GetBody() *ListChainsRequestBody
func (*ListChainsRequest) SetBody ¶
func (r *ListChainsRequest) SetBody(body *ListChainsRequestBody)
func (*ListChainsRequest) ToGRPCMessage ¶
func (req *ListChainsRequest) ToGRPCMessage() grpc.Message
type ListChainsRequestBody ¶
type ListChainsRequestBody struct {
// contains filtered or unexported fields
}
func (*ListChainsRequestBody) FromGRPCMessage ¶
func (reqBody *ListChainsRequestBody) FromGRPCMessage(m grpc.Message) error
func (*ListChainsRequestBody) GetTarget ¶
func (rb *ListChainsRequestBody) GetTarget() *ape.ChainTarget
func (*ListChainsRequestBody) SetTarget ¶
func (rb *ListChainsRequestBody) SetTarget(target *ape.ChainTarget)
func (*ListChainsRequestBody) StableMarshal ¶
func (rb *ListChainsRequestBody) StableMarshal(buf []byte) []byte
func (*ListChainsRequestBody) StableSize ¶
func (rb *ListChainsRequestBody) StableSize() (size int)
func (*ListChainsRequestBody) ToGRPCMessage ¶
func (reqBody *ListChainsRequestBody) ToGRPCMessage() grpc.Message
func (*ListChainsRequestBody) Unmarshal ¶
func (rb *ListChainsRequestBody) Unmarshal(data []byte) error
type ListChainsResponse ¶
type ListChainsResponse struct { session.ResponseHeaders // contains filtered or unexported fields }
func (*ListChainsResponse) FromGRPCMessage ¶
func (resp *ListChainsResponse) FromGRPCMessage(m grpc.Message) error
func (*ListChainsResponse) GetBody ¶
func (r *ListChainsResponse) GetBody() *ListChainsResponseBody
func (*ListChainsResponse) SetBody ¶
func (r *ListChainsResponse) SetBody(body *ListChainsResponseBody)
func (*ListChainsResponse) ToGRPCMessage ¶
func (resp *ListChainsResponse) ToGRPCMessage() grpc.Message
type ListChainsResponseBody ¶
type ListChainsResponseBody struct { session.RequestHeaders // contains filtered or unexported fields }
func (*ListChainsResponseBody) FromGRPCMessage ¶
func (respBody *ListChainsResponseBody) FromGRPCMessage(m grpc.Message) error
func (*ListChainsResponseBody) GetChains ¶
func (r *ListChainsResponseBody) GetChains() []*ape.Chain
func (*ListChainsResponseBody) SetChains ¶
func (r *ListChainsResponseBody) SetChains(chains []*ape.Chain)
func (*ListChainsResponseBody) StableMarshal ¶
func (rb *ListChainsResponseBody) StableMarshal(buf []byte) []byte
func (*ListChainsResponseBody) StableSize ¶
func (rb *ListChainsResponseBody) StableSize() (size int)
func (*ListChainsResponseBody) ToGRPCMessage ¶
func (respBody *ListChainsResponseBody) ToGRPCMessage() grpc.Message
func (*ListChainsResponseBody) Unmarshal ¶
func (rb *ListChainsResponseBody) Unmarshal(data []byte) error
type RemoveChainRequest ¶
type RemoveChainRequest struct { session.RequestHeaders // contains filtered or unexported fields }
func (*RemoveChainRequest) FromGRPCMessage ¶
func (req *RemoveChainRequest) FromGRPCMessage(m grpc.Message) error
func (*RemoveChainRequest) GetBody ¶
func (r *RemoveChainRequest) GetBody() *RemoveChainRequestBody
func (*RemoveChainRequest) SetBody ¶
func (r *RemoveChainRequest) SetBody(body *RemoveChainRequestBody)
func (*RemoveChainRequest) ToGRPCMessage ¶
func (req *RemoveChainRequest) ToGRPCMessage() grpc.Message
type RemoveChainRequestBody ¶
type RemoveChainRequestBody struct {
// contains filtered or unexported fields
}
func (*RemoveChainRequestBody) FromGRPCMessage ¶
func (reqBody *RemoveChainRequestBody) FromGRPCMessage(m grpc.Message) error
func (*RemoveChainRequestBody) GetChainID ¶
func (rb *RemoveChainRequestBody) GetChainID() []byte
func (*RemoveChainRequestBody) GetTarget ¶
func (rb *RemoveChainRequestBody) GetTarget() *ape.ChainTarget
func (*RemoveChainRequestBody) SetChainID ¶
func (rb *RemoveChainRequestBody) SetChainID(chainID []byte)
func (*RemoveChainRequestBody) SetTarget ¶
func (rb *RemoveChainRequestBody) SetTarget(target *ape.ChainTarget)
func (*RemoveChainRequestBody) StableMarshal ¶
func (rb *RemoveChainRequestBody) StableMarshal(buf []byte) []byte
func (*RemoveChainRequestBody) StableSize ¶
func (rb *RemoveChainRequestBody) StableSize() (size int)
func (*RemoveChainRequestBody) ToGRPCMessage ¶
func (reqBody *RemoveChainRequestBody) ToGRPCMessage() grpc.Message
func (*RemoveChainRequestBody) Unmarshal ¶
func (rb *RemoveChainRequestBody) Unmarshal(data []byte) error
type RemoveChainResponse ¶
type RemoveChainResponse struct { session.ResponseHeaders // contains filtered or unexported fields }
func (*RemoveChainResponse) FromGRPCMessage ¶
func (resp *RemoveChainResponse) FromGRPCMessage(m grpc.Message) error
func (*RemoveChainResponse) GetBody ¶
func (r *RemoveChainResponse) GetBody() *RemoveChainResponseBody
func (*RemoveChainResponse) SetBody ¶
func (r *RemoveChainResponse) SetBody(body *RemoveChainResponseBody)
func (*RemoveChainResponse) ToGRPCMessage ¶
func (resp *RemoveChainResponse) ToGRPCMessage() grpc.Message
type RemoveChainResponseBody ¶
type RemoveChainResponseBody struct{}
func (*RemoveChainResponseBody) FromGRPCMessage ¶
func (respBody *RemoveChainResponseBody) FromGRPCMessage(m grpc.Message) error
func (*RemoveChainResponseBody) StableMarshal ¶
func (rb *RemoveChainResponseBody) StableMarshal(buf []byte) []byte
func (*RemoveChainResponseBody) StableSize ¶
func (rb *RemoveChainResponseBody) StableSize() (size int)
func (*RemoveChainResponseBody) ToGRPCMessage ¶
func (respBody *RemoveChainResponseBody) ToGRPCMessage() grpc.Message
func (*RemoveChainResponseBody) Unmarshal ¶
func (rb *RemoveChainResponseBody) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.