milvus

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MilvusOperation_Backup_FullMethodName      = "/milvus.MilvusOperation/Backup"
	MilvusOperation_Restore_FullMethodName     = "/milvus.MilvusOperation/Restore"
	MilvusOperation_SetVariable_FullMethodName = "/milvus.MilvusOperation/SetVariable"
)

Variables

View Source
var File_pkg_agent_app_milvus_pb_milvus_proto protoreflect.FileDescriptor
View Source
var MilvusOperation_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "milvus.MilvusOperation",
	HandlerType: (*MilvusOperationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Backup",
			Handler:    _MilvusOperation_Backup_Handler,
		},
		{
			MethodName: "Restore",
			Handler:    _MilvusOperation_Restore_Handler,
		},
		{
			MethodName: "SetVariable",
			Handler:    _MilvusOperation_SetVariable_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/agent/app/milvus/pb/milvus.proto",
}

MilvusOperation_ServiceDesc is the grpc.ServiceDesc for MilvusOperation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMilvusOperationServer

func RegisterMilvusOperationServer(s grpc.ServiceRegistrar, srv MilvusOperationServer)

func RegistryGrpcApp

func RegistryGrpcApp()

Types

type BackupRequest

type BackupRequest struct {
	BackupFile     string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	BackupRootPath string                `protobuf:"bytes,2,opt,name=backup_root_path,json=backupRootPath,proto3" json:"backup_root_path,omitempty"`
	ObjectStorage  *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupRequest) Descriptor deprecated

func (*BackupRequest) Descriptor() ([]byte, []int)

Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.

func (*BackupRequest) GetBackupFile

func (x *BackupRequest) GetBackupFile() string

func (*BackupRequest) GetBackupRootPath

func (x *BackupRequest) GetBackupRootPath() string

func (*BackupRequest) GetObjectStorage

func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage

func (*BackupRequest) ProtoMessage

func (*BackupRequest) ProtoMessage()

func (*BackupRequest) ProtoReflect

func (x *BackupRequest) ProtoReflect() protoreflect.Message

func (*BackupRequest) Reset

func (x *BackupRequest) Reset()

func (*BackupRequest) String

func (x *BackupRequest) String() string

type MilvusOperationClient

type MilvusOperationClient interface {
	Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*common.Empty, error)
	Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*common.Empty, error)
	SetVariable(ctx context.Context, in *SetVariableRequest, opts ...grpc.CallOption) (*common.Empty, error)
}

MilvusOperationClient is the client API for MilvusOperation service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type MilvusOperationServer

type MilvusOperationServer interface {
	Backup(context.Context, *BackupRequest) (*common.Empty, error)
	Restore(context.Context, *RestoreRequest) (*common.Empty, error)
	SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
	// contains filtered or unexported methods
}

MilvusOperationServer is the server API for MilvusOperation service. All implementations must embed UnimplementedMilvusOperationServer for forward compatibility.

type OpsConfig

type OpsConfig struct {
	LogMount    string `env:"LOG_MOUNT,required"`
	SecretMount string `env:"SECRET_MOUNT,required"`

	MilvusPort     string `env:"MILVUS_PORT,required"`
	MilvusUser     string `env:"MILVUS_USER,required"`
	MilvusPassword string

	MinioAddress  string `env:"MINIO_ADDR,required"`
	MinioPort     string `env:"MINIO_PORT,required"`
	MinioUser     string `env:"MINIO_USER,required"`
	MinioPassword string
	MinioBucket   string `env:"MINIO_BUCKET,required"`

	BackupAddress  string
	BackupPort     string
	BackupUser     string
	BackupPassword string
	BackupBucket   string
	BackupSSL      bool

	BackupRootPath string
}

type RestoreRequest

type RestoreRequest struct {
	BackupFile     string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	BackupRootPath string                `protobuf:"bytes,2,opt,name=backup_root_path,json=backupRootPath,proto3" json:"backup_root_path,omitempty"`
	Suffix         string                `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
	ObjectStorage  *common.ObjectStorage `protobuf:"bytes,4,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

func (*RestoreRequest) Descriptor deprecated

func (*RestoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead.

func (*RestoreRequest) GetBackupFile

func (x *RestoreRequest) GetBackupFile() string

func (*RestoreRequest) GetBackupRootPath

func (x *RestoreRequest) GetBackupRootPath() string

func (*RestoreRequest) GetObjectStorage

func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage

func (*RestoreRequest) GetSuffix

func (x *RestoreRequest) GetSuffix() string

func (*RestoreRequest) ProtoMessage

func (*RestoreRequest) ProtoMessage()

func (*RestoreRequest) ProtoReflect

func (x *RestoreRequest) ProtoReflect() protoreflect.Message

func (*RestoreRequest) Reset

func (x *RestoreRequest) Reset()

func (*RestoreRequest) String

func (x *RestoreRequest) String() string

type SetVariableRequest

type SetVariableRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SetVariableRequest) Descriptor deprecated

func (*SetVariableRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetVariableRequest.ProtoReflect.Descriptor instead.

func (*SetVariableRequest) GetKey

func (x *SetVariableRequest) GetKey() string

func (*SetVariableRequest) GetValue

func (x *SetVariableRequest) GetValue() string

func (*SetVariableRequest) ProtoMessage

func (*SetVariableRequest) ProtoMessage()

func (*SetVariableRequest) ProtoReflect

func (x *SetVariableRequest) ProtoReflect() protoreflect.Message

func (*SetVariableRequest) Reset

func (x *SetVariableRequest) Reset()

func (*SetVariableRequest) String

func (x *SetVariableRequest) String() string

type UnimplementedMilvusOperationServer

type UnimplementedMilvusOperationServer struct{}

UnimplementedMilvusOperationServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMilvusOperationServer) Backup

func (UnimplementedMilvusOperationServer) Restore

func (UnimplementedMilvusOperationServer) SetVariable

type UnsafeMilvusOperationServer

type UnsafeMilvusOperationServer interface {
	// contains filtered or unexported methods
}

UnsafeMilvusOperationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MilvusOperationServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL