2022-11-22 18:40:24 +00:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
else:
|
|
|
|
{.push raises: [].}
|
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
import stew/results, chronos
|
|
|
|
import ./driver
|
2022-11-22 18:40:24 +00:00
|
|
|
|
|
|
|
type RetentionPolicyResult*[T] = Result[T, string]
|
|
|
|
|
|
|
|
type RetentionPolicy* = ref object of RootObj
|
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
method execute*(
|
|
|
|
p: RetentionPolicy, store: ArchiveDriver
|
|
|
|
): Future[RetentionPolicyResult[void]] {.base, async.} =
|
|
|
|
discard
|