2020-10-02 12:23:52 +00:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
2022-12-23 17:35:35 +00:00
|
|
|
"github.com/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine"
|
|
|
|
objectSDK "github.com/TrueCloudLab/frostfs-sdk-go/object"
|
|
|
|
oid "github.com/TrueCloudLab/frostfs-sdk-go/object/id"
|
2020-10-02 12:23:52 +00:00
|
|
|
)
|
|
|
|
|
2022-12-30 11:29:29 +00:00
|
|
|
type localStorage engine.StorageEngine
|
2020-10-02 12:23:52 +00:00
|
|
|
|
2022-05-31 17:00:41 +00:00
|
|
|
func (s *localStorage) Head(addr oid.Address) (*objectSDK.Object, error) {
|
2022-12-30 11:29:29 +00:00
|
|
|
if s == nil {
|
2020-10-02 12:23:52 +00:00
|
|
|
return nil, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
|
2022-12-30 11:29:29 +00:00
|
|
|
return engine.Head((*engine.StorageEngine)(s), addr)
|
2020-10-02 12:23:52 +00:00
|
|
|
}
|