mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-06 14:16:51 +08:00
Added endpoint to list files.
This commit is contained in:
@@ -137,6 +137,12 @@ service WorkflowService {
|
||||
get: "/apis/v1beta1/{namespace}/workflow_executions/{name}/artifacts/{key=**}"
|
||||
};
|
||||
}
|
||||
|
||||
rpc ListFiles (ListFilesRequest) returns (ListFilesResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/apis/v1beta1/{namespace}/workflow_executions/{name}/files/{path=**}"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message CreateWorkflowExecutionRequest {
|
||||
@@ -230,3 +236,22 @@ message WorkflowExecutionParameter {
|
||||
message ArtifactResponse {
|
||||
bytes data = 1;
|
||||
}
|
||||
|
||||
message File {
|
||||
string path = 1;
|
||||
string name = 2;
|
||||
int64 size = 3;
|
||||
string contentType = 4;
|
||||
string lastModified = 5;
|
||||
bool directory = 6;
|
||||
}
|
||||
|
||||
message ListFilesRequest {
|
||||
string namespace = 1;
|
||||
string name = 2;
|
||||
string path = 3;
|
||||
}
|
||||
|
||||
message ListFilesResponse {
|
||||
repeated File files = 1;
|
||||
}
|
Reference in New Issue
Block a user