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

Commit3696f97

Browse files
committed
feat: provisioners to stream over modules >4mb limit
1 parentd47a53d commit3696f97

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

‎provisionersdk/proto/provisioner.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,37 @@ message Response {
433433
ParseCompleteparse=2;
434434
PlanCompleteplan=3;
435435
ApplyCompleteapply=4;
436+
DataUploaddata_upload=5;
436437
}
437438
}
438439

440+
enumDataUploadType {
441+
UPLOAD_TYPE_UNKNOWN=0;
442+
// UPLOAD_TYPE_MODULE_FILES is used to stream over terraform module files.
443+
// These files are located in `.terraform/modules` and are used for dynamic
444+
// parameters.
445+
UPLOAD_TYPE_MODULE_FILES=1;
446+
}
447+
448+
messageDataUpload {
449+
DataUploadTypeupload_type=1;
450+
// data_hash is the sha256 of the payload to be uploaded.
451+
// This is also used to uniquely identify the upload.
452+
stringdata_hash=2;
453+
// file_size is the total size of the data being uploaded.
454+
int64file_size=3;
455+
// Number of chunks to be uploaded.
456+
int32chunks=4;
457+
}
458+
459+
// ChunkPiece is used to stream over large files (over the 4mb limit).
460+
messageChunkPiece {
461+
bytesdata=1;
462+
stringupload_type=2;
463+
stringdata_hash=3;
464+
int32piece_index=4;
465+
}
466+
439467
serviceProvisioner {
440468
// Session represents provisioning a single template import or workspace. The daemon always sends Config followed
441469
// by one of the requests (ParseRequest, PlanRequest, ApplyRequest). The provisioner should respond with a stream

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp