iam.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. */