forked from TrueCloudLab/frostfs-node
[#1320] English Check
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
parent
d99800ee93
commit
cc7a723d77
182 changed files with 802 additions and 802 deletions
|
@ -35,31 +35,31 @@ type MultiAddressClient interface {
|
|||
RawForAddress(network.Address, func(cli *rawclient.Client) error) error
|
||||
}
|
||||
|
||||
// NodeInfo groups information about NeoFS storage node needed for Client construction.
|
||||
// NodeInfo groups information about a NeoFS storage node needed for Client construction.
|
||||
type NodeInfo struct {
|
||||
addrGroup network.AddressGroup
|
||||
|
||||
key []byte
|
||||
}
|
||||
|
||||
// SetAddressGroup sets group of network addresses.
|
||||
// SetAddressGroup sets a group of network addresses.
|
||||
func (x *NodeInfo) SetAddressGroup(v network.AddressGroup) {
|
||||
x.addrGroup = v
|
||||
}
|
||||
|
||||
// AddressGroup returns group of network addresses.
|
||||
// AddressGroup returns a group of network addresses.
|
||||
func (x NodeInfo) AddressGroup() network.AddressGroup {
|
||||
return x.addrGroup
|
||||
}
|
||||
|
||||
// SetPublicKey sets public key in a binary format.
|
||||
// SetPublicKey sets a public key in a binary format.
|
||||
//
|
||||
// Argument must not be mutated.
|
||||
func (x *NodeInfo) SetPublicKey(v []byte) {
|
||||
x.key = v
|
||||
}
|
||||
|
||||
// PublicKey returns public key in a binary format.
|
||||
// PublicKey returns a public key in a binary format.
|
||||
//
|
||||
// Result must not be mutated.
|
||||
func (x *NodeInfo) PublicKey() []byte {
|
||||
|
|
|
@ -33,7 +33,7 @@ func NodeInfoFromRawNetmapElement(dst *NodeInfo, info interface {
|
|||
return nil
|
||||
}
|
||||
|
||||
// NodeInfoFromNetmapElement fills NodeInfo structure from the interface of parsed netmap member's descriptor.
|
||||
// NodeInfoFromNetmapElement fills NodeInfo structure from the interface of the parsed netmap member's descriptor.
|
||||
//
|
||||
// Args must not be nil.
|
||||
func NodeInfoFromNetmapElement(dst *NodeInfo, info interface {
|
||||
|
@ -43,7 +43,7 @@ func NodeInfoFromNetmapElement(dst *NodeInfo, info interface {
|
|||
nodeInfoFromKeyAddr(dst, info.PublicKey(), info.Addresses())
|
||||
}
|
||||
|
||||
// AssertKeyResponseCallback returns client response callback which checks if the response was signed by expected key.
|
||||
// AssertKeyResponseCallback returns client response callback which checks if the response was signed by the expected key.
|
||||
// Returns ErrWrongPublicKey in case of key mismatch.
|
||||
func AssertKeyResponseCallback(expectedKey []byte) func(client.ResponseMetaInfo) error {
|
||||
return func(info client.ResponseMetaInfo) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue