forked from TrueCloudLab/frostfs-node
[#645] core: Define interface of the tool for working with netmap keys
Announced keys of storage nodes are required for many application components to function. Define a unified interface for the utility for working with public keys of nodes. Add a method to check if the key has been advertised by the local node in the application context. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
22926e8f28
commit
f14987c06d
1 changed files with 7 additions and 0 deletions
7
pkg/core/netmap/keys.go
Normal file
7
pkg/core/netmap/keys.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package netmap
|
||||
|
||||
// AnnouncedKeys is an interface of utility for working with announced public keys of the storage nodes.
|
||||
type AnnouncedKeys interface {
|
||||
// Checks if key was announced by local node.
|
||||
IsLocalKey(key []byte) bool
|
||||
}
|
Loading…
Reference in a new issue