github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/fs/cutoffmode.go (about)

     1  package fs
     2  
     3  type cutoffModeChoices struct{}
     4  
     5  func (cutoffModeChoices) Choices() []string {
     6  	return []string{
     7  		CutoffModeHard:     "HARD",
     8  		CutoffModeSoft:     "SOFT",
     9  		CutoffModeCautious: "CAUTIOUS",
    10  	}
    11  }
    12  
    13  // CutoffMode describes the possible delete modes in the config
    14  type CutoffMode = Enum[cutoffModeChoices]
    15  
    16  // CutoffMode constants
    17  const (
    18  	CutoffModeHard CutoffMode = iota
    19  	CutoffModeSoft
    20  	CutoffModeCautious
    21  	CutoffModeDefault = CutoffModeHard
    22  )