frostfs-api/ape/types.proto
Evgenii Stratonikov 1dedbc3fa5
All checks were successful
Formatters / Run fmt (pull_request) Successful in 2m13s
DCO action / DCO (pull_request) Successful in 2m21s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m25s
[#74] Use edition directive instead of syntax
https://go.dev/blog/protobuf-opaque

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-12-26 14:09:53 +03:00

33 lines
596 B
Protocol Buffer

edition = "2023";
package frostfs.v2.ape;
option go_package = "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/ape/grpc;ape";
// TargetType is a type target to which a rule chain is defined.
enum TargetType {
UNDEFINED = 0;
NAMESPACE = 1;
CONTAINER = 2;
USER = 3;
GROUP = 4;
}
// ChainTarget is an object to which a rule chain is defined.
message ChainTarget {
TargetType type = 1;
string name = 2;
}
// Chain is a chain of rules defined for a specific target.
message Chain {
oneof kind {
// Raw representation of a serizalized rule chain.
bytes raw = 1;
}
}