Files
netris-cdc-file-transfer/proto/local_assets_stream_manager.proto
Lutz Justen f8438aec66 [cdc_rsync] [cdc_stream] Remove SSH port argument (#41)
This CL removes the port arguments for both tools.

The port argument can also be specified via the ssh-command and
scp-command flags. In fact, if a port is specified by both port flags
and ssh/scp commands, they interfere with each other. For ssh, the one
specified in ssh-command wins. For scp, the one specified in
scp-command wins. To fix this, one would have to parse scp-command and
remove the port arg there. Or we could just remove the ssh-port arg.
This is what this CL does. Note that if you need a custom port, it's
very likely that you also have to define custom ssh and scp commands.
2022-12-12 10:58:33 +01:00

73 lines
2.4 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 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, 9;
}
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 {}