Files
kratos-bootstrap/api/gen/go/conf/v1/kratos_conf_oss.pb.go
2025-06-25 10:06:15 +08:00

246 lines
7.7 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc (unknown)
// source: conf/v1/kratos_conf_oss.proto
package v1
import (
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 OSS struct {
state protoimpl.MessageState `protogen:"open.v1"`
Minio *OSS_MinIO `protobuf:"bytes,1,opt,name=minio,proto3,oneof" json:"minio,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OSS) Reset() {
*x = OSS{}
mi := &file_conf_v1_kratos_conf_oss_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OSS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OSS) ProtoMessage() {}
func (x *OSS) ProtoReflect() protoreflect.Message {
mi := &file_conf_v1_kratos_conf_oss_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 OSS.ProtoReflect.Descriptor instead.
func (*OSS) Descriptor() ([]byte, []int) {
return file_conf_v1_kratos_conf_oss_proto_rawDescGZIP(), []int{0}
}
func (x *OSS) GetMinio() *OSS_MinIO {
if x != nil {
return x.Minio
}
return nil
}
// MinIO
type OSS_MinIO struct {
state protoimpl.MessageState `protogen:"open.v1"`
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端端口
AccessKey string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // 令牌
UseSsl bool `protobuf:"varint,10,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"` // 使用SSL
Tls *TLS `protobuf:"bytes,11,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
UploadHost string `protobuf:"bytes,20,opt,name=upload_host,json=uploadHost,proto3" json:"upload_host,omitempty"` // 上传链接的主机名
DownloadHost string `protobuf:"bytes,21,opt,name=download_host,json=downloadHost,proto3" json:"download_host,omitempty"` // 下载链接的主机名
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OSS_MinIO) Reset() {
*x = OSS_MinIO{}
mi := &file_conf_v1_kratos_conf_oss_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OSS_MinIO) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OSS_MinIO) ProtoMessage() {}
func (x *OSS_MinIO) ProtoReflect() protoreflect.Message {
mi := &file_conf_v1_kratos_conf_oss_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 OSS_MinIO.ProtoReflect.Descriptor instead.
func (*OSS_MinIO) Descriptor() ([]byte, []int) {
return file_conf_v1_kratos_conf_oss_proto_rawDescGZIP(), []int{0, 0}
}
func (x *OSS_MinIO) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *OSS_MinIO) GetAccessKey() string {
if x != nil {
return x.AccessKey
}
return ""
}
func (x *OSS_MinIO) GetSecretKey() string {
if x != nil {
return x.SecretKey
}
return ""
}
func (x *OSS_MinIO) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *OSS_MinIO) GetUseSsl() bool {
if x != nil {
return x.UseSsl
}
return false
}
func (x *OSS_MinIO) GetTls() *TLS {
if x != nil {
return x.Tls
}
return nil
}
func (x *OSS_MinIO) GetUploadHost() string {
if x != nil {
return x.UploadHost
}
return ""
}
func (x *OSS_MinIO) GetDownloadHost() string {
if x != nil {
return x.DownloadHost
}
return ""
}
var File_conf_v1_kratos_conf_oss_proto protoreflect.FileDescriptor
const file_conf_v1_kratos_conf_oss_proto_rawDesc = "" +
"\n" +
"\x1dconf/v1/kratos_conf_oss.proto\x12\x04conf\x1a\x1dconf/v1/kratos_conf_tls.proto\"\xb1\x02\n" +
"\x03OSS\x12*\n" +
"\x05minio\x18\x01 \x01(\v2\x0f.conf.OSS.MinIOH\x00R\x05minio\x88\x01\x01\x1a\xf3\x01\n" +
"\x05MinIO\x12\x1a\n" +
"\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x1d\n" +
"\n" +
"access_key\x18\x02 \x01(\tR\taccessKey\x12\x1d\n" +
"\n" +
"secret_key\x18\x03 \x01(\tR\tsecretKey\x12\x14\n" +
"\x05token\x18\x04 \x01(\tR\x05token\x12\x17\n" +
"\ause_ssl\x18\n" +
" \x01(\bR\x06useSsl\x12\x1b\n" +
"\x03tls\x18\v \x01(\v2\t.conf.TLSR\x03tls\x12\x1f\n" +
"\vupload_host\x18\x14 \x01(\tR\n" +
"uploadHost\x12#\n" +
"\rdownload_host\x18\x15 \x01(\tR\fdownloadHostB\b\n" +
"\x06_minioB\x84\x01\n" +
"\bcom.confB\x12KratosConfOssProtoP\x01Z4github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1\xa2\x02\x03CXX\xaa\x02\x04Conf\xca\x02\x04Conf\xe2\x02\x10Conf\\GPBMetadata\xea\x02\x04Confb\x06proto3"
var (
file_conf_v1_kratos_conf_oss_proto_rawDescOnce sync.Once
file_conf_v1_kratos_conf_oss_proto_rawDescData []byte
)
func file_conf_v1_kratos_conf_oss_proto_rawDescGZIP() []byte {
file_conf_v1_kratos_conf_oss_proto_rawDescOnce.Do(func() {
file_conf_v1_kratos_conf_oss_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_oss_proto_rawDesc), len(file_conf_v1_kratos_conf_oss_proto_rawDesc)))
})
return file_conf_v1_kratos_conf_oss_proto_rawDescData
}
var file_conf_v1_kratos_conf_oss_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_conf_v1_kratos_conf_oss_proto_goTypes = []any{
(*OSS)(nil), // 0: conf.OSS
(*OSS_MinIO)(nil), // 1: conf.OSS.MinIO
(*TLS)(nil), // 2: conf.TLS
}
var file_conf_v1_kratos_conf_oss_proto_depIdxs = []int32{
1, // 0: conf.OSS.minio:type_name -> conf.OSS.MinIO
2, // 1: conf.OSS.MinIO.tls:type_name -> conf.TLS
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_conf_v1_kratos_conf_oss_proto_init() }
func file_conf_v1_kratos_conf_oss_proto_init() {
if File_conf_v1_kratos_conf_oss_proto != nil {
return
}
file_conf_v1_kratos_conf_tls_proto_init()
file_conf_v1_kratos_conf_oss_proto_msgTypes[0].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_oss_proto_rawDesc), len(file_conf_v1_kratos_conf_oss_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_conf_v1_kratos_conf_oss_proto_goTypes,
DependencyIndexes: file_conf_v1_kratos_conf_oss_proto_depIdxs,
MessageInfos: file_conf_v1_kratos_conf_oss_proto_msgTypes,
}.Build()
File_conf_v1_kratos_conf_oss_proto = out.File
file_conf_v1_kratos_conf_oss_proto_goTypes = nil
file_conf_v1_kratos_conf_oss_proto_depIdxs = nil
}