Documentation ¶
Index ¶
Constants ¶
const ErrNilStorage = internal.Error("inner ring storage is nil")
ErrNilStorage is returned by functions that expect a non-nil Storage, but received nil.
Variables ¶
This section is empty.
Functions ¶
func BinaryKeyList ¶
BinaryKeyList returns the list of binary public key of IR nodes.
If passed Storage is nil, ErrNilStorage returns.
func IsInnerRingKey ¶
IsInnerRingKey checks if the passed argument is the key of one of IR nodes.
Uses BinaryKeyList function to receive the key list of IR nodes internally.
If passed key slice is empty, crypto.ErrEmptyPublicKey returns immediately.
Types ¶
type GetInfoParams ¶
type GetInfoParams struct { }
GetInfoParams is a structure that groups the parameters for IR info receiving operation.
type GetInfoResult ¶
type GetInfoResult struct {
// contains filtered or unexported fields
}
GetInfoResult is a structure that groups values returned by IR info receiving operation.
func (*GetInfoResult) SetInfo ¶
func (s *GetInfoResult) SetInfo(v Info)
SetInfo is an IR info setter.
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info is a structure that groups the information about inner ring.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a structure that groups the information about IR node.
type Storage ¶
type Storage interface {
GetIRInfo(GetInfoParams) (*GetInfoResult, error)
}
Storage is an interface of the storage of info about NeoFS IR.