Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a struct that manages the pruning of old versions of the SC and SS.
func NewManager ¶
func NewManager(scPruner, ssPruner store.Pruner, scPruningOption, ssPruningOption *store.PruningOption) *Manager
NewManager creates a new Pruning Manager.
func (*Manager) Prune ¶
Prune prunes the SC and SS to the provided version.
NOTE: It can be called outside of the store manually.
func (*Manager) SignalCommit ¶
SignalCommit signals to the manager that a commit has started or finished. It is used to trigger the pruning of the SC and SS. It pauses or resumes the pruning of the SC and SS if the pruner implements the PausablePruner interface.
Click to show internal directories.
Click to hide internal directories.