iam.proto 931 B

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