-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add callback to enable coroutines to shutdown the service
- Loading branch information
1 parent
2b9b7bd
commit ed5a308
Showing
25 changed files
with
151 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
daemons/dataset-reinstaller/src/main/kotlin/vdi/daemon/reinstaller/index.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.daemon.reinstaller | ||
|
||
fun DatasetReinstaller(config: DatasetReinstallerConfig = DatasetReinstallerConfig()): DatasetReinstaller = | ||
DatasetReinstallerImpl(config) | ||
fun DatasetReinstaller( | ||
abortCB: (String?) -> Nothing, | ||
config: DatasetReinstallerConfig = DatasetReinstallerConfig(), | ||
): DatasetReinstaller = | ||
DatasetReinstallerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
daemons/reconciler/src/main/kotlin/vdi/daemon/reconciler/index.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
package vdi.daemon.reconciler | ||
|
||
fun Reconciler(config: ReconcilerConfig = ReconcilerConfig()): Reconciler = ReconcilerImpl(config) | ||
fun Reconciler(abortCB: (String?) -> Nothing, config: ReconcilerConfig = ReconcilerConfig()): Reconciler = | ||
ReconcilerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
lanes/hard-delete/src/main/kotlin/vdi/lane/delete/hard/index.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.lane.delete.hard | ||
|
||
fun HardDeleteTriggerHandler(config: HardDeleteTriggerHandlerConfig = HardDeleteTriggerHandlerConfig()): HardDeleteTriggerHandler = | ||
HardDeleteTriggerHandlerImpl(config) | ||
fun HardDeleteTriggerHandler( | ||
abortCB: (String?) -> Nothing, | ||
config: HardDeleteTriggerHandlerConfig = HardDeleteTriggerHandlerConfig() | ||
): HardDeleteTriggerHandler = | ||
HardDeleteTriggerHandlerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.lane.install | ||
|
||
fun InstallDataTriggerHandler(config: InstallTriggerHandlerConfig = InstallTriggerHandlerConfig()): InstallDataTriggerHandler = | ||
InstallDataTriggerHandlerImpl(config) | ||
fun InstallDataTriggerHandler( | ||
abortCB: (String?) -> Nothing, | ||
config: InstallTriggerHandlerConfig = InstallTriggerHandlerConfig() | ||
): InstallDataTriggerHandler = | ||
InstallDataTriggerHandlerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
lanes/reconciliation/src/main/kotlin/vdi/lane/reconciliation/index.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.lane.reconciliation | ||
|
||
fun ReconciliationEventHandler(config: ReconciliationEventHandlerConfig = ReconciliationEventHandlerConfig()): ReconciliationEventHandler = | ||
ReconciliationEventHandlerImpl(config) | ||
fun ReconciliationEventHandler( | ||
abortCB: (String?) -> Nothing, | ||
config: ReconciliationEventHandlerConfig = ReconciliationEventHandlerConfig() | ||
): ReconciliationEventHandler = | ||
ReconciliationEventHandlerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.lane.sharing | ||
|
||
fun ShareTriggerHandler(config: ShareTriggerHandlerConfig = ShareTriggerHandlerConfig()): ShareTriggerHandler = | ||
ShareTriggerHandlerImpl(config) | ||
fun ShareTriggerHandler( | ||
abortCB: (String?) -> Nothing, | ||
config: ShareTriggerHandlerConfig = ShareTriggerHandlerConfig() | ||
): ShareTriggerHandler = | ||
ShareTriggerHandlerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
lanes/soft-delete/src/main/kotlin/vdi/lane/delete/soft/index.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.lane.delete.soft | ||
|
||
fun SoftDeleteTriggerHandler(config: SoftDeleteTriggerHandlerConfig = SoftDeleteTriggerHandlerConfig()): SoftDeleteTriggerHandler = | ||
SoftDeleteTriggerHandlerImpl(config) | ||
fun SoftDeleteTriggerHandler( | ||
abortCB: (String?) -> Nothing, | ||
config: SoftDeleteTriggerHandlerConfig = SoftDeleteTriggerHandlerConfig() | ||
): SoftDeleteTriggerHandler = | ||
SoftDeleteTriggerHandlerImpl(config, abortCB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package vdi.lane.meta | ||
|
||
fun UpdateMetaTriggerHandler(config: UpdateMetaTriggerHandlerConfig = UpdateMetaTriggerHandlerConfig()): UpdateMetaTriggerHandler = | ||
UpdateMetaTriggerHandlerImpl(config) | ||
fun UpdateMetaTriggerHandler( | ||
abortCB: (String?) -> Nothing, | ||
config: UpdateMetaTriggerHandlerConfig = UpdateMetaTriggerHandlerConfig() | ||
): UpdateMetaTriggerHandler = | ||
UpdateMetaTriggerHandlerImpl(config, abortCB) |
Oops, something went wrong.