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