forked from TrueCloudLab/frostfs-node
f14987c06d
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>
7 lines
230 B
Go
7 lines
230 B
Go
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
|
|
}
|