// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.33.4 // source: s3.proto package s3_pb import ( iam_pb "github.com/seaweedfs/seaweedfs/weed/pb/iam_pb" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type S3CircuitBreakerConfig struct { state protoimpl.MessageState `protogen:"open.v1"` Global *S3CircuitBreakerOptions `protobuf:"bytes,1,opt,name=global,proto3" json:"global,omitempty"` Buckets map[string]*S3CircuitBreakerOptions `protobuf:"bytes,2,rep,name=buckets,proto3" json:"buckets,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *S3CircuitBreakerConfig) Reset() { *x = S3CircuitBreakerConfig{} mi := &file_s3_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *S3CircuitBreakerConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*S3CircuitBreakerConfig) ProtoMessage() {} func (x *S3CircuitBreakerConfig) ProtoReflect() protoreflect.Message { mi := &file_s3_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use S3CircuitBreakerConfig.ProtoReflect.Descriptor instead. func (*S3CircuitBreakerConfig) Descriptor() ([]byte, []int) { return file_s3_proto_rawDescGZIP(), []int{0} } func (x *S3CircuitBreakerConfig) GetGlobal() *S3CircuitBreakerOptions { if x != nil { return x.Global } return nil } func (x *S3CircuitBreakerConfig) GetBuckets() map[string]*S3CircuitBreakerOptions { if x != nil { return x.Buckets } return nil } type S3CircuitBreakerOptions struct { state protoimpl.MessageState `protogen:"open.v1"` Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Actions map[string]int64 `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *S3CircuitBreakerOptions) Reset() { *x = S3CircuitBreakerOptions{} mi := &file_s3_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *S3CircuitBreakerOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*S3CircuitBreakerOptions) ProtoMessage() {} func (x *S3CircuitBreakerOptions) ProtoReflect() protoreflect.Message { mi := &file_s3_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use S3CircuitBreakerOptions.ProtoReflect.Descriptor instead. func (*S3CircuitBreakerOptions) Descriptor() ([]byte, []int) { return file_s3_proto_rawDescGZIP(), []int{1} } func (x *S3CircuitBreakerOptions) GetEnabled() bool { if x != nil { return x.Enabled } return false } func (x *S3CircuitBreakerOptions) GetActions() map[string]int64 { if x != nil { return x.Actions } return nil } type CORSRule struct { state protoimpl.MessageState `protogen:"open.v1"` AllowedHeaders []string `protobuf:"bytes,1,rep,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"` AllowedMethods []string `protobuf:"bytes,2,rep,name=allowed_methods,json=allowedMethods,proto3" json:"allowed_methods,omitempty"` AllowedOrigins []string `protobuf:"bytes,3,rep,name=allowed_origins,json=allowedOrigins,proto3" json:"allowed_origins,omitempty"` ExposeHeaders []string `protobuf:"bytes,4,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"` MaxAgeSeconds int32 `protobuf:"varint,5,opt,name=max_age_seconds,json=maxAgeSeconds,proto3" json:"max_age_seconds,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CORSRule) Reset() { *x = CORSRule{} mi := &file_s3_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CORSRule) String() string { return protoimpl.X.MessageStringOf(x) } func (*CORSRule) ProtoMessage() {} func (x *CORSRule) ProtoReflect() protoreflect.Message { mi := &file_s3_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CORSRule.ProtoReflect.Descriptor instead. func (*CORSRule) Descriptor() ([]byte, []int) { return file_s3_proto_rawDescGZIP(), []int{2} } func (x *CORSRule) GetAllowedHeaders() []string { if x != nil { return x.AllowedHeaders } return nil } func (x *CORSRule) GetAllowedMethods() []string { if x != nil { return x.AllowedMethods } return nil } func (x *CORSRule) GetAllowedOrigins() []string { if x != nil { return x.AllowedOrigins } return nil } func (x *CORSRule) GetExposeHeaders() []string { if x != nil { return x.ExposeHeaders } return nil } func (x *CORSRule) GetMaxAgeSeconds() int32 { if x != nil { return x.MaxAgeSeconds } return 0 } func (x *CORSRule) GetId() string { if x != nil { return x.Id } return "" } type CORSConfiguration struct { state protoimpl.MessageState `protogen:"open.v1"` CorsRules []*CORSRule `protobuf:"bytes,1,rep,name=cors_rules,json=corsRules,proto3" json:"cors_rules,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CORSConfiguration) Reset() { *x = CORSConfiguration{} mi := &file_s3_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CORSConfiguration) String() string { return protoimpl.X.MessageStringOf(x) } func (*CORSConfiguration) ProtoMessage() {} func (x *CORSConfiguration) ProtoReflect() protoreflect.Message { mi := &file_s3_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CORSConfiguration.ProtoReflect.Descriptor instead. func (*CORSConfiguration) Descriptor() ([]byte, []int) { return file_s3_proto_rawDescGZIP(), []int{3} } func (x *CORSConfiguration) GetCorsRules() []*CORSRule { if x != nil { return x.CorsRules } return nil } type BucketMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` Tags map[string]string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Cors *CORSConfiguration `protobuf:"bytes,2,opt,name=cors,proto3" json:"cors,omitempty"` Encryption *EncryptionConfiguration `protobuf:"bytes,3,opt,name=encryption,proto3" json:"encryption,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *BucketMetadata) Reset() { *x = BucketMetadata{} mi := &file_s3_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *BucketMetadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*BucketMetadata) ProtoMessage() {} func (x *BucketMetadata) ProtoReflect() protoreflect.Message { mi := &file_s3_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use BucketMetadata.ProtoReflect.Descriptor instead. func (*BucketMetadata) Descriptor() ([]byte, []int) { return file_s3_proto_rawDescGZIP(), []int{4} } func (x *BucketMetadata) GetTags() map[string]string { if x != nil { return x.Tags } return nil } func (x *BucketMetadata) GetCors() *CORSConfiguration { if x != nil { return x.Cors } return nil } func (x *BucketMetadata) GetEncryption() *EncryptionConfiguration { if x != nil { return x.Encryption } return nil } type EncryptionConfiguration struct { state protoimpl.MessageState `protogen:"open.v1"` SseAlgorithm string `protobuf:"bytes,1,opt,name=sse_algorithm,json=sseAlgorithm,proto3" json:"sse_algorithm,omitempty"` // "AES256" or "aws:kms" KmsKeyId string `protobuf:"bytes,2,opt,name=kms_key_id,json=kmsKeyId,proto3" json:"kms_key_id,omitempty"` // KMS key ID (optional for aws:kms) BucketKeyEnabled bool `protobuf:"varint,3,opt,name=bucket_key_enabled,json=bucketKeyEnabled,proto3" json:"bucket_key_enabled,omitempty"` // S3 Bucket Keys optimization unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *EncryptionConfiguration) Reset() { *x = EncryptionConfiguration{} mi := &file_s3_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *EncryptionConfiguration) String() string { return protoimpl.X.MessageStringOf(x) } func (*EncryptionConfiguration) ProtoMessage() {} func (x *EncryptionConfiguration) ProtoReflect() protoreflect.Message { mi := &file_s3_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use EncryptionConfiguration.ProtoReflect.Descriptor instead. func (*EncryptionConfiguration) Descriptor() ([]byte, []int) { return file_s3_proto_rawDescGZIP(), []int{5} } func (x *EncryptionConfiguration) GetSseAlgorithm() string { if x != nil { return x.SseAlgorithm } return "" } func (x *EncryptionConfiguration) GetKmsKeyId() string { if x != nil { return x.KmsKeyId } return "" } func (x *EncryptionConfiguration) GetBucketKeyEnabled() bool { if x != nil { return x.BucketKeyEnabled } return false } var File_s3_proto protoreflect.FileDescriptor const file_s3_proto_rawDesc = "" + "\n" + "\bs3.proto\x12\fmessaging_pb\x1a\tiam.proto\"\x87\x02\n" + "\x16S3CircuitBreakerConfig\x12=\n" + "\x06global\x18\x01 \x01(\v2%.messaging_pb.S3CircuitBreakerOptionsR\x06global\x12K\n" + "\abuckets\x18\x02 \x03(\v21.messaging_pb.S3CircuitBreakerConfig.BucketsEntryR\abuckets\x1aa\n" + "\fBucketsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12;\n" + "\x05value\x18\x02 \x01(\v2%.messaging_pb.S3CircuitBreakerOptionsR\x05value:\x028\x01\"\xbd\x01\n" + "\x17S3CircuitBreakerOptions\x12\x18\n" + "\aenabled\x18\x01 \x01(\bR\aenabled\x12L\n" + "\aactions\x18\x02 \x03(\v22.messaging_pb.S3CircuitBreakerOptions.ActionsEntryR\aactions\x1a:\n" + "\fActionsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\"\xe4\x01\n" + "\bCORSRule\x12'\n" + "\x0fallowed_headers\x18\x01 \x03(\tR\x0eallowedHeaders\x12'\n" + "\x0fallowed_methods\x18\x02 \x03(\tR\x0eallowedMethods\x12'\n" + "\x0fallowed_origins\x18\x03 \x03(\tR\x0eallowedOrigins\x12%\n" + "\x0eexpose_headers\x18\x04 \x03(\tR\rexposeHeaders\x12&\n" + "\x0fmax_age_seconds\x18\x05 \x01(\x05R\rmaxAgeSeconds\x12\x0e\n" + "\x02id\x18\x06 \x01(\tR\x02id\"J\n" + "\x11CORSConfiguration\x125\n" + "\n" + "cors_rules\x18\x01 \x03(\v2\x16.messaging_pb.CORSRuleR\tcorsRules\"\x81\x02\n" + "\x0eBucketMetadata\x12:\n" + "\x04tags\x18\x01 \x03(\v2&.messaging_pb.BucketMetadata.TagsEntryR\x04tags\x123\n" + "\x04cors\x18\x02 \x01(\v2\x1f.messaging_pb.CORSConfigurationR\x04cors\x12E\n" + "\n" + "encryption\x18\x03 \x01(\v2%.messaging_pb.EncryptionConfigurationR\n" + "encryption\x1a7\n" + "\tTagsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x8a\x01\n" + "\x17EncryptionConfiguration\x12#\n" + "\rsse_algorithm\x18\x01 \x01(\tR\fsseAlgorithm\x12\x1c\n" + "\n" + "kms_key_id\x18\x02 \x01(\tR\bkmsKeyId\x12,\n" + "\x12bucket_key_enabled\x18\x03 \x01(\bR\x10bucketKeyEnabled2\xc6\x03\n" + "\x11SeaweedS3IamCache\x12F\n" + "\vPutIdentity\x12\x1a.iam_pb.PutIdentityRequest\x1a\x1b.iam_pb.PutIdentityResponse\x12O\n" + "\x0eRemoveIdentity\x12\x1d.iam_pb.RemoveIdentityRequest\x1a\x1e.iam_pb.RemoveIdentityResponse\x12@\n" + "\tPutPolicy\x12\x18.iam_pb.PutPolicyRequest\x1a\x19.iam_pb.PutPolicyResponse\x12@\n" + "\tGetPolicy\x12\x18.iam_pb.GetPolicyRequest\x1a\x19.iam_pb.GetPolicyResponse\x12I\n" + "\fListPolicies\x12\x1b.iam_pb.ListPoliciesRequest\x1a\x1c.iam_pb.ListPoliciesResponse\x12I\n" + "\fDeletePolicy\x12\x1b.iam_pb.DeletePolicyRequest\x1a\x1c.iam_pb.DeletePolicyResponseBI\n" + "\x10seaweedfs.clientB\aS3ProtoZ,github.com/seaweedfs/seaweedfs/weed/pb/s3_pbb\x06proto3" var ( file_s3_proto_rawDescOnce sync.Once file_s3_proto_rawDescData []byte ) func file_s3_proto_rawDescGZIP() []byte { file_s3_proto_rawDescOnce.Do(func() { file_s3_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_s3_proto_rawDesc), len(file_s3_proto_rawDesc))) }) return file_s3_proto_rawDescData } var file_s3_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_s3_proto_goTypes = []any{ (*S3CircuitBreakerConfig)(nil), // 0: messaging_pb.S3CircuitBreakerConfig (*S3CircuitBreakerOptions)(nil), // 1: messaging_pb.S3CircuitBreakerOptions (*CORSRule)(nil), // 2: messaging_pb.CORSRule (*CORSConfiguration)(nil), // 3: messaging_pb.CORSConfiguration (*BucketMetadata)(nil), // 4: messaging_pb.BucketMetadata (*EncryptionConfiguration)(nil), // 5: messaging_pb.EncryptionConfiguration nil, // 6: messaging_pb.S3CircuitBreakerConfig.BucketsEntry nil, // 7: messaging_pb.S3CircuitBreakerOptions.ActionsEntry nil, // 8: messaging_pb.BucketMetadata.TagsEntry (*iam_pb.PutIdentityRequest)(nil), // 9: iam_pb.PutIdentityRequest (*iam_pb.RemoveIdentityRequest)(nil), // 10: iam_pb.RemoveIdentityRequest (*iam_pb.PutPolicyRequest)(nil), // 11: iam_pb.PutPolicyRequest (*iam_pb.GetPolicyRequest)(nil), // 12: iam_pb.GetPolicyRequest (*iam_pb.ListPoliciesRequest)(nil), // 13: iam_pb.ListPoliciesRequest (*iam_pb.DeletePolicyRequest)(nil), // 14: iam_pb.DeletePolicyRequest (*iam_pb.PutIdentityResponse)(nil), // 15: iam_pb.PutIdentityResponse (*iam_pb.RemoveIdentityResponse)(nil), // 16: iam_pb.RemoveIdentityResponse (*iam_pb.PutPolicyResponse)(nil), // 17: iam_pb.PutPolicyResponse (*iam_pb.GetPolicyResponse)(nil), // 18: iam_pb.GetPolicyResponse (*iam_pb.ListPoliciesResponse)(nil), // 19: iam_pb.ListPoliciesResponse (*iam_pb.DeletePolicyResponse)(nil), // 20: iam_pb.DeletePolicyResponse } var file_s3_proto_depIdxs = []int32{ 1, // 0: messaging_pb.S3CircuitBreakerConfig.global:type_name -> messaging_pb.S3CircuitBreakerOptions 6, // 1: messaging_pb.S3CircuitBreakerConfig.buckets:type_name -> messaging_pb.S3CircuitBreakerConfig.BucketsEntry 7, // 2: messaging_pb.S3CircuitBreakerOptions.actions:type_name -> messaging_pb.S3CircuitBreakerOptions.ActionsEntry 2, // 3: messaging_pb.CORSConfiguration.cors_rules:type_name -> messaging_pb.CORSRule 8, // 4: messaging_pb.BucketMetadata.tags:type_name -> messaging_pb.BucketMetadata.TagsEntry 3, // 5: messaging_pb.BucketMetadata.cors:type_name -> messaging_pb.CORSConfiguration 5, // 6: messaging_pb.BucketMetadata.encryption:type_name -> messaging_pb.EncryptionConfiguration 1, // 7: messaging_pb.S3CircuitBreakerConfig.BucketsEntry.value:type_name -> messaging_pb.S3CircuitBreakerOptions 9, // 8: messaging_pb.SeaweedS3IamCache.PutIdentity:input_type -> iam_pb.PutIdentityRequest 10, // 9: messaging_pb.SeaweedS3IamCache.RemoveIdentity:input_type -> iam_pb.RemoveIdentityRequest 11, // 10: messaging_pb.SeaweedS3IamCache.PutPolicy:input_type -> iam_pb.PutPolicyRequest 12, // 11: messaging_pb.SeaweedS3IamCache.GetPolicy:input_type -> iam_pb.GetPolicyRequest 13, // 12: messaging_pb.SeaweedS3IamCache.ListPolicies:input_type -> iam_pb.ListPoliciesRequest 14, // 13: messaging_pb.SeaweedS3IamCache.DeletePolicy:input_type -> iam_pb.DeletePolicyRequest 15, // 14: messaging_pb.SeaweedS3IamCache.PutIdentity:output_type -> iam_pb.PutIdentityResponse 16, // 15: messaging_pb.SeaweedS3IamCache.RemoveIdentity:output_type -> iam_pb.RemoveIdentityResponse 17, // 16: messaging_pb.SeaweedS3IamCache.PutPolicy:output_type -> iam_pb.PutPolicyResponse 18, // 17: messaging_pb.SeaweedS3IamCache.GetPolicy:output_type -> iam_pb.GetPolicyResponse 19, // 18: messaging_pb.SeaweedS3IamCache.ListPolicies:output_type -> iam_pb.ListPoliciesResponse 20, // 19: messaging_pb.SeaweedS3IamCache.DeletePolicy:output_type -> iam_pb.DeletePolicyResponse 14, // [14:20] is the sub-list for method output_type 8, // [8:14] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_s3_proto_init() } func file_s3_proto_init() { if File_s3_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_s3_proto_rawDesc), len(file_s3_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 1, }, GoTypes: file_s3_proto_goTypes, DependencyIndexes: file_s3_proto_depIdxs, MessageInfos: file_s3_proto_msgTypes, }.Build() File_s3_proto = out.File file_s3_proto_goTypes = nil file_s3_proto_depIdxs = nil }