forked from TrueCloudLab/frostfs-api-go
v2/netmap: Define uni PlacementPolicy type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1ae7f9b491
commit
ddd3ba1bf2
2 changed files with 28 additions and 0 deletions
23
v2/netmap/convert.go
Normal file
23
v2/netmap/convert.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package netmap
|
||||
|
||||
import (
|
||||
netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc"
|
||||
)
|
||||
|
||||
func PlacementPolicyToGRPCMessage(p *PlacementPolicy) *netmap.PlacementPolicy {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: fill me
|
||||
return nil
|
||||
}
|
||||
|
||||
func PlacementPolicyFromGRPCMessage(m *netmap.PlacementPolicy) *PlacementPolicy {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: fill me
|
||||
return nil
|
||||
}
|
5
v2/netmap/types.go
Normal file
5
v2/netmap/types.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package netmap
|
||||
|
||||
type PlacementPolicy struct {
|
||||
// TODO: fill me
|
||||
}
|
Loading…
Reference in a new issue