[#59] tree: Make interface for tree service client #62

Merged
alexvanin merged 1 commit from dkirillov/frostfs-s3-gw:feature/make_interface_for_tree_service_source into master 2023-03-29 09:19:31 +00:00
Member

close #59

Signed-off-by: Denis Kirillov d.kirillov@yadro.com

close #59 Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov self-assigned this 2023-03-21 06:30:57 +00:00
dkirillov requested review from storage-services-committers 2023-03-21 06:31:08 +00:00
dkirillov requested review from storage-services-developers 2023-03-21 06:31:08 +00:00
alexvanin approved these changes 2023-03-21 12:22:14 +00:00
alexvanin left a comment
Owner

Looks good. But do imports work outside of S3 project with internal package?

Looks good. But do imports work outside of S3 project with `internal` package?
Author
Member

Looks good. But do imports work outside of S3 project with internal package?

Oh, completely forgot about this. I'll fix it.

> Looks good. But do imports work outside of S3 project with `internal` package? Oh, completely forgot about this. I'll fix it.
dkirillov force-pushed feature/make_interface_for_tree_service_source from 092bb78d8a to c004453d3a 2023-03-22 09:41:16 +00:00 Compare
ale64bit reviewed 2023-03-28 10:44:45 +00:00
@ -0,0 +72,4 @@
}
func NewTreeServiceClientGRPC(ctx context.Context, addr string, key *keys.PrivateKey) (*TreeServiceClientGRPC, error) {
conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
Member

can we move the grpc options as arguments?

can we move the grpc options as arguments?
ale64bit approved these changes 2023-03-28 10:57:12 +00:00
@ -0,0 +14,4 @@
value []byte
}
func (m nodeMeta) GetKey() string {
Member

I would simply remove all Get* prefixes, but up to you.

I would simply remove all `Get*` prefixes, but up to you.
@ -0,0 +309,4 @@
parentNode := tr.createPathIfNotExist(tr.treeData, path)
if parentNode == nil {
return 0, errors.New("something went wrong")
Member

even though it's an in-memory implementation, can we use some meaningful error messages?
e.g.

return 0, fmt.Errorf("creating path %q", path)

or similar.

Same below for the not found ones.

even though it's an in-memory implementation, can we use some meaningful error messages? e.g. ``` return 0, fmt.Errorf("creating path %q", path) ``` or similar. Same below for the `not found` ones.
dkirillov force-pushed feature/make_interface_for_tree_service_source from c004453d3a to a025f2e9c5 2023-03-29 06:34:39 +00:00 Compare
dkirillov requested review from ale64bit 2023-03-29 06:34:54 +00:00
dkirillov requested review from alexvanin 2023-03-29 06:34:55 +00:00
ale64bit approved these changes 2023-03-29 07:02:34 +00:00
alexvanin approved these changes 2023-03-29 09:07:13 +00:00
alexvanin merged commit a025f2e9c5 into master 2023-03-29 09:19:31 +00:00
alexvanin deleted branch feature/make_interface_for_tree_service_source 2023-03-29 09:19:31 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
4 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-s3-gw#62
No description provided.