iam.pb.go 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v5.29.3
  5. // source: iam.proto
  6. package iam_pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type S3ApiConfiguration struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Identities []*Identity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"`
  23. Accounts []*Account `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *S3ApiConfiguration) Reset() {
  28. *x = S3ApiConfiguration{}
  29. mi := &file_iam_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *S3ApiConfiguration) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*S3ApiConfiguration) ProtoMessage() {}
  37. func (x *S3ApiConfiguration) ProtoReflect() protoreflect.Message {
  38. mi := &file_iam_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use S3ApiConfiguration.ProtoReflect.Descriptor instead.
  49. func (*S3ApiConfiguration) Descriptor() ([]byte, []int) {
  50. return file_iam_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *S3ApiConfiguration) GetIdentities() []*Identity {
  53. if x != nil {
  54. return x.Identities
  55. }
  56. return nil
  57. }
  58. func (x *S3ApiConfiguration) GetAccounts() []*Account {
  59. if x != nil {
  60. return x.Accounts
  61. }
  62. return nil
  63. }
  64. type Identity struct {
  65. state protoimpl.MessageState `protogen:"open.v1"`
  66. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  67. Credentials []*Credential `protobuf:"bytes,2,rep,name=credentials,proto3" json:"credentials,omitempty"`
  68. Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
  69. Account *Account `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
  70. unknownFields protoimpl.UnknownFields
  71. sizeCache protoimpl.SizeCache
  72. }
  73. func (x *Identity) Reset() {
  74. *x = Identity{}
  75. mi := &file_iam_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. func (x *Identity) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*Identity) ProtoMessage() {}
  83. func (x *Identity) ProtoReflect() protoreflect.Message {
  84. mi := &file_iam_proto_msgTypes[1]
  85. if x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use Identity.ProtoReflect.Descriptor instead.
  95. func (*Identity) Descriptor() ([]byte, []int) {
  96. return file_iam_proto_rawDescGZIP(), []int{1}
  97. }
  98. func (x *Identity) GetName() string {
  99. if x != nil {
  100. return x.Name
  101. }
  102. return ""
  103. }
  104. func (x *Identity) GetCredentials() []*Credential {
  105. if x != nil {
  106. return x.Credentials
  107. }
  108. return nil
  109. }
  110. func (x *Identity) GetActions() []string {
  111. if x != nil {
  112. return x.Actions
  113. }
  114. return nil
  115. }
  116. func (x *Identity) GetAccount() *Account {
  117. if x != nil {
  118. return x.Account
  119. }
  120. return nil
  121. }
  122. type Credential struct {
  123. state protoimpl.MessageState `protogen:"open.v1"`
  124. AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
  125. SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  126. unknownFields protoimpl.UnknownFields
  127. sizeCache protoimpl.SizeCache
  128. }
  129. func (x *Credential) Reset() {
  130. *x = Credential{}
  131. mi := &file_iam_proto_msgTypes[2]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. func (x *Credential) String() string {
  136. return protoimpl.X.MessageStringOf(x)
  137. }
  138. func (*Credential) ProtoMessage() {}
  139. func (x *Credential) ProtoReflect() protoreflect.Message {
  140. mi := &file_iam_proto_msgTypes[2]
  141. if x != nil {
  142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  143. if ms.LoadMessageInfo() == nil {
  144. ms.StoreMessageInfo(mi)
  145. }
  146. return ms
  147. }
  148. return mi.MessageOf(x)
  149. }
  150. // Deprecated: Use Credential.ProtoReflect.Descriptor instead.
  151. func (*Credential) Descriptor() ([]byte, []int) {
  152. return file_iam_proto_rawDescGZIP(), []int{2}
  153. }
  154. func (x *Credential) GetAccessKey() string {
  155. if x != nil {
  156. return x.AccessKey
  157. }
  158. return ""
  159. }
  160. func (x *Credential) GetSecretKey() string {
  161. if x != nil {
  162. return x.SecretKey
  163. }
  164. return ""
  165. }
  166. type Account struct {
  167. state protoimpl.MessageState `protogen:"open.v1"`
  168. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  169. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  170. EmailAddress string `protobuf:"bytes,3,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
  171. unknownFields protoimpl.UnknownFields
  172. sizeCache protoimpl.SizeCache
  173. }
  174. func (x *Account) Reset() {
  175. *x = Account{}
  176. mi := &file_iam_proto_msgTypes[3]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. func (x *Account) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*Account) ProtoMessage() {}
  184. func (x *Account) ProtoReflect() protoreflect.Message {
  185. mi := &file_iam_proto_msgTypes[3]
  186. if x != nil {
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. if ms.LoadMessageInfo() == nil {
  189. ms.StoreMessageInfo(mi)
  190. }
  191. return ms
  192. }
  193. return mi.MessageOf(x)
  194. }
  195. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  196. func (*Account) Descriptor() ([]byte, []int) {
  197. return file_iam_proto_rawDescGZIP(), []int{3}
  198. }
  199. func (x *Account) GetId() string {
  200. if x != nil {
  201. return x.Id
  202. }
  203. return ""
  204. }
  205. func (x *Account) GetDisplayName() string {
  206. if x != nil {
  207. return x.DisplayName
  208. }
  209. return ""
  210. }
  211. func (x *Account) GetEmailAddress() string {
  212. if x != nil {
  213. return x.EmailAddress
  214. }
  215. return ""
  216. }
  217. var File_iam_proto protoreflect.FileDescriptor
  218. const file_iam_proto_rawDesc = "" +
  219. "\n" +
  220. "\tiam.proto\x12\x06iam_pb\"s\n" +
  221. "\x12S3ApiConfiguration\x120\n" +
  222. "\n" +
  223. "identities\x18\x01 \x03(\v2\x10.iam_pb.IdentityR\n" +
  224. "identities\x12+\n" +
  225. "\baccounts\x18\x02 \x03(\v2\x0f.iam_pb.AccountR\baccounts\"\x99\x01\n" +
  226. "\bIdentity\x12\x12\n" +
  227. "\x04name\x18\x01 \x01(\tR\x04name\x124\n" +
  228. "\vcredentials\x18\x02 \x03(\v2\x12.iam_pb.CredentialR\vcredentials\x12\x18\n" +
  229. "\aactions\x18\x03 \x03(\tR\aactions\x12)\n" +
  230. "\aaccount\x18\x04 \x01(\v2\x0f.iam_pb.AccountR\aaccount\"J\n" +
  231. "\n" +
  232. "Credential\x12\x1d\n" +
  233. "\n" +
  234. "access_key\x18\x01 \x01(\tR\taccessKey\x12\x1d\n" +
  235. "\n" +
  236. "secret_key\x18\x02 \x01(\tR\tsecretKey\"a\n" +
  237. "\aAccount\x12\x0e\n" +
  238. "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" +
  239. "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12#\n" +
  240. "\remail_address\x18\x03 \x01(\tR\femailAddress2!\n" +
  241. "\x1fSeaweedIdentityAccessManagementBK\n" +
  242. "\x10seaweedfs.clientB\bIamProtoZ-github.com/seaweedfs/seaweedfs/weed/pb/iam_pbb\x06proto3"
  243. var (
  244. file_iam_proto_rawDescOnce sync.Once
  245. file_iam_proto_rawDescData []byte
  246. )
  247. func file_iam_proto_rawDescGZIP() []byte {
  248. file_iam_proto_rawDescOnce.Do(func() {
  249. file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_iam_proto_rawDesc), len(file_iam_proto_rawDesc)))
  250. })
  251. return file_iam_proto_rawDescData
  252. }
  253. var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  254. var file_iam_proto_goTypes = []any{
  255. (*S3ApiConfiguration)(nil), // 0: iam_pb.S3ApiConfiguration
  256. (*Identity)(nil), // 1: iam_pb.Identity
  257. (*Credential)(nil), // 2: iam_pb.Credential
  258. (*Account)(nil), // 3: iam_pb.Account
  259. }
  260. var file_iam_proto_depIdxs = []int32{
  261. 1, // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
  262. 3, // 1: iam_pb.S3ApiConfiguration.accounts:type_name -> iam_pb.Account
  263. 2, // 2: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
  264. 3, // 3: iam_pb.Identity.account:type_name -> iam_pb.Account
  265. 4, // [4:4] is the sub-list for method output_type
  266. 4, // [4:4] is the sub-list for method input_type
  267. 4, // [4:4] is the sub-list for extension type_name
  268. 4, // [4:4] is the sub-list for extension extendee
  269. 0, // [0:4] is the sub-list for field type_name
  270. }
  271. func init() { file_iam_proto_init() }
  272. func file_iam_proto_init() {
  273. if File_iam_proto != nil {
  274. return
  275. }
  276. type x struct{}
  277. out := protoimpl.TypeBuilder{
  278. File: protoimpl.DescBuilder{
  279. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  280. RawDescriptor: unsafe.Slice(unsafe.StringData(file_iam_proto_rawDesc), len(file_iam_proto_rawDesc)),
  281. NumEnums: 0,
  282. NumMessages: 4,
  283. NumExtensions: 0,
  284. NumServices: 1,
  285. },
  286. GoTypes: file_iam_proto_goTypes,
  287. DependencyIndexes: file_iam_proto_depIdxs,
  288. MessageInfos: file_iam_proto_msgTypes,
  289. }.Build()
  290. File_iam_proto = out.File
  291. file_iam_proto_goTypes = nil
  292. file_iam_proto_depIdxs = nil
  293. }