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

Add XdsConfigControlService proto from psm-interop #162

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions grpc/testing/xdsconfig/xdsconfig.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// Copyright 2024 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package grpc.testing.xdsconfig;

option go_package = "grpc/interop/grpc_testing/xdsconfig";

import "google/protobuf/any.proto";

// Request the server to stop on recieving request for the resource with
// provided type and name
message StopOnRequestRequest {
string type_url = 1;
string name = 2;
};

// Response to a request to stop server on specific resource request. Contains
// a list of resources would cause the server to stop
message StopOnRequestResponse {
message ResourceFilter {
string type_url = 1;
string name = 2;
};

repeated ResourceFilter filters = 1;
};

// Request to set one or more resources.
message SetResourcesRequest {
message ResourceToSet {
// Resource type
string type_url = 1;
// Resource name
string name = 2;
// Optional resource contents. Resource is removed if not provided.
optional google.protobuf.Any body = 3;
};
repeated ResourceToSet resources = 1;
}

// Response to request to set resource. Contains all xDS resources from the
// server
message SetResourcesResponse {
repeated google.protobuf.Any resource = 1;
};

// Service to control the control plane from the test script
service XdsConfigControlService {
// Instructs the server to exit when given resource is requested
rpc StopOnRequest(StopOnRequestRequest) returns (StopOnRequestResponse);
// A generic way to set xDS resources
rpc SetResources(SetResourcesRequest) returns (SetResourcesResponse);
};
Loading