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

Commitdb8d5ae

Browse files
authored
chore: set .proto files to 2 spaces in editor config (#18305)
https://protobuf.dev/programming-guides/style/2 spaces
1 parentae0c870 commitdb8d5ae

File tree

3 files changed

+411
-407
lines changed

3 files changed

+411
-407
lines changed

‎.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ indent_style = tab
1111
indent_style =space
1212
indent_size =2
1313

14+
[*.proto]
15+
indent_style =space
16+
indent_size =2
17+
1418
[coderd/database/dump.sql]
1519
indent_style =space
1620
indent_size =4

‎provisionerd/proto/provisionerd.proto

Lines changed: 135 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -11,173 +11,173 @@ message Empty {}
1111

1212
// AcquiredJob is returned when a provisioner daemon has a job locked.
1313
messageAcquiredJob {
14-
messageWorkspaceBuild {
15-
reserved3;
16-
17-
stringworkspace_build_id=1;
18-
stringworkspace_name=2;
19-
repeatedprovisioner.RichParameterValuerich_parameter_values=4;
20-
repeatedprovisioner.VariableValuevariable_values=5;
21-
repeatedprovisioner.ExternalAuthProviderexternal_auth_providers=6;
22-
provisioner.Metadatametadata=7;
23-
bytesstate=8;
24-
stringlog_level=9;
25-
// previous_parameter_values is used to pass the values of the previous
26-
// workspace build. Omit these values if the workspace is being created
27-
// for the first time.
28-
repeatedprovisioner.RichParameterValueprevious_parameter_values=10;
29-
}
30-
messageTemplateImport {
31-
provisioner.Metadatametadata=1;
32-
repeatedprovisioner.VariableValueuser_variable_values=2;
33-
}
34-
messageTemplateDryRun {
35-
reserved1;
36-
37-
repeatedprovisioner.RichParameterValuerich_parameter_values=2;
38-
repeatedprovisioner.VariableValuevariable_values=3;
39-
provisioner.Metadatametadata=4;
40-
}
41-
42-
stringjob_id=1;
43-
int64created_at=2;
44-
stringprovisioner=3;
45-
stringuser_name=4;
46-
bytestemplate_source_archive=5;
47-
oneoftype {
48-
WorkspaceBuildworkspace_build=6;
49-
TemplateImporttemplate_import=7;
50-
TemplateDryRuntemplate_dry_run=8;
51-
}
52-
// trace_metadata is currently used for tracing information only. It allows
53-
// jobs to be tied to the request that created them.
54-
map<string,string>trace_metadata=9;
14+
messageWorkspaceBuild {
15+
reserved3;
16+
17+
stringworkspace_build_id=1;
18+
stringworkspace_name=2;
19+
repeatedprovisioner.RichParameterValuerich_parameter_values=4;
20+
repeatedprovisioner.VariableValuevariable_values=5;
21+
repeatedprovisioner.ExternalAuthProviderexternal_auth_providers=6;
22+
provisioner.Metadatametadata=7;
23+
bytesstate=8;
24+
stringlog_level=9;
25+
// previous_parameter_values is used to pass the values of the previous
26+
// workspace build. Omit these values if the workspace is being created
27+
// for the first time.
28+
repeatedprovisioner.RichParameterValueprevious_parameter_values=10;
29+
}
30+
messageTemplateImport {
31+
provisioner.Metadatametadata=1;
32+
repeatedprovisioner.VariableValueuser_variable_values=2;
33+
}
34+
messageTemplateDryRun {
35+
reserved1;
36+
37+
repeatedprovisioner.RichParameterValuerich_parameter_values=2;
38+
repeatedprovisioner.VariableValuevariable_values=3;
39+
provisioner.Metadatametadata=4;
40+
}
41+
42+
stringjob_id=1;
43+
int64created_at=2;
44+
stringprovisioner=3;
45+
stringuser_name=4;
46+
bytestemplate_source_archive=5;
47+
oneoftype {
48+
WorkspaceBuildworkspace_build=6;
49+
TemplateImporttemplate_import=7;
50+
TemplateDryRuntemplate_dry_run=8;
51+
}
52+
// trace_metadata is currently used for tracing information only. It allows
53+
// jobs to be tied to the request that created them.
54+
map<string,string>trace_metadata=9;
5555
}
5656

5757
messageFailedJob {
58-
messageWorkspaceBuild {
59-
bytesstate=1;
60-
repeatedprovisioner.Timingtimings=2;
61-
}
62-
messageTemplateImport {}
63-
messageTemplateDryRun {}
64-
65-
stringjob_id=1;
66-
stringerror=2;
67-
oneoftype {
68-
WorkspaceBuildworkspace_build=3;
69-
TemplateImporttemplate_import=4;
70-
TemplateDryRuntemplate_dry_run=5;
71-
}
72-
stringerror_code=6;
58+
messageWorkspaceBuild {
59+
bytesstate=1;
60+
repeatedprovisioner.Timingtimings=2;
61+
}
62+
messageTemplateImport {}
63+
messageTemplateDryRun {}
64+
65+
stringjob_id=1;
66+
stringerror=2;
67+
oneoftype {
68+
WorkspaceBuildworkspace_build=3;
69+
TemplateImporttemplate_import=4;
70+
TemplateDryRuntemplate_dry_run=5;
71+
}
72+
stringerror_code=6;
7373
}
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-
}
96-
messageTemplateDryRun {
97-
repeatedprovisioner.Resourceresources=1;
98-
repeatedprovisioner.Modulemodules=2;
99-
}
100-
101-
stringjob_id=1;
102-
oneoftype {
103-
WorkspaceBuildworkspace_build=2;
104-
TemplateImporttemplate_import=3;
105-
TemplateDryRuntemplate_dry_run=4;
106-
}
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+
}
96+
messageTemplateDryRun {
97+
repeatedprovisioner.Resourceresources=1;
98+
repeatedprovisioner.Modulemodules=2;
99+
}
100+
101+
stringjob_id=1;
102+
oneoftype {
103+
WorkspaceBuildworkspace_build=2;
104+
TemplateImporttemplate_import=3;
105+
TemplateDryRuntemplate_dry_run=4;
106+
}
107107
}
108108

