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.

376 lines
13 KiB

  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: s3.proto
  6. package s3_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 S3ConfigureRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. S3ConfigurationFileContent []byte `protobuf:"bytes,1,opt,name=s3_configuration_file_content,json=s3ConfigurationFileContent,proto3" json:"s3_configuration_file_content,omitempty"`
  24. }
  25. func (x *S3ConfigureRequest) Reset() {
  26. *x = S3ConfigureRequest{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_s3_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *S3ConfigureRequest) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*S3ConfigureRequest) ProtoMessage() {}
  37. func (x *S3ConfigureRequest) ProtoReflect() protoreflect.Message {
  38. mi := &file_s3_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 S3ConfigureRequest.ProtoReflect.Descriptor instead.
  49. func (*S3ConfigureRequest) Descriptor() ([]byte, []int) {
  50. return file_s3_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *S3ConfigureRequest) GetS3ConfigurationFileContent() []byte {
  53. if x != nil {
  54. return x.S3ConfigurationFileContent
  55. }
  56. return nil
  57. }
  58. type S3ConfigureResponse struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. }
  63. func (x *S3ConfigureResponse) Reset() {
  64. *x = S3ConfigureResponse{}
  65. if protoimpl.UnsafeEnabled {
  66. mi := &file_s3_proto_msgTypes[1]
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. ms.StoreMessageInfo(mi)
  69. }
  70. }
  71. func (x *S3ConfigureResponse) String() string {
  72. return protoimpl.X.MessageStringOf(x)
  73. }
  74. func (*S3ConfigureResponse) ProtoMessage() {}
  75. func (x *S3ConfigureResponse) ProtoReflect() protoreflect.Message {
  76. mi := &file_s3_proto_msgTypes[1]
  77. if protoimpl.UnsafeEnabled && x != nil {
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. if ms.LoadMessageInfo() == nil {
  80. ms.StoreMessageInfo(mi)
  81. }
  82. return ms
  83. }
  84. return mi.MessageOf(x)
  85. }
  86. // Deprecated: Use S3ConfigureResponse.ProtoReflect.Descriptor instead.
  87. func (*S3ConfigureResponse) Descriptor() ([]byte, []int) {
  88. return file_s3_proto_rawDescGZIP(), []int{1}
  89. }
  90. type S3CircuitBreakerConfig struct {
  91. state protoimpl.MessageState
  92. sizeCache protoimpl.SizeCache
  93. unknownFields protoimpl.UnknownFields
  94. Global *CbOptions `protobuf:"bytes,1,opt,name=global,proto3" json:"global,omitempty"`
  95. Buckets map[string]*CbOptions `protobuf:"bytes,2,rep,name=buckets,proto3" json:"buckets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  96. }
  97. func (x *S3CircuitBreakerConfig) Reset() {
  98. *x = S3CircuitBreakerConfig{}
  99. if protoimpl.UnsafeEnabled {
  100. mi := &file_s3_proto_msgTypes[2]
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. ms.StoreMessageInfo(mi)
  103. }
  104. }
  105. func (x *S3CircuitBreakerConfig) String() string {
  106. return protoimpl.X.MessageStringOf(x)
  107. }
  108. func (*S3CircuitBreakerConfig) ProtoMessage() {}
  109. func (x *S3CircuitBreakerConfig) ProtoReflect() protoreflect.Message {
  110. mi := &file_s3_proto_msgTypes[2]
  111. if protoimpl.UnsafeEnabled && x != nil {
  112. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  113. if ms.LoadMessageInfo() == nil {
  114. ms.StoreMessageInfo(mi)
  115. }
  116. return ms
  117. }
  118. return mi.MessageOf(x)
  119. }
  120. // Deprecated: Use S3CircuitBreakerConfig.ProtoReflect.Descriptor instead.
  121. func (*S3CircuitBreakerConfig) Descriptor() ([]byte, []int) {
  122. return file_s3_proto_rawDescGZIP(), []int{2}
  123. }
  124. func (x *S3CircuitBreakerConfig) GetGlobal() *CbOptions {
  125. if x != nil {
  126. return x.Global
  127. }
  128. return nil
  129. }
  130. func (x *S3CircuitBreakerConfig) GetBuckets() map[string]*CbOptions {
  131. if x != nil {
  132. return x.Buckets
  133. }
  134. return nil
  135. }
  136. type CbOptions struct {
  137. state protoimpl.MessageState
  138. sizeCache protoimpl.SizeCache
  139. unknownFields protoimpl.UnknownFields
  140. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  141. Actions map[string]int64 `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  142. }
  143. func (x *CbOptions) Reset() {
  144. *x = CbOptions{}
  145. if protoimpl.UnsafeEnabled {
  146. mi := &file_s3_proto_msgTypes[3]
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. ms.StoreMessageInfo(mi)
  149. }
  150. }
  151. func (x *CbOptions) String() string {
  152. return protoimpl.X.MessageStringOf(x)
  153. }
  154. func (*CbOptions) ProtoMessage() {}
  155. func (x *CbOptions) ProtoReflect() protoreflect.Message {
  156. mi := &file_s3_proto_msgTypes[3]
  157. if protoimpl.UnsafeEnabled && x != nil {
  158. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  159. if ms.LoadMessageInfo() == nil {
  160. ms.StoreMessageInfo(mi)
  161. }
  162. return ms
  163. }
  164. return mi.MessageOf(x)
  165. }
  166. // Deprecated: Use CbOptions.ProtoReflect.Descriptor instead.
  167. func (*CbOptions) Descriptor() ([]byte, []int) {
  168. return file_s3_proto_rawDescGZIP(), []int{3}
  169. }
  170. func (x *CbOptions) GetEnabled() bool {
  171. if x != nil {
  172. return x.Enabled
  173. }
  174. return false
  175. }
  176. func (x *CbOptions) GetActions() map[string]int64 {
  177. if x != nil {
  178. return x.Actions
  179. }
  180. return nil
  181. }
  182. var File_s3_proto protoreflect.FileDescriptor
  183. var file_s3_proto_rawDesc = []byte{
  184. 0x0a, 0x08, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  185. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22, 0x57, 0x0a, 0x12, 0x53, 0x33, 0x43, 0x6f,
  186. 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41,
  187. 0x0a, 0x1d, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69,
  188. 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
  189. 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1a, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75,
  190. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  191. 0x74, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65,
  192. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xeb, 0x01, 0x0a, 0x16, 0x53, 0x33, 0x43,
  193. 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  194. 0x66, 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x06, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x01, 0x20,
  195. 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  196. 0x70, 0x62, 0x2e, 0x43, 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x67, 0x6c,
  197. 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x4b, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18,
  198. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  199. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72,
  200. 0x65, 0x61, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x42, 0x75, 0x63, 0x6b,
  201. 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74,
  202. 0x73, 0x1a, 0x53, 0x0a, 0x0c, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72,
  203. 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  204. 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
  205. 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70,
  206. 0x62, 0x2e, 0x43, 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c,
  207. 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa1, 0x01, 0x0a, 0x09, 0x43, 0x62, 0x4f, 0x70, 0x74,
  208. 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18,
  209. 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x3e,
  210. 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  211. 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43,
  212. 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  213. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a,
  214. 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
  215. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  216. 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  217. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x5f, 0x0a, 0x09, 0x53, 0x65,
  218. 0x61, 0x77, 0x65, 0x65, 0x64, 0x53, 0x33, 0x12, 0x52, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  219. 0x67, 0x75, 0x72, 0x65, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  220. 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52,
  221. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69,
  222. 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72,
  223. 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x49, 0x0a, 0x10, 0x73,
  224. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42,
  225. 0x07, 0x53, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  226. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73,
  227. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62,
  228. 0x2f, 0x73, 0x33, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  229. }
  230. var (
  231. file_s3_proto_rawDescOnce sync.Once
  232. file_s3_proto_rawDescData = file_s3_proto_rawDesc
  233. )
  234. func file_s3_proto_rawDescGZIP() []byte {
  235. file_s3_proto_rawDescOnce.Do(func() {
  236. file_s3_proto_rawDescData = protoimpl.X.CompressGZIP(file_s3_proto_rawDescData)
  237. })
  238. return file_s3_proto_rawDescData
  239. }
  240. var file_s3_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  241. var file_s3_proto_goTypes = []interface{}{
  242. (*S3ConfigureRequest)(nil), // 0: messaging_pb.S3ConfigureRequest
  243. (*S3ConfigureResponse)(nil), // 1: messaging_pb.S3ConfigureResponse
  244. (*S3CircuitBreakerConfig)(nil), // 2: messaging_pb.S3CircuitBreakerConfig
  245. (*CbOptions)(nil), // 3: messaging_pb.CbOptions
  246. nil, // 4: messaging_pb.S3CircuitBreakerConfig.BucketsEntry
  247. nil, // 5: messaging_pb.CbOptions.ActionsEntry
  248. }
  249. var file_s3_proto_depIdxs = []int32{
  250. 3, // 0: messaging_pb.S3CircuitBreakerConfig.global:type_name -> messaging_pb.CbOptions
  251. 4, // 1: messaging_pb.S3CircuitBreakerConfig.buckets:type_name -> messaging_pb.S3CircuitBreakerConfig.BucketsEntry
  252. 5, // 2: messaging_pb.CbOptions.actions:type_name -> messaging_pb.CbOptions.ActionsEntry
  253. 3, // 3: messaging_pb.S3CircuitBreakerConfig.BucketsEntry.value:type_name -> messaging_pb.CbOptions
  254. 0, // 4: messaging_pb.SeaweedS3.Configure:input_type -> messaging_pb.S3ConfigureRequest
  255. 1, // 5: messaging_pb.SeaweedS3.Configure:output_type -> messaging_pb.S3ConfigureResponse
  256. 5, // [5:6] is the sub-list for method output_type
  257. 4, // [4:5] is the sub-list for method input_type
  258. 4, // [4:4] is the sub-list for extension type_name
  259. 4, // [4:4] is the sub-list for extension extendee
  260. 0, // [0:4] is the sub-list for field type_name
  261. }
  262. func init() { file_s3_proto_init() }
  263. func file_s3_proto_init() {
  264. if File_s3_proto != nil {
  265. return
  266. }
  267. if !protoimpl.UnsafeEnabled {
  268. file_s3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  269. switch v := v.(*S3ConfigureRequest); i {
  270. case 0:
  271. return &v.state
  272. case 1:
  273. return &v.sizeCache
  274. case 2:
  275. return &v.unknownFields
  276. default:
  277. return nil
  278. }
  279. }
  280. file_s3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  281. switch v := v.(*S3ConfigureResponse); i {
  282. case 0:
  283. return &v.state
  284. case 1:
  285. return &v.sizeCache
  286. case 2:
  287. return &v.unknownFields
  288. default:
  289. return nil
  290. }
  291. }
  292. file_s3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  293. switch v := v.(*S3CircuitBreakerConfig); i {
  294. case 0:
  295. return &v.state
  296. case 1:
  297. return &v.sizeCache
  298. case 2:
  299. return &v.unknownFields
  300. default:
  301. return nil
  302. }
  303. }
  304. file_s3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  305. switch v := v.(*CbOptions); i {
  306. case 0:
  307. return &v.state
  308. case 1:
  309. return &v.sizeCache
  310. case 2:
  311. return &v.unknownFields
  312. default:
  313. return nil
  314. }
  315. }
  316. }
  317. type x struct{}
  318. out := protoimpl.TypeBuilder{
  319. File: protoimpl.DescBuilder{
  320. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  321. RawDescriptor: file_s3_proto_rawDesc,
  322. NumEnums: 0,
  323. NumMessages: 6,
  324. NumExtensions: 0,
  325. NumServices: 1,
  326. },
  327. GoTypes: file_s3_proto_goTypes,
  328. DependencyIndexes: file_s3_proto_depIdxs,
  329. MessageInfos: file_s3_proto_msgTypes,
  330. }.Build()
  331. File_s3_proto = out.File
  332. file_s3_proto_rawDesc = nil
  333. file_s3_proto_goTypes = nil
  334. file_s3_proto_depIdxs = nil
  335. }