2014-03-13 19:06:26 -04:00
|
|
|
{- Enumeration of cleanup actions
|
|
|
|
-
|
2020-12-11 15:28:58 -04:00
|
|
|
- Copyright 2014-2020 Joey Hess <id@joeyh.name>
|
2014-03-13 19:06:26 -04:00
|
|
|
-
|
2019-03-13 15:48:14 -04:00
|
|
|
- Licensed under the GNU AGPL version 3 or higher.
|
2014-03-13 19:06:26 -04:00
|
|
|
-}
|
|
|
|
|
|
|
|
module Types.CleanupActions where
|
|
|
|
|
|
|
|
import Types.UUID
|
2014-12-16 23:22:46 -04:00
|
|
|
import Utility.Url
|
|
|
|
|
2020-12-11 15:28:58 -04:00
|
|
|
import System.Process (Pid)
|
|
|
|
|
2014-03-13 19:06:26 -04:00
|
|
|
data CleanupAction
|
|
|
|
= RemoteCleanup UUID
|
|
|
|
| StopHook UUID
|
|
|
|
| FsckCleanup
|
2014-03-13 19:30:13 -04:00
|
|
|
| SshCachingCleanup
|
2020-11-16 14:09:55 -04:00
|
|
|
| AdjustedBranchUpdate
|
2014-12-16 23:22:46 -04:00
|
|
|
| TorrentCleanup URLString
|
2019-01-17 15:40:44 -04:00
|
|
|
| OtherTmpCleanup
|
2014-03-13 19:06:26 -04:00
|
|
|
deriving (Eq, Ord)
|
2020-12-11 15:28:58 -04:00
|
|
|
|
|
|
|
data SignalAction
|
|
|
|
= PropagateSignalProcessGroup Pid
|
|
|
|
deriving (Eq, Ord)
|