109109
// LogSource represents the sender of the log.
110110
enumLogSource {
111-
PROVISIONER_DAEMON=0;
112-
PROVISIONER=1;
111+
PROVISIONER_DAEMON=0;
112+
PROVISIONER=1;
113113
}
114114

115115
// Log represents output from a job.
116116
messageLog {
117-
LogSourcesource=1;
118-
provisioner.LogLevellevel=2;
119-
int64created_at=3;
120-
stringstage=4;
121-
stringoutput=5;
117+
LogSourcesource=1;
118+
provisioner.LogLevellevel=2;
119+
int64created_at=3;
120+
stringstage=4;
121+
stringoutput=5;
122122
}
123123

124124
// This message should be sent periodically as a heartbeat.
125125
messageUpdateJobRequest {
126-
reserved3;
127-
128-
stringjob_id=1;
129-
repeatedLoglogs=2;
130-
repeatedprovisioner.TemplateVariabletemplate_variables=4;
131-
repeatedprovisioner.VariableValueuser_variable_values=5;
132-
bytesreadme=6;
133-
map<string,string>workspace_tags=7;
126+
reserved3;
127+
128+
stringjob_id=1;
129+
repeatedLoglogs=2;
130+
repeatedprovisioner.TemplateVariabletemplate_variables=4;
131+
repeatedprovisioner.VariableValueuser_variable_values=5;
132+
bytesreadme=6;
133+
map<string,string>workspace_tags=7;
134134
}
135135

136136
messageUpdateJobResponse {
137-
reserved2;
137+
reserved2;
138138

139-
boolcanceled=1;
140-
repeatedprovisioner.VariableValuevariable_values=3;
139+
boolcanceled=1;
140+
repeatedprovisioner.VariableValuevariable_values=3;
141141
}
142142

143143
messageCommitQuotaRequest {
144-
stringjob_id=1;
145-
int32daily_cost=2;
144+
stringjob_id=1;
145+
int32daily_cost=2;
146146
}
147147

148148
messageCommitQuotaResponse {
149-
boolok=1;
150-
int32credits_consumed=2;
151-
int32budget=3;
149+
boolok=1;
150+
int32credits_consumed=2;
151+
int32budget=3;
152152
}
153153

154154
messageCancelAcquire {}
155155

156156
serviceProvisionerDaemon {
157-
// AcquireJob requests a job. Implementations should
158-
// hold a lock on the job until CompleteJob() is
159-
// called with the matching ID.
160-
rpcAcquireJob(Empty)returns (AcquiredJob) {
161-
optiondeprecated=true;
162-
};
163-
// AcquireJobWithCancel requests a job, blocking until
164-
// a job is available or the client sends CancelAcquire.
165-
// Server will send exactly one AcquiredJob, which is
166-
// empty if a cancel was successful. This RPC is a bidirectional
167-
// stream since both messages are asynchronous with no implied
168-
// ordering.
169-
rpcAcquireJobWithCancel(streamCancelAcquire)returns (streamAcquiredJob);
170-
171-
rpcCommitQuota(CommitQuotaRequest)returns (CommitQuotaResponse);
172-
173-
// UpdateJob streams periodic updates for a job.
174-
// Implementations should buffer logs so this stream
175-
// is non-blocking.
176-
rpcUpdateJob(UpdateJobRequest)returns (UpdateJobResponse);
177-
178-
// FailJob indicates a job has failed.
179-
rpcFailJob(FailedJob)returns (Empty);
180-
181-
// CompleteJob indicates a job has been completed.
182-
rpcCompleteJob(CompletedJob)returns (Empty);
157+
// AcquireJob requests a job. Implementations should
158+
// hold a lock on the job until CompleteJob() is
159+
// called with the matching ID.
160+
rpcAcquireJob(Empty)returns (AcquiredJob) {
161+
optiondeprecated=true;
162+
};
163+
// AcquireJobWithCancel requests a job, blocking until
164+
// a job is available or the client sends CancelAcquire.
165+
// Server will send exactly one AcquiredJob, which is
166+
// empty if a cancel was successful. This RPC is a bidirectional
167+
// stream since both messages are asynchronous with no implied
168+
// ordering.
169+
rpcAcquireJobWithCancel(streamCancelAcquire)returns (streamAcquiredJob);
170+
171+
rpcCommitQuota(CommitQuotaRequest)returns (CommitQuotaResponse);
172+
173+
// UpdateJob streams periodic updates for a job.
174+
// Implementations should buffer logs so this stream
175+
// is non-blocking.
176+
rpcUpdateJob(UpdateJobRequest)returns (UpdateJobResponse);
177+
178+
// FailJob indicates a job has failed.
179+
rpcFailJob(FailedJob)returns (Empty);
180+
181+
// CompleteJob indicates a job has been completed.
182+
rpcCompleteJob(CompletedJob)returns (Empty);
183183
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp