iam.pb.go 9.4 KB

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