29 lines
462 B
Protocol Buffer
29 lines
462 B
Protocol Buffer
syntax = "proto3";
|
|
package authpb;
|
|
|
|
// User is a single entry in the bucket authUsers
|
|
message User {
|
|
bytes name = 1;
|
|
bytes password = 2;
|
|
repeated string roles = 3;
|
|
}
|
|
|
|
// Permission is a single entity
|
|
message Permission {
|
|
bytes key = 1;
|
|
|
|
enum Type {
|
|
READ = 0;
|
|
WRITE = 1;
|
|
READWRITE = 2;
|
|
}
|
|
Type permType = 2;
|
|
}
|
|
|
|
// Role is a single entry in the bucket authRoles
|
|
message Role {
|
|
bytes name = 1;
|
|
|
|
repeated Permission keyPermission = 2;
|
|
}
|