handlers

package
v0.0.0-...-f9144f1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupScheduleHandler

func BackupScheduleHandler(
	ctx context.Context,
	driver db.DBConnector,
	schedule types.BackupSchedule,
	now time.Time,
	clientConn client.ClientConnector,
	s3 config.S3Config,
	clientConfig config.ClientConnectionConfig,
	queryBuilderFactory queries.WriteQueryBulderFactory,
) error

func CancelYdbOperation

func CancelYdbOperation(
	ctx context.Context, client client.ClientConnector, conn *ydb.Driver,
	operation types.Operation, ydbOperationId string, reason string,
) error

func DBOperationHandler

func DBOperationHandler(
	ctx context.Context,
	operation types.Operation,
	db db.DBConnector,
	s3 s3.S3Connector,
	config config.Config,
	queryBuilderFactory queries.WriteQueryBulderFactory,
) error

func DeleteBackupData

func DeleteBackupData(s3 s3.S3Connector, s3PathPrefix string, s3Bucket string) error

func NewDBOperationHandler

func NewDBOperationHandler(
	db db.DBConnector,
	s3 s3.S3Connector,
	config config.Config,
	queryBulderFactory queries.WriteQueryBulderFactory,
) types.OperationHandler

func NewRBOperationHandler

func NewRBOperationHandler(
	db db.DBConnector, client client.ClientConnector, config config.Config,
) types.OperationHandler

func NewTBOperationHandler

func NewTBOperationHandler(
	db db.DBConnector, client client.ClientConnector, s3 s3.S3Connector, config config.Config,
	queryBulderFactory queries.WriteQueryBulderFactory,
) types.OperationHandler

func RBOperationHandler

func RBOperationHandler(
	ctx context.Context,
	operation types.Operation,
	db db.DBConnector,
	client client.ClientConnector,
	config config.Config,
) error

func TBOperationHandler

func TBOperationHandler(
	ctx context.Context,
	operation types.Operation,
	db db.DBConnector,
	client client.ClientConnector,
	s3 s3.S3Connector,
	config config.Config,
	queryBuilderFactory queries.WriteQueryBulderFactory,
) error

Types

type BackupScheduleHandlerType

type BackupScheduleHandlerType func(context.Context, db.DBConnector, types.BackupSchedule, time.Time) error

func NewBackupScheduleHandler

func NewBackupScheduleHandler(
	clientConn client.ClientConnector,
	s3 config.S3Config,
	clientConfig config.ClientConnectionConfig,
	queryBuilderFactory queries.WriteQueryBulderFactory,
) BackupScheduleHandlerType

type LookupYdbOperationResponse

type LookupYdbOperationResponse struct {
	// contains filtered or unexported fields
}

func (*LookupYdbOperationResponse) IssueString

func (r *LookupYdbOperationResponse) IssueString() string

Jump to

Keyboard shortcuts

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