Documentation ¶
Index ¶
Constants ¶
const ErrNilPeerBootstrapper = internal.Error("peer bootstrapper is nil")
ErrNilPeerBootstrapper is returned by functions that expect a non-nil PeerBootstrapper, but received nil.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapPeerParams ¶
type BootstrapPeerParams struct {
// contains filtered or unexported fields
}
BootstrapPeerParams is a group of parameters for storage node bootstrap.
func (BootstrapPeerParams) NodeInfo ¶
func (s BootstrapPeerParams) NodeInfo() *bootstrap.NodeInfo
NodeInfo is a node info getter.
func (*BootstrapPeerParams) SetNodeInfo ¶
func (s *BootstrapPeerParams) SetNodeInfo(v *bootstrap.NodeInfo)
SetNodeInfo is a node info setter.
type PeerBootstrapper ¶
type PeerBootstrapper interface {
AddPeer(BootstrapPeerParams) error
}
PeerBootstrapper is an interface of the NeoFS node bootstrap tool.
type StorageBootController ¶
type StorageBootController struct {
// contains filtered or unexported fields
}
StorageBootController is an entity that performs registration of a storage node in NeoFS network.
func (StorageBootController) Bootstrap ¶
func (s StorageBootController) Bootstrap(context.Context)
Bootstrap registers storage node in NeoFS system.
func (*StorageBootController) SetBootParams ¶
func (s *StorageBootController) SetBootParams(v StorageBootParams)
SetBootParams is a storage node bootstrap parameters setter.
func (*StorageBootController) SetLogger ¶
func (s *StorageBootController) SetLogger(v *zap.Logger)
SetLogger is a logging component setter.
func (*StorageBootController) SetPeerBootstrapper ¶
func (s *StorageBootController) SetPeerBootstrapper(v PeerBootstrapper)
SetPeerBootstrapper is a PeerBootstrapper setter.
type StorageBootParams ¶
type StorageBootParams struct {
BootstrapPeerParams
}
StorageBootParams is a group of parameters for storage node bootstrap operation.