Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add download artifacts endpoint to enclave manager #1730

Merged
merged 7 commits into from Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

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