-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use associated types for the Reconciler trait
Signed-off-by: Xudong Sun <[email protected]>
- Loading branch information
1 parent
c2cfdf9
commit bfde053
Showing
11 changed files
with
77 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,11 @@ verus! { | |
|
||
pub struct FluentBitReconciler {} | ||
|
||
impl Reconciler<FluentBit, FluentBitReconcileState, EmptyType, EmptyType, EmptyAPIShimLayer> for FluentBitReconciler { | ||
impl Reconciler for FluentBitReconciler { | ||
type R = FluentBit; | ||
type T = FluentBitReconcileState; | ||
type ExternalAPIType = EmptyAPIShimLayer; | ||
|
||
open spec fn well_formed(fb: &FluentBit) -> bool { [email protected]_formed() } | ||
|
||
fn reconcile_init_state() -> FluentBitReconcileState { | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,11 @@ verus! { | |
|
||
pub struct FluentBitConfigReconciler {} | ||
|
||
impl Reconciler<FluentBitConfig, FluentBitConfigReconcileState, EmptyType, EmptyType, EmptyAPIShimLayer> for FluentBitConfigReconciler { | ||
impl Reconciler for FluentBitConfigReconciler { | ||
type R = FluentBitConfig; | ||
type T = FluentBitConfigReconcileState; | ||
type ExternalAPIType = EmptyAPIShimLayer; | ||
|
||
open spec fn well_formed(fbc: &FluentBitConfig) -> bool { [email protected]_formed() } | ||
|
||
fn reconcile_init_state() -> FluentBitConfigReconcileState { | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,11 @@ verus! { | |
|
||
pub struct RabbitmqReconciler {} | ||
|
||
impl Reconciler<RabbitmqCluster, RabbitmqReconcileState, EmptyType, EmptyType, EmptyAPIShimLayer> for RabbitmqReconciler { | ||
impl Reconciler for RabbitmqReconciler { | ||
type R = RabbitmqCluster; | ||
type T = RabbitmqReconcileState; | ||
type ExternalAPIType = EmptyAPIShimLayer; | ||
|
||
open spec fn well_formed(rabbitmq: &RabbitmqCluster) -> bool { [email protected]_formed() } | ||
|
||
fn reconcile_init_state() -> RabbitmqReconcileState { | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,11 @@ verus! { | |
|
||
pub struct ZookeeperReconciler {} | ||
|
||
impl Reconciler<ZookeeperCluster, ZookeeperReconcileState, ZKAPIInput, ZKAPIOutput, ZKAPIShimLayer> for ZookeeperReconciler { | ||
impl Reconciler for ZookeeperReconciler { | ||
type R = ZookeeperCluster; | ||
type T = ZookeeperReconcileState; | ||
type ExternalAPIType = ZKAPIShimLayer; | ||
|
||
open spec fn well_formed(zk: &ZookeeperCluster) -> bool { [email protected]_formed() } | ||
|
||
fn reconcile_init_state() -> ZookeeperReconcileState { | ||
|
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
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