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.

49 lines
861 B

5 years ago
5 years ago
  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. */