Skip to content

Commit

Permalink
feat: add labels to list-resource request (goto#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
spy16 authored Apr 5, 2023
1 parent b627c84 commit 1d611a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gotocompany/entropy/v1beta1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ message ResourceState {
google.protobuf.Value output = 2;
bytes module_data = 3;
LogOptions log_options = 4;

// information about the ongoing sync process.
// if status is ERROR / PENDING, this value can be used to understand
// the issue.
int32 sync_retries = 5;
string sync_last_error = 6;
google.protobuf.Timestamp next_sync_at = 7;
}

message Resource {
Expand All @@ -120,6 +127,10 @@ message Resource {
message ListResourcesRequest {
string project = 1;
string kind = 2;

// filter by labels. if specified, only resources with all the
// given labels will be returned.
map<string, string> labels = 3;
}

message ListResourcesResponse {
Expand Down

0 comments on commit 1d611a9

Please sign in to comment.