apemanager: Introduce proto-s for apemanager service #46
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
Labels
No labels
P0
P1
P2
P3
good first issue
triage
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-api#46
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-api:feat/apemanager"
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?
APEManagerService
and related types.APEManagerService
.102965060d
to1293e2092b
@ -0,0 +149,4 @@
message ListChainsResponse {
message Body {
// The list of serialized rule chain.
repeated bytes chains = 1;
Why not to use type
Chain
here instead ofbytes
?And the same approach for
set\get
.Would you like to see
Chain
as alias forbytes
?Or you want this Chain see here? Let's consider what does it lead to:
Chain
-s infrostfs-api/frostfs-api-go
andChain
inpolicy-engine
. Actually,frostfs-api
needs to mirror structures inpolicy-engine
policy-engine
-s structuresRight, how about the same
chain
structure here as inpolicy-engine
repo. Just want to know whybytes
used here?We agreed to keep
[]byte
but as one of representation option1293e2092b
to5e860e4997
@ -0,0 +1,172 @@
syntax = "proto3";
package neo.fs.v2.apemanager;
neo -> frostfs
Please, check
I renamed
neo.fs.v2.apemanager
tofrostfs.v2.apemanager
. I suppose we don't need to name it likefrostfs.fs.v2.apemanager
@ -0,0 +6,4 @@
import "session/types.proto";
option go_package = "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/apemanager/grpc;apemanager";
option csharp_namespace = "Neo.FileStorage.API.ApeManager";
Please drop this line. We don't use c# now.
Fixed
@ -0,0 +20,4 @@
// ChainTarget is an object to which a rule chain is defined.
message ChainTarget {
TargetType type = 1 [ json_name = "type" ];
Is this message special? Why does
json_name
defined?I removed json tags. I don't think they are really required
We use them when we need to use
camelCase
(per some "best practice", probably from google, but I cannot find the link) instead ofsnake_case
(protojson default).5e860e4997
to39992c49fa