rollback

package
v1.58.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package rollback provides structures and interfaces for rolling back actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rollbacker

type Rollbacker interface {
	// AppendAction saves the action so that it can be rolled back later.
	AppendAction(action action.RollbackableAction)
	// Backup backs up the current installation
	Backup() error
	// Rollback undoes the actions recorded by AppendAction.
	Rollback()
}

Rollbacker is an interface that performs rollback/backup actions.

func NewRollbacker

func NewRollbacker(logger *zap.Logger, installDir string) Rollbacker

NewRollbacker returns a new Rollbacker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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