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.

52 lines
957 B

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