apemanager

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: 2

Documentation

Index

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

func GlobalizeFail(c *status.Code)

GlobalizeFail globalizes local code of ape manager failure.

Arg must be non-nil.

func LocalizeFailStatus

func LocalizeFailStatus(c *status.Code) bool

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

func ReadAccessDeniedDesc(st status.Status) (desc string)

ReadAccessDeniedDesc looks up for status detail with human-readable description of StatusAccessDenied. Returns empty string if detail is missing.

func WriteAccessDeniedDesc

func WriteAccessDeniedDesc(st *status.Status, desc string)

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 (*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 (*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 (*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 (*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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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