iam.pb.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  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. }
  25. func (x *S3ApiConfiguration) Reset() {
  26. *x = S3ApiConfiguration{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_iam_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  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 protoimpl.UnsafeEnabled && 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. type Identity struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  63. Credentials []*Credential `protobuf:"bytes,2,rep,name=credentials,proto3" json:"credentials,omitempty"`
  64. Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
  65. AccountId string `protobuf:"bytes,4,opt,name=accountId,proto3" json:"accountId,omitempty"`
  66. }
  67. func (x *Identity) Reset() {
  68. *x = Identity{}
  69. if protoimpl.UnsafeEnabled {
  70. mi := &file_iam_proto_msgTypes[1]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. }
  75. func (x *Identity) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*Identity) ProtoMessage() {}
  79. func (x *Identity) ProtoReflect() protoreflect.Message {
  80. mi := &file_iam_proto_msgTypes[1]
  81. if protoimpl.UnsafeEnabled && x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use Identity.ProtoReflect.Descriptor instead.
  91. func (*Identity) Descriptor() ([]byte, []int) {
  92. return file_iam_proto_rawDescGZIP(), []int{1}
  93. }
  94. func (x *Identity) GetName() string {
  95. if x != nil {
  96. return x.Name
  97. }
  98. return ""
  99. }
  100. func (x *Identity) GetCredentials() []*Credential {
  101. if x != nil {
  102. return x.Credentials
  103. }
  104. return nil
  105. }
  106. func (x *Identity) GetActions() []string {
  107. if x != nil {
  108. return x.Actions
  109. }
  110. return nil
  111. }
  112. func (x *Identity) GetAccountId() string {
  113. if x != nil {
  114. return x.AccountId
  115. }
  116. return ""
  117. }
  118. type Credential struct {
  119. state protoimpl.MessageState
  120. sizeCache protoimpl.SizeCache
  121. unknownFields protoimpl.UnknownFields
  122. AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
  123. SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  124. }
  125. func (x *Credential) Reset() {
  126. *x = Credential{}
  127. if protoimpl.UnsafeEnabled {
  128. mi := &file_iam_proto_msgTypes[2]
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. ms.StoreMessageInfo(mi)
  131. }
  132. }
  133. func (x *Credential) String() string {
  134. return protoimpl.X.MessageStringOf(x)
  135. }
  136. func (*Credential) ProtoMessage() {}
  137. func (x *Credential) ProtoReflect() protoreflect.Message {
  138. mi := &file_iam_proto_msgTypes[2]
  139. if protoimpl.UnsafeEnabled && x != nil {
  140. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  141. if ms.LoadMessageInfo() == nil {
  142. ms.StoreMessageInfo(mi)
  143. }
  144. return ms
  145. }
  146. return mi.MessageOf(x)
  147. }
  148. // Deprecated: Use Credential.ProtoReflect.Descriptor instead.
  149. func (*Credential) Descriptor() ([]byte, []int) {
  150. return file_iam_proto_rawDescGZIP(), []int{2}
  151. }
  152. func (x *Credential) GetAccessKey() string {
  153. if x != nil {
  154. return x.AccessKey
  155. }
  156. return ""
  157. }
  158. func (x *Credential) GetSecretKey() string {
  159. if x != nil {
  160. return x.SecretKey
  161. }
  162. return ""
  163. }
  164. var File_iam_proto protoreflect.FileDescriptor
  165. var file_iam_proto_rawDesc = []byte{
  166. 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x69, 0x61, 0x6d,
  167. 0x5f, 0x70, 0x62, 0x22, 0x46, 0x0a, 0x12, 0x53, 0x33, 0x41, 0x70, 0x69, 0x43, 0x6f, 0x6e, 0x66,
  168. 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x0a, 0x69, 0x64, 0x65,
  169. 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
  170. 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52,
  171. 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x08,
  172. 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  173. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b,
  174. 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
  175. 0x0b, 0x32, 0x12, 0x2e, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65,
  176. 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
  177. 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20,
  178. 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09,
  179. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  180. 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x0a, 0x43, 0x72,
  181. 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65,
  182. 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63,
  183. 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65,
  184. 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63,
  185. 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x32, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65,
  186. 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d,
  187. 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x4b, 0x0a, 0x10, 0x73, 0x65, 0x61,
  188. 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x08, 0x49,
  189. 0x61, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  190. 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65,
  191. 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f,
  192. 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  193. }
  194. var (
  195. file_iam_proto_rawDescOnce sync.Once
  196. file_iam_proto_rawDescData = file_iam_proto_rawDesc
  197. )
  198. func file_iam_proto_rawDescGZIP() []byte {
  199. file_iam_proto_rawDescOnce.Do(func() {
  200. file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(file_iam_proto_rawDescData)
  201. })
  202. return file_iam_proto_rawDescData
  203. }
  204. var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  205. var file_iam_proto_goTypes = []interface{}{
  206. (*S3ApiConfiguration)(nil), // 0: iam_pb.S3ApiConfiguration
  207. (*Identity)(nil), // 1: iam_pb.Identity
  208. (*Credential)(nil), // 2: iam_pb.Credential
  209. }
  210. var file_iam_proto_depIdxs = []int32{
  211. 1, // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
  212. 2, // 1: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
  213. 2, // [2:2] is the sub-list for method output_type
  214. 2, // [2:2] is the sub-list for method input_type
  215. 2, // [2:2] is the sub-list for extension type_name
  216. 2, // [2:2] is the sub-list for extension extendee
  217. 0, // [0:2] is the sub-list for field type_name
  218. }
  219. func init() { file_iam_proto_init() }
  220. func file_iam_proto_init() {
  221. if File_iam_proto != nil {
  222. return
  223. }
  224. if !protoimpl.UnsafeEnabled {
  225. file_iam_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  226. switch v := v.(*S3ApiConfiguration); i {
  227. case 0:
  228. return &v.state
  229. case 1:
  230. return &v.sizeCache
  231. case 2:
  232. return &v.unknownFields
  233. default:
  234. return nil
  235. }
  236. }
  237. file_iam_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  238. switch v := v.(*Identity); i {
  239. case 0:
  240. return &v.state
  241. case 1:
  242. return &v.sizeCache
  243. case 2:
  244. return &v.unknownFields
  245. default:
  246. return nil
  247. }
  248. }
  249. file_iam_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  250. switch v := v.(*Credential); i {
  251. case 0:
  252. return &v.state
  253. case 1:
  254. return &v.sizeCache
  255. case 2:
  256. return &v.unknownFields
  257. default:
  258. return nil
  259. }
  260. }
  261. }
  262. type x struct{}
  263. out := protoimpl.TypeBuilder{
  264. File: protoimpl.DescBuilder{
  265. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  266. RawDescriptor: file_iam_proto_rawDesc,
  267. NumEnums: 0,
  268. NumMessages: 3,
  269. NumExtensions: 0,
  270. NumServices: 1,
  271. },
  272. GoTypes: file_iam_proto_goTypes,
  273. DependencyIndexes: file_iam_proto_depIdxs,
  274. MessageInfos: file_iam_proto_msgTypes,
  275. }.Build()
  276. File_iam_proto = out.File
  277. file_iam_proto_rawDesc = nil
  278. file_iam_proto_goTypes = nil
  279. file_iam_proto_depIdxs = nil
  280. }