Files
netris-cdc-file-transfer/proto/local_assets_stream_manager.proto
Lutz Justen 1b8ad0e097 [cdc_stream] Add wildcard support to stop command (#30)
Adds support for stuff like cdc_stream stop * or cdc_stream stop user*:dir*.
2022-12-05 10:09:37 +01:00

76 lines
2.6 KiB
Protocol Buffer

// Copyright 2022 Google LLC
//
// 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 cdc_ft.localassetsstreammanager;
service LocalAssetsStreamManager {
// Start streaming Workstation assets by mounting their directory on a
// gamelet.
rpc StartSession(StartSessionRequest) returns (StartSessionResponse) {}
// Stop streaming assets from the Workstation to the gamelet.
rpc StopSession(StopSessionRequest) returns (StopSessionResponse) {}
}
// NextID: 12
message StartSessionRequest {
// The resource name of the assets streaming target gamelet, in the form
// "organizations/{org-id}/projects/{proj-id}/pools/{pool-id}/gamelets/{gamelet-id}".
// Only used by Stadia. Should set either this or user_host.
string gamelet_name = 5;
// Directory in the local workstation to stream assets from.
string workstation_directory = 2;
// Caller of the StartSession request.
// Only used by Stadia. May be left unspecified.
enum Origin {
ORIGIN_UNKNOWN = 0;
ORIGIN_CLI = 1;
ORIGIN_PARTNER_PORTAL = 2;
}
Origin origin = 6;
// Username and host, in the form [user@]host.
string user_host = 7;
// Remote directory where to mount the streamed directory.
string mount_dir = 8;
// SSH port to use while connecting to the remote instance.
// Optional, falls back to port 22 (default SSH port).
int32 port = 9;
// SSH command to connect to the remote instance.
// Optional, falls back to searching ssh.
string ssh_command = 10;
// SCP command to copy files to the remote instance.
// Optional, falls back to searching scp.
string scp_command = 11;
reserved 1, 3, 4;
}
message StartSessionResponse {}
// NextID: 4
message StopSessionRequest {
// ID of assets streaming target gamelet.
// Only used by Stadia. Should set either this or user_host_dir.
string gamelet_id = 1;
// Username and host, in the form [user@]host. Accepts wildcards * and ?.
string user_host = 2;
// Remote directory where the streamed directory is mounted.
// Accepts wildcards * and ?.
string mount_dir = 3;
}
message StopSessionResponse {}