iam.proto 957 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  13. message Identity {
  14. string name = 1;
  15. repeated Credential credentials = 2;
  16. repeated string actions = 3;
  17. string accountId = 4;
  18. }
  19. message Credential {
  20. string access_key = 1;
  21. string secret_key = 2;
  22. // uint64 expiration = 3;
  23. // bool is_disabled = 4;
  24. }
  25. /*
  26. message Policy {
  27. repeated Statement statements = 1;
  28. }
  29. message Statement {
  30. repeated Action action = 1;
  31. repeated Resource resource = 2;
  32. }
  33. message Action {
  34. string action = 1;
  35. }
  36. message Resource {
  37. string bucket = 1;
  38. // string path = 2;
  39. }
  40. */