2020-02-25 18:03:21 +01:00
|
|
|
package fs
|
|
|
|
|
2023-09-27 16:31:47 +02:00
|
|
|
type cutoffModeChoices struct{}
|
|
|
|
|
|
|
|
func (cutoffModeChoices) Choices() []string {
|
|
|
|
return []string{
|
|
|
|
CutoffModeHard: "HARD",
|
|
|
|
CutoffModeSoft: "SOFT",
|
|
|
|
CutoffModeCautious: "CAUTIOUS",
|
|
|
|
}
|
|
|
|
}
|
2020-02-25 18:03:21 +01:00
|
|
|
|
|
|
|
// CutoffMode describes the possible delete modes in the config
|
2023-09-27 16:31:47 +02:00
|
|
|
type CutoffMode = Enum[cutoffModeChoices]
|
2020-02-25 18:03:21 +01:00
|
|
|
|
2023-09-27 16:31:47 +02:00
|
|
|
// CutoffMode constants
|
2020-02-25 18:03:21 +01:00
|
|
|
const (
|
|
|
|
CutoffModeHard CutoffMode = iota
|
|
|
|
CutoffModeSoft
|
|
|
|
CutoffModeCautious
|
|
|
|
CutoffModeDefault = CutoffModeHard
|
|
|
|
)
|