deletionmode

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownMode = errors.New("unknown deletion mode")
)

Functions

func AllModes

func AllModes() []string

func Enabled

func Enabled(in string) (bool, error)

Types

type Mode

type Mode int16
const (
	Disabled Mode = iota
	FilterOnly
	FilterAndDelete
)

func ParseMode

func ParseMode(in string) (Mode, error)

func (Mode) DeleteEnabled

func (m Mode) DeleteEnabled() bool

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

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