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.

411 lines
13 KiB

5 years ago
6 months 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
6 months 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
6 months ago
6 months ago
6 months 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
6 months ago
6 months ago
5 years ago
5 years ago
5 years ago
6 months 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.28.0
  4. // protoc v3.21.1
  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. AccountId string `protobuf:"bytes,4,opt,name=AccountId,proto3" json:"AccountId,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) GetAccountId() string {
  120. if x != nil {
  121. return x.AccountId
  122. }
  123. return ""
  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, 0x8c, 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, 0x1c, 0x0a, 0x09, 0x41, 0x63, 0x63,
  242. 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x41, 0x63,
  243. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65,
  244. 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
  245. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73,
  246. 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b,
  247. 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
  248. 0x4b, 0x65, 0x79, 0x22, 0x61, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e,
  249. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21,
  250. 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  251. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
  252. 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
  253. 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x41,
  254. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x32, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65,
  255. 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d,
  256. 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x4b, 0x0a, 0x10, 0x73, 0x65, 0x61,
  257. 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x08, 0x49,
  258. 0x61, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  259. 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65,
  260. 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f,
  261. 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  262. }
  263. var (
  264. file_iam_proto_rawDescOnce sync.Once
  265. file_iam_proto_rawDescData = file_iam_proto_rawDesc
  266. )
  267. func file_iam_proto_rawDescGZIP() []byte {
  268. file_iam_proto_rawDescOnce.Do(func() {
  269. file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(file_iam_proto_rawDescData)
  270. })
  271. return file_iam_proto_rawDescData
  272. }
  273. var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  274. var file_iam_proto_goTypes = []interface{}{
  275. (*S3ApiConfiguration)(nil), // 0: iam_pb.S3ApiConfiguration
  276. (*Identity)(nil), // 1: iam_pb.Identity
  277. (*Credential)(nil), // 2: iam_pb.Credential
  278. (*Account)(nil), // 3: iam_pb.Account
  279. }
  280. var file_iam_proto_depIdxs = []int32{
  281. 1, // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
  282. 3, // 1: iam_pb.S3ApiConfiguration.accounts:type_name -> iam_pb.Account
  283. 2, // 2: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
  284. 3, // [3:3] is the sub-list for method output_type
  285. 3, // [3:3] is the sub-list for method input_type
  286. 3, // [3:3] is the sub-list for extension type_name
  287. 3, // [3:3] is the sub-list for extension extendee
  288. 0, // [0:3] is the sub-list for field type_name
  289. }
  290. func init() { file_iam_proto_init() }
  291. func file_iam_proto_init() {
  292. if File_iam_proto != nil {
  293. return
  294. }
  295. if !protoimpl.UnsafeEnabled {
  296. file_iam_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  297. switch v := v.(*S3ApiConfiguration); i {
  298. case 0:
  299. return &v.state
  300. case 1:
  301. return &v.sizeCache
  302. case 2:
  303. return &v.unknownFields
  304. default:
  305. return nil
  306. }
  307. }
  308. file_iam_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  309. switch v := v.(*Identity); i {
  310. case 0:
  311. return &v.state
  312. case 1:
  313. return &v.sizeCache
  314. case 2:
  315. return &v.unknownFields
  316. default:
  317. return nil
  318. }
  319. }
  320. file_iam_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  321. switch v := v.(*Credential); i {
  322. case 0:
  323. return &v.state
  324. case 1:
  325. return &v.sizeCache
  326. case 2:
  327. return &v.unknownFields
  328. default:
  329. return nil
  330. }
  331. }
  332. file_iam_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  333. switch v := v.(*Account); i {
  334. case 0:
  335. return &v.state
  336. case 1:
  337. return &v.sizeCache
  338. case 2:
  339. return &v.unknownFields
  340. default:
  341. return nil
  342. }
  343. }
  344. }
  345. type x struct{}
  346. out := protoimpl.TypeBuilder{
  347. File: protoimpl.DescBuilder{
  348. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  349. RawDescriptor: file_iam_proto_rawDesc,
  350. NumEnums: 0,
  351. NumMessages: 4,
  352. NumExtensions: 0,
  353. NumServices: 1,
  354. },
  355. GoTypes: file_iam_proto_goTypes,
  356. DependencyIndexes: file_iam_proto_depIdxs,
  357. MessageInfos: file_iam_proto_msgTypes,
  358. }.Build()
  359. File_iam_proto = out.File
  360. file_iam_proto_rawDesc = nil
  361. file_iam_proto_goTypes = nil
  362. file_iam_proto_depIdxs = nil
  363. }