[#1064] putsvc: Add EC put
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
39da643354
commit
1c5e0f90aa
11 changed files with 452 additions and 23 deletions
13
pkg/core/object/ec.go
Normal file
13
pkg/core/object/ec.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package object
|
||||
|
||||
import (
|
||||
objectSDK "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
|
||||
)
|
||||
|
||||
// IsECSupported returns True if EC supported for object.
|
||||
//
|
||||
// EC supported only for regular, not linking objects.
|
||||
func IsECSupported(obj *objectSDK.Object) bool {
|
||||
return obj.Type() == objectSDK.TypeRegular &&
|
||||
len(obj.Children()) == 0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue