reverter

package
v0.0.0-...-ea924cd Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostDisabler

type HostDisabler interface {
	Disable(hostConfigPath string) error
}

type Reverter

type Reverter interface {
	BackupFile(filePath string) error
	BackupFiles(filePaths []string) error
	AddFileToDeletion(filePath string)
	AddHostConfigToDisable(configPath string)
	Commit() error
	Rollback() error
}

func GetConfigReveter

func GetConfigReveter(hostDisabler HostDisabler, logger logger.LoggerInterface) Reverter

Jump to

Keyboard shortcuts

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