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

Commite50c8c3

Browse files
committed
update proto to reuse
1 parent0ec5d1b commite50c8c3

File tree

2 files changed

+70
-98
lines changed

2 files changed

+70
-98
lines changed

‎provisionerd/proto/provisionerd.proto

Lines changed: 33 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,30 @@ message FailedJob {
7474

7575
// CompletedJob is sent when the provisioner daemon completes a job.
7676
messageCompletedJob {
77-
messageWorkspaceBuild {
78-
bytesstate=1;
79-
repeatedprovisioner.Resourceresources=2;
80-
repeatedprovisioner.Timingtimings=3;
81-
repeatedprovisioner.Modulemodules=4;
82-
repeatedprovisioner.ResourceReplacementresource_replacements=5;
83-
}
84-
messageTemplateImport {
85-
repeatedprovisioner.Resourcestart_resources=1;
86-
repeatedprovisioner.Resourcestop_resources=2;
87-
repeatedprovisioner.RichParameterrich_parameters=3;
88-
repeatedstringexternal_auth_providers_names=4;
89-
repeatedprovisioner.ExternalAuthProviderResourceexternal_auth_providers=5;
90-
repeatedprovisioner.Modulestart_modules=6;
91-
repeatedprovisioner.Modulestop_modules=7;
92-
repeatedprovisioner.Presetpresets=8;
93-
bytesplan=9;
94-
bytesmodule_files=10;
95-
bytesmodule_files_hash=11;
96-
}
97-
messageTemplateDryRun {
98-
repeatedprovisioner.Resourceresources=1;
99-
repeatedprovisioner.Modulemodules=2;
100-
}
77+
messageWorkspaceBuild {
78+
bytesstate=1;
79+
repeatedprovisioner.Resourceresources=2;
80+
repeatedprovisioner.Timingtimings=3;
81+
repeatedprovisioner.Modulemodules=4;
82+
repeatedprovisioner.ResourceReplacementresource_replacements=5;
83+
}
84+
messageTemplateImport {
85+
repeatedprovisioner.Resourcestart_resources=1;
86+
repeatedprovisioner.Resourcestop_resources=2;
87+
repeatedprovisioner.RichParameterrich_parameters=3;
88+
repeatedstringexternal_auth_providers_names=4;
89+
repeatedprovisioner.ExternalAuthProviderResourceexternal_auth_providers=5;
90+
repeatedprovisioner.Modulestart_modules=6;
91+
repeatedprovisioner.Modulestop_modules=7;
92+
repeatedprovisioner.Presetpresets=8;
93+
bytesplan=9;
94+
bytesmodule_files=10;
95+
bytesmodule_files_hash=11;
96+
}
97+
messageTemplateDryRun {
98+
repeatedprovisioner.Resourceresources=1;
99+
repeatedprovisioner.Modulemodules=2;
100+
}
101101

102102
stringjob_id=1;
103103
oneoftype {
@@ -107,34 +107,6 @@ message CompletedJob {
107107
}
108108
}
109109

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

185157
messageUploadFileRequest {
186-
oneoftype {
187-
DataUploaddata_upload=1;
188-
ChunkPiecechunk_piece=2;
189-
}
158+
oneoftype {
159+
provisioner.DataUploaddata_upload=1;
160+
provisioner.ChunkPiecechunk_piece=2;
161+
}
190162
}
191163

192164
serviceProvisionerDaemon {
@@ -214,10 +186,10 @@ service ProvisionerDaemon {
214186
// FailJob indicates a job has failed.
215187
rpcFailJob(FailedJob)returns (Empty);
216188

217-
// CompleteJob indicates a job has been completed.
218-
rpcCompleteJob(CompletedJob)returns (Empty);
189+
// CompleteJob indicates a job has been completed.
190+
rpcCompleteJob(CompletedJob)returns (Empty);
219191

220-
// UploadFile streams files to be inserted into the database.
221-
// The file upload_type should be used to determine how to handle the file.
222-
rpcUploadFile(streamUploadFileRequest)returns (Empty);
192+
// UploadFile streams files to be inserted into the database.
193+
// The file upload_type should be used to determine how to handle the file.
194+
rpcUploadFile(streamUploadFileRequest)returns (Empty);
223195
}

‎provisionersdk/proto/provisioner.proto

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -361,18 +361,18 @@ message ParseComplete {
361361

362362
// PlanRequest asks the provisioner to plan what resources & parameters it will create
363363
messagePlanRequest {
364-
Metadatametadata=1;
365-
repeatedRichParameterValuerich_parameter_values=2;
366-
repeatedVariableValuevariable_values=3;
367-
repeatedExternalAuthProviderexternal_auth_providers=4;
368-
repeatedRichParameterValueprevious_parameter_values=5;
364+
Metadatametadata=1;
365+
repeatedRichParameterValuerich_parameter_values=2;
366+
repeatedVariableValuevariable_values=3;
367+
repeatedExternalAuthProviderexternal_auth_providers=4;
368+
repeatedRichParameterValueprevious_parameter_values=5;
369369

370-
// If true, the provisioner can safely assume the caller does not need the
371-
// module files downloaded by the `terraform init` command.
372-
// Ideally this boolean would be flipped in its truthy value, however for
373-
// backwards compatibility reasons, the zero value should be the previous
374-
// behavior of downloading the module files.
375-
boolomit_module_files=6;
370+
// If true, the provisioner can safely assume the caller does not need the
371+
// module files downloaded by the `terraform init` command.
372+
// Ideally this boolean would be flipped in its truthy value, however for
373+
// backwards compatibility reasons, the zero value should be the previous
374+
// behavior of downloading the module files.
375+
boolomit_module_files=6;
376376
}
377377

378378
// PlanComplete indicates a request to plan completed.
@@ -435,42 +435,42 @@ message Request {
435435
}
436436

437437
messageResponse {
438-
oneoftype {
439-
Loglog=1;
440-
ParseCompleteparse=2;
441-
PlanCompleteplan=3;
442-
ApplyCompleteapply=4;
443-
DataUploaddata_upload=5;
444-
ChunkPiecechunk_piece=6;
445-
}
438+
oneoftype {
439+
Loglog=1;
440+
ParseCompleteparse=2;
441+
PlanCompleteplan=3;
442+
ApplyCompleteapply=4;
443+
DataUploaddata_upload=5;
444+
ChunkPiecechunk_piece=6;
445+
}
446446
}
447447

448448
enumDataUploadType {
449-
UPLOAD_TYPE_UNKNOWN=0;
450-
// UPLOAD_TYPE_MODULE_FILES is used to stream over terraform module files.
451-
// These files are located in `.terraform/modules` and are used for dynamic
452-
// parameters.
453-
UPLOAD_TYPE_MODULE_FILES=1;
449+
UPLOAD_TYPE_UNKNOWN=0;
450+
// UPLOAD_TYPE_MODULE_FILES is used to stream over terraform module files.
451+
// These files are located in `.terraform/modules` and are used for dynamic
452+
// parameters.
453+
UPLOAD_TYPE_MODULE_FILES=1;
454454
}
455455

456456
messageDataUpload {
457-
DataUploadTypeupload_type=1;
458-
// data_hash is the sha256 of the payload to be uploaded.
459-
// This is also used to uniquely identify the upload.
460-
bytesdata_hash=2;
461-
// file_size is the total size of the data being uploaded.
462-
int64file_size=3;
463-
// Number of chunks to be uploaded.
464-
int32chunks=4;
457+
DataUploadTypeupload_type=1;
458+
// data_hash is the sha256 of the payload to be uploaded.
459+
// This is also used to uniquely identify the upload.
460+
bytesdata_hash=2;
461+
// file_size is the total size of the data being uploaded.
462+
int64file_size=3;
463+
// Number of chunks to be uploaded.
464+
int32chunks=4;
465465
}
466466

467467
// ChunkPiece is used to stream over large files (over the 4mb limit).
468468
messageChunkPiece {
469-
bytesdata=1;
470-
// full_data_hash should match the hash from the original
471-
// DataUpload message
472-
bytesfull_data_hash=2;
473-
int32piece_index=3;
469+
bytesdata=1;
470+
// full_data_hash should match the hash from the original
471+
// DataUpload message
472+
bytesfull_data_hash=2;
473+
int32piece_index=3;
474474
}
475475

476476
serviceProvisioner {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp