diff --git a/harmony/src/modules/postgresql/score_public.rs b/harmony/src/modules/postgresql/score_public.rs index 44298cf..66cf1a9 100644 --- a/harmony/src/modules/postgresql/score_public.rs +++ b/harmony/src/modules/postgresql/score_public.rs @@ -37,7 +37,7 @@ impl PublicPostgreSQLScore { } } -impl Score for PublicPostgreSQLScore { +impl Score for PublicPostgreSQLScore { fn create_interpret(&self) -> Box> { let rw_backend = format!("{}-rw", self.config.cluster_name); let tls_route = TlsRoute { @@ -69,21 +69,9 @@ struct PublicPostgreSQLInterpret { } #[async_trait] -impl Interpret +impl Interpret for PublicPostgreSQLInterpret { - fn get_name(&self) -> InterpretName { - InterpretName::Custom("PublicPostgreSQLInterpret") - } - fn get_version(&self) -> Version { - todo!() - } - fn get_status(&self) -> InterpretStatus { - todo!() - } - fn get_children(&self) -> Vec { - todo!() - } async fn execute(&self, _inventory: &Inventory, topo: &T) -> Result { // Deploy CNPG cluster first (creates -rw service) topo.deploy(&self.config) @@ -101,4 +89,17 @@ impl Interpret self.tls_route.hostname ))) } + + fn get_name(&self) -> InterpretName { + InterpretName::Custom("PublicPostgreSQLInterpret") + } + fn get_version(&self) -> Version { + todo!() + } + fn get_status(&self) -> InterpretStatus { + todo!() + } + fn get_children(&self) -> Vec { + todo!() + } }