feature/add_mocks #117

Merged
alexvanin merged 1 commit from dkirillov/frostfs-http-gw:feature/add_mocks into master 2024-09-04 19:50:57 +00:00
Member
No description provided.
dkirillov self-assigned this 2024-06-17 14:57:56 +00:00
dkirillov force-pushed feature/add_mocks from 4270140663 to 7b49e81e0b 2024-06-17 14:58:48 +00:00 Compare
dkirillov force-pushed feature/add_mocks from 7b49e81e0b to 98c43c74a3 2024-06-18 06:28:15 +00:00 Compare
dkirillov changed title from WIP: feature/add_mocks to feature/add_mocks 2024-06-18 06:49:58 +00:00
dkirillov requested review from storage-services-committers 2024-06-18 06:50:06 +00:00
dkirillov requested review from storage-services-developers 2024-06-18 06:50:06 +00:00
alexvanin reviewed 2024-06-18 07:55:21 +00:00
@ -0,0 +32,4 @@
}
// Container implements frostfs.FrostFS interface method.
func (x *FrostFS) Container(ctx context.Context, layerPrm handler.PrmContainer) (*container.Container, error) {
Owner

We keep parameter definition outside of this package so FrostFS interface can be defined without import of this package, right?

We keep parameter definition outside of this package so `FrostFS` interface can be defined without import of this package, right?
Author
Member

Right

Right
alexvanin marked this conversation as resolved
@ -0,0 +130,4 @@
// }
//
// return res, nil
// }
Owner

Unused?

Unused?
alexvanin marked this conversation as resolved
@ -0,0 +227,4 @@
// }
//
// return nil
//}
Owner

Unused?

Unused?
alexvanin marked this conversation as resolved
@ -0,0 +351,4 @@
// }
//
// return table, nil
//}
Owner

Unused?

Unused?
alexvanin marked this conversation as resolved
@ -0,0 +368,4 @@
return true
}
for _, rec := range table.Records() {
Owner

Can we simplify access check somehow so we won't depend on eACL? Maybe we can define a list of cnr + owner + op + objID tuples which are allowed and all others are denied?

Can we simplify access check somehow so we won't depend on eACL? Maybe we can define a list of `cnr + owner + op + objID` tuples which are allowed and all others are denied?
alexvanin marked this conversation as resolved
@ -36,2 +35,4 @@
}
// PrmContainer groups parameters of FrostFS.Container operation.
type PrmContainer struct {
Owner

What you think about having separate go file for frostfs interface and parameter definitions? frostfs.go and frostfs_mock.go looks good in my opinion.

What you think about having separate go file for frostfs interface and parameter definitions? `frostfs.go` and `frostfs_mock.go` looks good in my opinion.
Author
Member

It isn't so big to move this to separate file I suppose

It isn't so big to move this to separate file I suppose
alexvanin marked this conversation as resolved
dkirillov force-pushed feature/add_mocks from 98c43c74a3 to 3741e3b003 2024-06-18 09:04:31 +00:00 Compare
alexvanin approved these changes 2024-06-18 13:22:06 +00:00
alexvanin merged commit 3741e3b003 into master 2024-06-18 13:22:16 +00:00
alexvanin referenced this pull request from a commit 2024-06-18 13:22:17 +00:00
alexvanin deleted branch feature/add_mocks 2024-06-18 13:22:20 +00:00
alexvanin referenced this pull request from a commit 2024-06-25 15:12:23 +00:00
alexvanin referenced this pull request from a commit 2024-06-25 15:12:23 +00:00
alexvanin added this to the v0.30.0 milestone 2024-07-16 11:57:10 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#117
No description provided.