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