Skip to content

Commit

Permalink
Merge pull request #12 from depot/feat/reset-project-cache
Browse files Browse the repository at this point in the history
feat: add API to reset project cache
  • Loading branch information
goller authored Aug 28, 2024
2 parents cf05805 + 2b35b41 commit 82596d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proto/depot/core/v1/project.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ service ProjectService {
// Delete a project
rpc DeleteProject(DeleteProjectRequest) returns (DeleteProjectResponse) {}

// Reset a project will terminate all machines and delete all cached data.
rpc ResetProject(ResetProjectRequest) returns (ResetProjectResponse) {}

// List project's trust policies.
rpc ListTrustPolicies(ListTrustPoliciesRequest) returns (ListTrustPoliciesResponse) {}

Expand Down Expand Up @@ -95,6 +98,12 @@ message DeleteProjectRequest {

message DeleteProjectResponse {}

message ResetProjectRequest {
string project_id = 1;
}

message ResetProjectResponse {}

message CachePolicy {
optional int64 keep_bytes = 1 [deprecated = true];
int32 keep_days = 2;
Expand Down

0 comments on commit 82596d0

Please sign in to comment.