You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. syntax = "proto3";
  2. package iam_pb;
  3. option go_package = "github.com/seaweedfs/seaweedfs/weed/pb/iam_pb";
  4. option java_package = "seaweedfs.client";
  5. option java_outer_classname = "IamProto";
  6. //////////////////////////////////////////////////
  7. service SeaweedIdentityAccessManagement {
  8. }
  9. //////////////////////////////////////////////////
  10. message S3ApiConfiguration {
  11. repeated Identity identities = 1;
  12. repeated Account accounts = 2;
  13. }
  14. message Identity {
  15. string name = 1;
  16. repeated Credential credentials = 2;
  17. repeated string actions = 3;
  18. Account account = 4;
  19. }
  20. message Credential {
  21. string access_key = 1;
  22. string secret_key = 2;
  23. // uint64 expiration = 3;
  24. // bool is_disabled = 4;
  25. }
  26. message Account {
  27. string id = 1;
  28. string display_name = 2;
  29. string email_address = 3;
  30. }
  31. /*
  32. message Policy {
  33. repeated Statement statements = 1;
  34. }
  35. message Statement {
  36. repeated Action action = 1;
  37. repeated Resource resource = 2;
  38. }
  39. message Action {
  40. string action = 1;
  41. }
  42. message Resource {
  43. string bucket = 1;
  44. // string path = 2;
  45. }
  46. */