Skip to content

Commit

Permalink
feat: add download artifacts endpoint to enclave manager (#1730)
Browse files Browse the repository at this point in the history
## Description:


## Is this change user facing?
NO
  • Loading branch information
tedim52 committed Nov 9, 2023
1 parent 298a0a2 commit 3909d5c
Show file tree
Hide file tree
Showing 8 changed files with 453 additions and 138 deletions.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -16,7 +16,8 @@ service KurtosisEnclaveManagerServer {
rpc ListFilesArtifactNamesAndUuids(GetListFilesArtifactNamesAndUuidsRequest) returns (api_container_api.ListFilesArtifactNamesAndUuidsResponse) {};
rpc RunStarlarkPackage(RunStarlarkPackageRequest) returns (stream api_container_api.StarlarkRunResponseLine) {};
rpc CreateEnclave(engine_api.CreateEnclaveArgs) returns (engine_api.CreateEnclaveResponse) {};
rpc InspectFilesArtifactContents(InspectFilesArtifactContentsRequest) returns (api_container_api.InspectFilesArtifactContentsResponse) {}
rpc InspectFilesArtifactContents(InspectFilesArtifactContentsRequest) returns (api_container_api.InspectFilesArtifactContentsResponse) {};
rpc DownloadFilesArtifact(DownloadFilesArtifactRequest) returns (stream api_container_api.StreamedDataChunk) {};
rpc DestroyEnclave(engine_api.DestroyEnclaveArgs) returns (google.protobuf.Empty) {};
rpc GetStarlarkRun(GetStarlarkRunRequest) returns (api_container_api.GetStarlarkRunResponse) {};
}
Expand Down Expand Up @@ -57,6 +58,12 @@ message InspectFilesArtifactContentsRequest {
api_container_api.FilesArtifactNameAndUuid file_names_and_uuid = 3;
}

message DownloadFilesArtifactRequest {
string apic_ip_address = 1;
int32 apic_port = 2;
api_container_api.DownloadFilesArtifactArgs download_files_artifacts_args = 3;
}

message GetStarlarkRunRequest{
string apic_ip_address = 1;
int32 apic_port = 2;
Expand Down
Expand Up @@ -3,10 +3,10 @@
/* eslint-disable */
// @ts-nocheck

import { GetListFilesArtifactNamesAndUuidsRequest, GetServicesRequest, GetStarlarkRunRequest, HealthCheckRequest, HealthCheckResponse, InspectFilesArtifactContentsRequest, RunStarlarkPackageRequest } from "./kurtosis_enclave_manager_api_pb.js";
import { DownloadFilesArtifactRequest, GetListFilesArtifactNamesAndUuidsRequest, GetServicesRequest, GetStarlarkRunRequest, HealthCheckRequest, HealthCheckResponse, InspectFilesArtifactContentsRequest, RunStarlarkPackageRequest } from "./kurtosis_enclave_manager_api_pb.js";
import { Empty, MethodKind } from "@bufbuild/protobuf";
import { CreateEnclaveArgs, CreateEnclaveResponse, DestroyEnclaveArgs, GetEnclavesResponse, GetServiceLogsArgs, GetServiceLogsResponse } from "./engine_service_pb.js";
import { GetServicesResponse, GetStarlarkRunResponse, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, StarlarkRunResponseLine } from "./api_container_service_pb.js";
import { GetServicesResponse, GetStarlarkRunResponse, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, StarlarkRunResponseLine, StreamedDataChunk } from "./api_container_service_pb.js";

/**
* @generated from service kurtosis_enclave_manager.KurtosisEnclaveManagerServer
Expand Down Expand Up @@ -86,6 +86,15 @@ export const KurtosisEnclaveManagerServer = {
O: InspectFilesArtifactContentsResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc kurtosis_enclave_manager.KurtosisEnclaveManagerServer.DownloadFilesArtifact
*/
downloadFilesArtifact: {
name: "DownloadFilesArtifact",
I: DownloadFilesArtifactRequest,
O: StreamedDataChunk,
kind: MethodKind.ServerStreaming,
},
/**
* @generated from rpc kurtosis_enclave_manager.KurtosisEnclaveManagerServer.DestroyEnclave
*/
Expand Down

0 comments on commit 3909d5c

Please sign in to comment.