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.

413 lines
13 KiB

5 years ago
1 year ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v4.23.2
  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. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type S3ApiConfiguration struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Identities []*Identity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"`
  24. Accounts []*Account `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
  25. }
  26. func (x *S3ApiConfiguration) Reset() {
  27. *x = S3ApiConfiguration{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_iam_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *S3ApiConfiguration) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*S3ApiConfiguration) ProtoMessage() {}
  38. func (x *S3ApiConfiguration) ProtoReflect() protoreflect.Message {
  39. mi := &file_iam_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use S3ApiConfiguration.ProtoReflect.Descriptor instead.
  50. func (*S3ApiConfiguration) Descriptor() ([]byte, []int) {
  51. return file_iam_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *S3ApiConfiguration) GetIdentities() []*Identity {
  54. if x != nil {
  55. return x.Identities
  56. }
  57. return nil
  58. }
  59. func (x *S3ApiConfiguration) GetAccounts() []*Account {
  60. if x != nil {
  61. return x.Accounts
  62. }
  63. return nil
  64. }
  65. type Identity struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  70. Credentials []*Credential `protobuf:"bytes,2,rep,name=credentials,proto3" json:"credentials,omitempty"`
  71. Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
  72. Account *Account `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
  73. }
  74. func (x *Identity) Reset() {
  75. *x = Identity{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_iam_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *Identity) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*Identity) ProtoMessage() {}
  86. func (x *Identity) ProtoReflect() protoreflect.Message {
  87. mi := &file_iam_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use Identity.ProtoReflect.Descriptor instead.
  98. func (*Identity) Descriptor() ([]byte, []int) {
  99. return file_iam_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *Identity) GetName() string {
  102. if x != nil {
  103. return x.Name
  104. }
  105. return ""
  106. }
  107. func (x *Identity) GetCredentials() []*Credential {
  108. if x != nil {
  109. return x.Credentials
  110. }
  111. return nil
  112. }
  113. func (x *Identity) GetActions() []string {
  114. if x != nil {
  115. return x.Actions
  116. }
  117. return nil
  118. }
  119. func (x *Identity) GetAccount() *Account {
  120. if x != nil {
  121. return x.Account
  122. }
  123. return nil
  124. }
  125. type Credential struct {
  126. state protoimpl.MessageState
  127. sizeCache protoimpl.SizeCache
  128. unknownFields protoimpl.UnknownFields
  129. AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
  130. SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  131. }
  132. func (x *Credential) Reset() {
  133. *x = Credential{}
  134. if protoimpl.UnsafeEnabled {
  135. mi := &file_iam_proto_msgTypes[2]
  136. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  137. ms.StoreMessageInfo(mi)
  138. }
  139. }
  140. func (x *Credential) String() string {
  141. return protoimpl.X.MessageStringOf(x)
  142. }
  143. func (*Credential) ProtoMessage() {}
  144. func (x *Credential) ProtoReflect() protoreflect.Message {
  145. mi := &file_iam_proto_msgTypes[2]
  146. if protoimpl.UnsafeEnabled && x != nil {
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. if ms.LoadMessageInfo() == nil {
  149. ms.StoreMessageInfo(mi)
  150. }
  151. return ms
  152. }
  153. return mi.MessageOf(x)
  154. }
  155. // Deprecated: Use Credential.ProtoReflect.Descriptor instead.
  156. func (*Credential) Descriptor() ([]byte, []int) {
  157. return file_iam_proto_rawDescGZIP(), []int{2}
  158. }
  159. func (x *Credential) GetAccessKey() string {
  160. if x != nil {
  161. return x.AccessKey
  162. }
  163. return ""
  164. }
  165. func (x *Credential) GetSecretKey() string {
  166. if x != nil {
  167. return x.SecretKey
  168. }
  169. return ""
  170. }
  171. type Account struct {
  172. state protoimpl.MessageState
  173. sizeCache protoimpl.SizeCache
  174. unknownFields protoimpl.UnknownFields
  175. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  176. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  177. EmailAddress string `protobuf:"bytes,3,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
  178. }
  179. func (x *Account) Reset() {
  180. *x = Account{}
  181. if protoimpl.UnsafeEnabled {
  182. mi := &file_iam_proto_msgTypes[3]
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. ms.StoreMessageInfo(mi)
  185. }
  186. }
  187. func (x *Account) String() string {
  188. return protoimpl.X.MessageStringOf(x)
  189. }
  190. func (*Account) ProtoMessage() {}
  191. func (x *Account) ProtoReflect() protoreflect.Message {
  192. mi := &file_iam_proto_msgTypes[3]
  193. if protoimpl.UnsafeEnabled && x != nil {
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. if ms.LoadMessageInfo() == nil {
  196. ms.StoreMessageInfo(mi)
  197. }
  198. return ms
  199. }
  200. return mi.MessageOf(x)
  201. }
  202. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  203. func (*Account) Descriptor() ([]byte, []int) {
  204. return file_iam_proto_rawDescGZIP(), []int{3}
  205. }
  206. func (x *Account) GetId() string {
  207. if x != nil {
  208. return x.Id
  209. }
  210. return ""
  211. }
  212. func (x *Account) GetDisplayName() string {
  213. if x != nil {
  214. return x.DisplayName
  215. }
  216. return ""
  217. }
  218. func (x *Account) GetEmailAddress() string {
  219. if x != nil {
  220. return x.EmailAddress
  221. }
  222. return ""
  223. }
  224. var File_iam_proto protoreflect.FileDescriptor
  225. var file_iam_proto_rawDesc = []byte{
  226. 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x69, 0x61, 0x6d,
  227. 0x5f, 0x70, 0x62, 0x22, 0x73, 0x0a, 0x12, 0x53, 0x33, 0x41, 0x70, 0x69, 0x43, 0x6f, 0x6e, 0x66,
  228. 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x0a, 0x69, 0x64, 0x65,
  229. 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
  230. 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52,
  231. 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x08, 0x61,
  232. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
  233. 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08,
  234. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x08, 0x49, 0x64, 0x65,
  235. 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
  236. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x63, 0x72, 0x65,
  237. 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
  238. 0x2e, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
  239. 0x61, 0x6c, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12,
  240. 0x18, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
  241. 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x0a, 0x07, 0x61, 0x63, 0x63,
  242. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x69, 0x61, 0x6d,
  243. 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63,
  244. 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4a, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
  245. 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79,
  246. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65,
  247. 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18,
  248. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79,
  249. 0x22, 0x61, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  250. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64,
  251. 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  252. 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23,
  253. 0x0a, 0x0d, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
  254. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x41, 0x64, 0x64, 0x72,
  255. 0x65, 0x73, 0x73, 0x32, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x49, 0x64,
  256. 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x6e, 0x61,
  257. 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x4b, 0x0a, 0x10, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65,
  258. 0x64, 0x66, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x08, 0x49, 0x61, 0x6d, 0x50,
  259. 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  260. 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65,
  261. 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x69, 0x61, 0x6d,
  262. 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  263. }
  264. var (
  265. file_iam_proto_rawDescOnce sync.Once
  266. file_iam_proto_rawDescData = file_iam_proto_rawDesc
  267. )
  268. func file_iam_proto_rawDescGZIP() []byte {
  269. file_iam_proto_rawDescOnce.Do(func() {
  270. file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(file_iam_proto_rawDescData)
  271. })
  272. return file_iam_proto_rawDescData
  273. }
  274. var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  275. var file_iam_proto_goTypes = []interface{}{
  276. (*S3ApiConfiguration)(nil), // 0: iam_pb.S3ApiConfiguration
  277. (*Identity)(nil), // 1: iam_pb.Identity
  278. (*Credential)(nil), // 2: iam_pb.Credential
  279. (*Account)(nil), // 3: iam_pb.Account
  280. }
  281. var file_iam_proto_depIdxs = []int32{
  282. 1, // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
  283. 3, // 1: iam_pb.S3ApiConfiguration.accounts:type_name -> iam_pb.Account
  284. 2, // 2: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
  285. 3, // 3: iam_pb.Identity.account:type_name -> iam_pb.Account
  286. 4, // [4:4] is the sub-list for method output_type
  287. 4, // [4:4] is the sub-list for method input_type
  288. 4, // [4:4] is the sub-list for extension type_name
  289. 4, // [4:4] is the sub-list for extension extendee
  290. 0, // [0:4] is the sub-list for field type_name
  291. }
  292. func init() { file_iam_proto_init() }
  293. func file_iam_proto_init() {
  294. if File_iam_proto != nil {
  295. return
  296. }
  297. if !protoimpl.UnsafeEnabled {
  298. file_iam_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  299. switch v := v.(*S3ApiConfiguration); i {
  300. case 0:
  301. return &v.state
  302. case 1:
  303. return &v.sizeCache
  304. case 2:
  305. return &v.unknownFields
  306. default:
  307. return nil
  308. }
  309. }
  310. file_iam_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  311. switch v := v.(*Identity); i {
  312. case 0:
  313. return &v.state
  314. case 1:
  315. return &v.sizeCache
  316. case 2:
  317. return &v.unknownFields
  318. default:
  319. return nil
  320. }
  321. }
  322. file_iam_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  323. switch v := v.(*Credential); i {
  324. case 0:
  325. return &v.state
  326. case 1:
  327. return &v.sizeCache
  328. case 2:
  329. return &v.unknownFields
  330. default:
  331. return nil
  332. }
  333. }
  334. file_iam_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  335. switch v := v.(*Account); i {
  336. case 0:
  337. return &v.state
  338. case 1:
  339. return &v.sizeCache
  340. case 2:
  341. return &v.unknownFields
  342. default:
  343. return nil
  344. }
  345. }
  346. }
  347. type x struct{}
  348. out := protoimpl.TypeBuilder{
  349. File: protoimpl.DescBuilder{
  350. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  351. RawDescriptor: file_iam_proto_rawDesc,
  352. NumEnums: 0,
  353. NumMessages: 4,
  354. NumExtensions: 0,
  355. NumServices: 1,
  356. },
  357. GoTypes: file_iam_proto_goTypes,
  358. DependencyIndexes: file_iam_proto_depIdxs,
  359. MessageInfos: file_iam_proto_msgTypes,
  360. }.Build()
  361. File_iam_proto = out.File
  362. file_iam_proto_rawDesc = nil
  363. file_iam_proto_goTypes = nil
  364. file_iam_proto_depIdxs = nil
  365. }