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
Click to show internal directories.
Click to hide internal directories.