backup

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represents a struct that encapsulates components for backup and logging functionalities. It is responsible for managing backup clients, configurations, and related components with additional operational parameters.

func NewService

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

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

func (*Service) Run

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

Run executes the backup process for the Service based on its configuration and context, handling both XDR and scan backups. Returns an error if the backup process encounters issues.

Jump to

Keyboard shortcuts

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