Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMongoDBOperationServer(s grpc.ServiceRegistrar, srv MongoDBOperationServer)
- func RegistryGrpcApp()
- type BackupRequest
- func (*BackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BackupRequest) GetBackupFile() string
- func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage
- func (x *BackupRequest) GetUsername() string
- func (*BackupRequest) ProtoMessage()
- func (x *BackupRequest) ProtoReflect() protoreflect.Message
- func (x *BackupRequest) Reset()
- func (x *BackupRequest) String() string
- type MongoDBOperationClient
- type MongoDBOperationServer
- type RestoreRequest
- func (*RestoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreRequest) GetBackupFile() string
- func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage
- func (x *RestoreRequest) GetUsername() string
- func (*RestoreRequest) ProtoMessage()
- func (x *RestoreRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreRequest) Reset()
- func (x *RestoreRequest) String() string
- type SetVariableRequest
- func (*SetVariableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetVariableRequest) GetKey() string
- func (x *SetVariableRequest) GetType() string
- func (x *SetVariableRequest) GetUsername() string
- func (x *SetVariableRequest) GetValue() string
- func (*SetVariableRequest) ProtoMessage()
- func (x *SetVariableRequest) ProtoReflect() protoreflect.Message
- func (x *SetVariableRequest) Reset()
- func (x *SetVariableRequest) String() string
- type UnimplementedMongoDBOperationServer
- func (UnimplementedMongoDBOperationServer) Backup(context.Context, *BackupRequest) (*common.Empty, error)
- func (UnimplementedMongoDBOperationServer) Restore(context.Context, *RestoreRequest) (*common.Empty, error)
- func (UnimplementedMongoDBOperationServer) SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
- type UnsafeMongoDBOperationServer
Constants ¶
const ( MongoDBOperation_Backup_FullMethodName = "/mongodb.MongoDBOperation/Backup" MongoDBOperation_Restore_FullMethodName = "/mongodb.MongoDBOperation/Restore" MongoDBOperation_SetVariable_FullMethodName = "/mongodb.MongoDBOperation/SetVariable" )
Variables ¶
var File_pkg_agent_app_mongodb_pb_mongodb_proto protoreflect.FileDescriptor
var MongoDBOperation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mongodb.MongoDBOperation", HandlerType: (*MongoDBOperationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Backup", Handler: _MongoDBOperation_Backup_Handler, }, { MethodName: "Restore", Handler: _MongoDBOperation_Restore_Handler, }, { MethodName: "SetVariable", Handler: _MongoDBOperation_SetVariable_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/agent/app/mongodb/pb/mongodb.proto", }
MongoDBOperation_ServiceDesc is the grpc.ServiceDesc for MongoDBOperation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMongoDBOperationServer ¶
func RegisterMongoDBOperationServer(s grpc.ServiceRegistrar, srv MongoDBOperationServer)
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"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,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) GetObjectStorage ¶
func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage
func (*BackupRequest) GetUsername ¶
func (x *BackupRequest) GetUsername() string
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 MongoDBOperationClient ¶
type MongoDBOperationClient 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)
}
MongoDBOperationClient is the client API for MongoDBOperation 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.
func NewMongoDBOperationClient ¶
func NewMongoDBOperationClient(cc grpc.ClientConnInterface) MongoDBOperationClient
type MongoDBOperationServer ¶
type MongoDBOperationServer 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
}
MongoDBOperationServer is the server API for MongoDBOperation service. All implementations must embed UnimplementedMongoDBOperationServer for forward compatibility.
type RestoreRequest ¶
type RestoreRequest struct {
BackupFile string `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,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) GetObjectStorage ¶
func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage
func (*RestoreRequest) GetUsername ¶
func (x *RestoreRequest) GetUsername() 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"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // "bool" | "int" | "string" | "float"
// 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) GetType ¶
func (x *SetVariableRequest) GetType() string
func (*SetVariableRequest) GetUsername ¶
func (x *SetVariableRequest) GetUsername() 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 UnimplementedMongoDBOperationServer ¶
type UnimplementedMongoDBOperationServer struct{}
UnimplementedMongoDBOperationServer 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 (UnimplementedMongoDBOperationServer) Backup ¶
func (UnimplementedMongoDBOperationServer) Backup(context.Context, *BackupRequest) (*common.Empty, error)
func (UnimplementedMongoDBOperationServer) Restore ¶
func (UnimplementedMongoDBOperationServer) Restore(context.Context, *RestoreRequest) (*common.Empty, error)
func (UnimplementedMongoDBOperationServer) SetVariable ¶
func (UnimplementedMongoDBOperationServer) SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
type UnsafeMongoDBOperationServer ¶
type UnsafeMongoDBOperationServer interface {
// contains filtered or unexported methods
}
UnsafeMongoDBOperationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MongoDBOperationServer will result in compilation errors.