2024-04-23 19:18:22 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2024-05-27 14:44:56 +00:00
|
|
|
package frostfs.v2.ape;
|
2024-04-23 19:18:22 +00:00
|
|
|
|
2024-05-27 14:44:56 +00:00
|
|
|
option go_package = "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/ape/grpc;ape";
|
2024-04-23 19:18:22 +00:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|