-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathcommand_svc.proto
21 lines (16 loc) · 1010 Bytes
/
command_svc.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
syntax = "proto3";
package f5.nginx.agent.sdk;
import "command.proto";
option go_package = "github.com/nginx/agent/sdk/v2/proto;proto";
// Represents a service used to sent command messages between the management server and the agent.
service Commander {
// A Bidirectional streaming RPC established by the agent and is kept open
rpc CommandChannel(stream Command) returns (stream Command) {}
// A streaming RPC established by the agent and is used to download resources associated with commands
// The download stream will be kept open for the duration of the data transfer and will be closed when its done.
// The transfer is a stream of chunks as follows: header -> data chunk 1 -> data chunk N.
// Each data chunk is of a size smaller than the maximum gRPC payload
rpc Download(DownloadRequest) returns (stream DataChunk) {}
// A streaming RPC established by the agent and is used to upload resources associated with commands
rpc Upload(stream DataChunk) returns (UploadStatus) {}
}