restoreexec

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package restoreexec contains restore operation execution logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionName

func ActionName(dryRun bool) string

ActionName returns action label used in audit output.

Types

type Options

type Options struct {
	DryRun             bool
	Confirm            bool
	Yes                bool
	AllowEmptySelector bool
	MaxBatch           int
	SessionsRoot       string
	TrashSessionsRoot  string
}

Options controls restore behavior.

type Summary

type Summary struct {
	Action        string
	Simulation    bool
	MatchedCount  int
	Succeeded     int
	Failed        int
	Skipped       int
	AffectedBytes int64
	Results       []session.DeleteResult
	ErrorSummary  string
}

Summary describes restore operation result.

func Execute

func Execute(candidates []session.Session, sel session.Selector, opts Options) (Summary, error)

Execute runs restore over selected candidates.

Jump to

Keyboard shortcuts

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