forked from TrueCloudLab/frostfs-s3-gw
[#458] *: Refactor working with NeoFS identities
Pull latest changes from NeoFS SDK Go library. Decrease redundant and unsafe usage of ID pointers. Use `EncodeToString` method in order to calculate protocol strings. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3f0dbcc995
commit
087d500c5f
34 changed files with 259 additions and 280 deletions
|
@ -90,7 +90,7 @@ type (
|
|||
|
||||
ListPartsInfo struct {
|
||||
Parts []*Part
|
||||
Owner *user.ID
|
||||
Owner user.ID
|
||||
NextPartNumberMarker int
|
||||
IsTruncated bool
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ type (
|
|||
IsDir bool
|
||||
Key string
|
||||
UploadID string
|
||||
Owner *user.ID
|
||||
Owner user.ID
|
||||
Created time.Time
|
||||
}
|
||||
)
|
||||
|
@ -599,7 +599,7 @@ func uploadInfoFromMeta(meta *object.Object, prefix, delimiter string) *UploadIn
|
|||
IsDir: isDir,
|
||||
Key: key,
|
||||
UploadID: userHeaders[UploadIDAttributeName],
|
||||
Owner: meta.OwnerID(),
|
||||
Owner: *meta.OwnerID(),
|
||||
Created: creation,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue