Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7850e5e

Browse files
committed
test adding a stream on the server
1 parentdc82ff2 commit7850e5e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

‎provisionerd/proto/provisionerd.proto

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,34 @@ message CompletedJob {
106106
}
107107
}
108108

109+
enumDataUploadType {
110+
UPLOAD_TYPE_UNKNOWN=0;
111+
// UPLOAD_TYPE_MODULE_FILES is used to stream over terraform module files.
112+
// These files are located in `.terraform/modules` and are used for dynamic
113+
// parameters.
114+
UPLOAD_TYPE_MODULE_FILES=1;
115+
}
116+
117+
messageDataUpload {
118+
DataUploadTypeupload_type=1;
119+
// data_hash is the sha256 of the payload to be uploaded.
120+
// This is also used to uniquely identify the upload.
121+
bytesdata_hash=2;
122+
// file_size is the total size of the data being uploaded.
123+
int64file_size=3;
124+
// Number of chunks to be uploaded.
125+
int32chunks=4;
126+
}
127+
128+
// ChunkPiece is used to stream over large files (over the 4mb limit).
129+
messageChunkPiece {
130+
bytesdata=1;
131+
// full_data_hash should match the hash from the original
132+
// DataUpload message
133+
bytesfull_data_hash=2;
134+
int32piece_index=3;
135+
}
136+
109137
// LogSource represents the sender of the log.
110138
enumLogSource {
111139
PROVISIONER_DAEMON=0;
@@ -153,6 +181,14 @@ message CommitQuotaResponse {
153181

154182
messageCancelAcquire {}
155183

184+
messageCompleteWithFilesRequest {
185+
oneoftype {
186+
CompletedJobcomplete=1;
187+
DataUploaddata_upload=2;
188+
ChunkPiecechunk_piece=3;
189+
}
190+
}
191+
156192
serviceProvisionerDaemon {
157193
// AcquireJob requests a job. Implementations should
158194
// hold a lock on the job until CompleteJob() is
@@ -180,4 +216,5 @@ service ProvisionerDaemon {
180216

181217
// CompleteJob indicates a job has been completed.
182218
rpcCompleteJob(CompletedJob)returns (Empty);
219+
rpcCompleteJobWithFiles(streamCompleteWithFilesRequest)returns (Empty);
183220
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp