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.

51 lines
931 B

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