[#59] tree: Make interface for tree service client #62
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#62
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/frostfs-s3-gw:feature/make_interface_for_tree_service_source"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #59
Signed-off-by: Denis Kirillov d.kirillov@yadro.com
Looks good. But do imports work outside of S3 project with
internal
package?Oh, completely forgot about this. I'll fix it.
092bb78d8a
toc004453d3a
@ -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()))
can we move the grpc options as arguments?
@ -0,0 +14,4 @@
value []byte
}
func (m nodeMeta) GetKey() string {
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")
even though it's an in-memory implementation, can we use some meaningful error messages?
e.g.
or similar.
Same below for the
not found
ones.c004453d3a
toa025f2e9c5