forked from TrueCloudLab/frostfs-node
Initial commit
Initial public review release v0.10.0
This commit is contained in:
commit
dadfd90dcd
276 changed files with 46331 additions and 0 deletions
27
lib/netmap/storage.go
Normal file
27
lib/netmap/storage.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package netmap
|
||||
|
||||
// GetParams is a group of parameters
|
||||
// for network map receiving operation.
|
||||
type GetParams struct {
|
||||
}
|
||||
|
||||
// GetResult is a group of values
|
||||
// returned by container receiving operation.
|
||||
type GetResult struct {
|
||||
nm *NetMap
|
||||
}
|
||||
|
||||
// Storage is an interface of the storage of NeoFS network map.
|
||||
type Storage interface {
|
||||
GetNetMap(GetParams) (*GetResult, error)
|
||||
}
|
||||
|
||||
// NetMap is a network map getter.
|
||||
func (s GetResult) NetMap() *NetMap {
|
||||
return s.nm
|
||||
}
|
||||
|
||||
// SetNetMap is a network map setter.
|
||||
func (s *GetResult) SetNetMap(v *NetMap) {
|
||||
s.nm = v
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue