restore

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWarmUp

func GetWarmUp(warmUp, maxAsyncBatches int) int

GetWarmUp calculates and returns the warm-up value based on the provided warmUp and maxAsyncBatches parameters. If warmUp is 0, it returns one greater than maxAsyncBatches. Otherwise, it returns the warmUp value.

Types

type Service

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

Service represents a type used to handle Aerospike data recovery operations with configurable restore settings.

func NewService

func NewService(
	ctx context.Context,
	params *config.RestoreParams,
	logger *slog.Logger,
) (*Service, error)

NewService initializes and returns a new Service instance, configuring all necessary components for a restore process.

func (*Service) Run

func (r *Service) Run(ctx context.Context) error

Run executes the restore process based on the configured mode, handling ASB, ASBX, or Auto restore modes.

Jump to

Keyboard shortcuts

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