Skip to content

Commit

Permalink
chore: include get_all_schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
v3g42 committed Oct 8, 2023
1 parent 8c12378 commit dd7db05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dozer-cli/src/live/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod downloader;
mod errors;
mod server;
mod state;
pub mod state;
mod watcher;
use self::state::LiveState;
use crate::{cli::types::Live, live::server::LIVE_PORT};
Expand Down
4 changes: 2 additions & 2 deletions dozer-cli/src/live/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ fn get_contract(dozer_and_contract: &Option<DozerAndContract>) -> Result<&Contra
.ok_or(LiveError::NotInitialized)
}

async fn create_contract(dozer: SimpleOrchestrator) -> Result<Contract, OrchestrationError> {
pub async fn create_contract(dozer: SimpleOrchestrator) -> Result<Contract, OrchestrationError> {
let dag = create_dag(&dozer).await?;
let version = dozer.config.version;
let schemas = DagSchemas::new(dag)?;
Expand All @@ -327,7 +327,7 @@ async fn create_contract(dozer: SimpleOrchestrator) -> Result<Contract, Orchestr
Ok(contract)
}

async fn create_dag(dozer: &SimpleOrchestrator) -> Result<Dag, OrchestrationError> {
pub async fn create_dag(dozer: &SimpleOrchestrator) -> Result<Dag, OrchestrationError> {
let endpoint_and_logs = dozer
.config
.endpoints
Expand Down
10 changes: 10 additions & 0 deletions dozer-types/protos/cloud.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ service DozerCloud {
rpc delete_version(DeleteVersionRequest) returns (DeleteVersionResponse);
rpc list_files(ListFilesRequest) returns (ListFilesResponse);
rpc get_configuration(GetConfigurationRequest) returns (GetConfigurationResponse);
rpc get_all_schemas(GetAllSchemasRequest) returns (GetAllSchemasResponse);

// returns a list of all the steps for a deployment
rpc get_deployment_status(GetDeploymentStatusRequest) returns (GetDeploymentStatusResponse);
Expand Down Expand Up @@ -121,6 +122,15 @@ message ListAppResponse {
Pagination pagination = 2;
}

message GetAllSchemasRequest {
string yaml = 1;
}

message GetAllSchemasResponse {
map<string, dozer.types.SchemasResponse> connections = 1;
dozer.types.SchemasResponse endpoints = 2;
}

message UpdateAppRequest {
string app_id = 1;
repeated File files = 2;
Expand Down

0 comments on commit dd7db05

Please sign in to comment.