iam.proto 861 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. syntax = "proto3";
  2. package iam_pb;
  3. option java_package = "seaweedfs.client";
  4. option java_outer_classname = "IamProto";
  5. //////////////////////////////////////////////////
  6. service SeaweedIdentityAccessManagement {
  7. }
  8. //////////////////////////////////////////////////
  9. message S3ApiConfiguration {
  10. repeated Identity identities = 1;
  11. }
  12. message Identity {
  13. string name = 1;
  14. repeated Credential credentials = 2;
  15. repeated string actions = 3;
  16. }
  17. message Credential {
  18. string access_key = 1;
  19. string secret_key = 2;
  20. // uint64 expiration = 3;
  21. // bool is_disabled = 4;
  22. }
  23. /*
  24. message Policy {
  25. repeated Statement statements = 1;
  26. }
  27. message Statement {
  28. repeated Action action = 1;
  29. repeated Resource resource = 2;
  30. }
  31. message Action {
  32. string action = 1;
  33. }
  34. message Resource {
  35. string bucket = 1;
  36. // string path = 2;
  37. }
  38. */