acl.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. option java_package = "org.apache.hadoop.hdfs.protocol.proto";
  19. option java_outer_classname = "AclProtos";
  20. option java_generate_equals_and_hash = true;
  21. package hadoop.hdfs;
  22. import "hdfs.proto";
  23. message AclEntryProto {
  24. enum AclEntryScopeProto {
  25. ACCESS = 0x0;
  26. DEFAULT = 0x1;
  27. }
  28. enum AclEntryTypeProto {
  29. USER = 0x0;
  30. GROUP = 0x1;
  31. MASK = 0x2;
  32. OTHER = 0x3;
  33. }
  34. enum FsActionProto {
  35. NONE = 0x0;
  36. EXECUTE = 0x1;
  37. WRITE = 0x2;
  38. WRITE_EXECUTE = 0x3;
  39. READ = 0x4;
  40. READ_EXECUTE = 0x5;
  41. READ_WRITE = 0x6;
  42. PERM_ALL = 0x7;
  43. }
  44. required AclEntryTypeProto type = 1;
  45. required AclEntryScopeProto scope = 2;
  46. required FsActionProto permissions = 3;
  47. optional string name = 4;
  48. }
  49. message AclStatusProto {
  50. required string owner = 1;
  51. required string group = 2;
  52. required bool sticky = 3;
  53. repeated AclEntryProto entries = 4;
  54. optional FsPermissionProto permission = 5;
  55. }
  56. message AclEditLogProto {
  57. required string src = 1;
  58. repeated AclEntryProto entries = 2;
  59. }
  60. message ModifyAclEntriesRequestProto {
  61. required string src = 1;
  62. repeated AclEntryProto aclSpec = 2;
  63. }
  64. message ModifyAclEntriesResponseProto {
  65. }
  66. message RemoveAclRequestProto {
  67. required string src = 1;
  68. }
  69. message RemoveAclResponseProto {
  70. }
  71. message RemoveAclEntriesRequestProto {
  72. required string src = 1;
  73. repeated AclEntryProto aclSpec = 2;
  74. }
  75. message RemoveAclEntriesResponseProto {
  76. }
  77. message RemoveDefaultAclRequestProto {
  78. required string src = 1;
  79. }
  80. message RemoveDefaultAclResponseProto {
  81. }
  82. message SetAclRequestProto {
  83. required string src = 1;
  84. repeated AclEntryProto aclSpec = 2;
  85. }
  86. message SetAclResponseProto {
  87. }
  88. message GetAclStatusRequestProto {
  89. required string src = 1;
  90. }
  91. message GetAclStatusResponseProto {
  92. required AclStatusProto result = 1;
  93. }