Monorepo for Tangled
tangled.org
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go v1.36.11
4// protoc (unknown)
5// source: spindle/agent/v1/agent.proto
6
7package agentv1
8
9import (
10 _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16)
17
18const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23)
24
25type Hello struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
28 AgentVersion string `protobuf:"bytes,2,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
29 BootId string `protobuf:"bytes,3,opt,name=boot_id,json=bootId,proto3" json:"boot_id,omitempty"`
30 NixVersion string `protobuf:"bytes,4,opt,name=nix_version,json=nixVersion,proto3" json:"nix_version,omitempty"`
31 unknownFields protoimpl.UnknownFields
32 sizeCache protoimpl.SizeCache
33}
34
35func (x *Hello) Reset() {
36 *x = Hello{}
37 mi := &file_spindle_agent_v1_agent_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40}
41
42func (x *Hello) String() string {
43 return protoimpl.X.MessageStringOf(x)
44}
45
46func (*Hello) ProtoMessage() {}
47
48func (x *Hello) ProtoReflect() protoreflect.Message {
49 mi := &file_spindle_agent_v1_agent_proto_msgTypes[0]
50 if x != nil {
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 if ms.LoadMessageInfo() == nil {
53 ms.StoreMessageInfo(mi)
54 }
55 return ms
56 }
57 return mi.MessageOf(x)
58}
59
60// Deprecated: Use Hello.ProtoReflect.Descriptor instead.
61func (*Hello) Descriptor() ([]byte, []int) {
62 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{0}
63}
64
65func (x *Hello) GetProtocolVersion() uint32 {
66 if x != nil {
67 return x.ProtocolVersion
68 }
69 return 0
70}
71
72func (x *Hello) GetAgentVersion() string {
73 if x != nil {
74 return x.AgentVersion
75 }
76 return ""
77}
78
79func (x *Hello) GetBootId() string {
80 if x != nil {
81 return x.BootId
82 }
83 return ""
84}
85
86func (x *Hello) GetNixVersion() string {
87 if x != nil {
88 return x.NixVersion
89 }
90 return ""
91}
92
93type Init struct {
94 state protoimpl.MessageState `protogen:"open.v1"`
95 JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
96 CacheTrustedPublicKeys []string `protobuf:"bytes,2,rep,name=cache_trusted_public_keys,json=cacheTrustedPublicKeys,proto3" json:"cache_trusted_public_keys,omitempty"`
97 CacheReadProxyPort uint32 `protobuf:"varint,3,opt,name=cache_read_proxy_port,json=cacheReadProxyPort,proto3" json:"cache_read_proxy_port,omitempty"`
98 CacheUploadProxyPort uint32 `protobuf:"varint,4,opt,name=cache_upload_proxy_port,json=cacheUploadProxyPort,proto3" json:"cache_upload_proxy_port,omitempty"`
99 DnsProxyPort uint32 `protobuf:"varint,5,opt,name=dns_proxy_port,json=dnsProxyPort,proto3" json:"dns_proxy_port,omitempty"`
100 unknownFields protoimpl.UnknownFields
101 sizeCache protoimpl.SizeCache
102}
103
104func (x *Init) Reset() {
105 *x = Init{}
106 mi := &file_spindle_agent_v1_agent_proto_msgTypes[1]
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 ms.StoreMessageInfo(mi)
109}
110
111func (x *Init) String() string {
112 return protoimpl.X.MessageStringOf(x)
113}
114
115func (*Init) ProtoMessage() {}
116
117func (x *Init) ProtoReflect() protoreflect.Message {
118 mi := &file_spindle_agent_v1_agent_proto_msgTypes[1]
119 if x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127}
128
129// Deprecated: Use Init.ProtoReflect.Descriptor instead.
130func (*Init) Descriptor() ([]byte, []int) {
131 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{1}
132}
133
134func (x *Init) GetJobId() string {
135 if x != nil {
136 return x.JobId
137 }
138 return ""
139}
140
141func (x *Init) GetCacheTrustedPublicKeys() []string {
142 if x != nil {
143 return x.CacheTrustedPublicKeys
144 }
145 return nil
146}
147
148func (x *Init) GetCacheReadProxyPort() uint32 {
149 if x != nil {
150 return x.CacheReadProxyPort
151 }
152 return 0
153}
154
155func (x *Init) GetCacheUploadProxyPort() uint32 {
156 if x != nil {
157 return x.CacheUploadProxyPort
158 }
159 return 0
160}
161
162func (x *Init) GetDnsProxyPort() uint32 {
163 if x != nil {
164 return x.DnsProxyPort
165 }
166 return 0
167}
168
169type ExecStart struct {
170 state protoimpl.MessageState `protogen:"open.v1"`
171 Argv []string `protobuf:"bytes,1,rep,name=argv,proto3" json:"argv,omitempty"`
172 Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
173 Cwd string `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"`
174 User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
175 TimeoutSeconds uint32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
176 unknownFields protoimpl.UnknownFields
177 sizeCache protoimpl.SizeCache
178}
179
180func (x *ExecStart) Reset() {
181 *x = ExecStart{}
182 mi := &file_spindle_agent_v1_agent_proto_msgTypes[2]
183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
184 ms.StoreMessageInfo(mi)
185}
186
187func (x *ExecStart) String() string {
188 return protoimpl.X.MessageStringOf(x)
189}
190
191func (*ExecStart) ProtoMessage() {}
192
193func (x *ExecStart) ProtoReflect() protoreflect.Message {
194 mi := &file_spindle_agent_v1_agent_proto_msgTypes[2]
195 if x != nil {
196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197 if ms.LoadMessageInfo() == nil {
198 ms.StoreMessageInfo(mi)
199 }
200 return ms
201 }
202 return mi.MessageOf(x)
203}
204
205// Deprecated: Use ExecStart.ProtoReflect.Descriptor instead.
206func (*ExecStart) Descriptor() ([]byte, []int) {
207 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{2}
208}
209
210func (x *ExecStart) GetArgv() []string {
211 if x != nil {
212 return x.Argv
213 }
214 return nil
215}
216
217func (x *ExecStart) GetEnv() []string {
218 if x != nil {
219 return x.Env
220 }
221 return nil
222}
223
224func (x *ExecStart) GetCwd() string {
225 if x != nil {
226 return x.Cwd
227 }
228 return ""
229}
230
231func (x *ExecStart) GetUser() string {
232 if x != nil {
233 return x.User
234 }
235 return ""
236}
237
238func (x *ExecStart) GetTimeoutSeconds() uint32 {
239 if x != nil {
240 return x.TimeoutSeconds
241 }
242 return 0
243}
244
245type ExecStdout struct {
246 state protoimpl.MessageState `protogen:"open.v1"`
247 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
248 unknownFields protoimpl.UnknownFields
249 sizeCache protoimpl.SizeCache
250}
251
252func (x *ExecStdout) Reset() {
253 *x = ExecStdout{}
254 mi := &file_spindle_agent_v1_agent_proto_msgTypes[3]
255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
256 ms.StoreMessageInfo(mi)
257}
258
259func (x *ExecStdout) String() string {
260 return protoimpl.X.MessageStringOf(x)
261}
262
263func (*ExecStdout) ProtoMessage() {}
264
265func (x *ExecStdout) ProtoReflect() protoreflect.Message {
266 mi := &file_spindle_agent_v1_agent_proto_msgTypes[3]
267 if x != nil {
268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
269 if ms.LoadMessageInfo() == nil {
270 ms.StoreMessageInfo(mi)
271 }
272 return ms
273 }
274 return mi.MessageOf(x)
275}
276
277// Deprecated: Use ExecStdout.ProtoReflect.Descriptor instead.
278func (*ExecStdout) Descriptor() ([]byte, []int) {
279 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{3}
280}
281
282func (x *ExecStdout) GetData() string {
283 if x != nil {
284 return x.Data
285 }
286 return ""
287}
288
289type ExecStderr struct {
290 state protoimpl.MessageState `protogen:"open.v1"`
291 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
292 unknownFields protoimpl.UnknownFields
293 sizeCache protoimpl.SizeCache
294}
295
296func (x *ExecStderr) Reset() {
297 *x = ExecStderr{}
298 mi := &file_spindle_agent_v1_agent_proto_msgTypes[4]
299 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
300 ms.StoreMessageInfo(mi)
301}
302
303func (x *ExecStderr) String() string {
304 return protoimpl.X.MessageStringOf(x)
305}
306
307func (*ExecStderr) ProtoMessage() {}
308
309func (x *ExecStderr) ProtoReflect() protoreflect.Message {
310 mi := &file_spindle_agent_v1_agent_proto_msgTypes[4]
311 if x != nil {
312 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
313 if ms.LoadMessageInfo() == nil {
314 ms.StoreMessageInfo(mi)
315 }
316 return ms
317 }
318 return mi.MessageOf(x)
319}
320
321// Deprecated: Use ExecStderr.ProtoReflect.Descriptor instead.
322func (*ExecStderr) Descriptor() ([]byte, []int) {
323 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{4}
324}
325
326func (x *ExecStderr) GetData() string {
327 if x != nil {
328 return x.Data
329 }
330 return ""
331}
332
333type ExecExit struct {
334 state protoimpl.MessageState `protogen:"open.v1"`
335 ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
336 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
337 // set when the guest killed the step on its own timeout timer, so the host
338 // can classify it as a timeout rather than inferring failure from exit_code.
339 TimedOut bool `protobuf:"varint,3,opt,name=timed_out,json=timedOut,proto3" json:"timed_out,omitempty"`
340 unknownFields protoimpl.UnknownFields
341 sizeCache protoimpl.SizeCache
342}
343
344func (x *ExecExit) Reset() {
345 *x = ExecExit{}
346 mi := &file_spindle_agent_v1_agent_proto_msgTypes[5]
347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
348 ms.StoreMessageInfo(mi)
349}
350
351func (x *ExecExit) String() string {
352 return protoimpl.X.MessageStringOf(x)
353}
354
355func (*ExecExit) ProtoMessage() {}
356
357func (x *ExecExit) ProtoReflect() protoreflect.Message {
358 mi := &file_spindle_agent_v1_agent_proto_msgTypes[5]
359 if x != nil {
360 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
361 if ms.LoadMessageInfo() == nil {
362 ms.StoreMessageInfo(mi)
363 }
364 return ms
365 }
366 return mi.MessageOf(x)
367}
368
369// Deprecated: Use ExecExit.ProtoReflect.Descriptor instead.
370func (*ExecExit) Descriptor() ([]byte, []int) {
371 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{5}
372}
373
374func (x *ExecExit) GetExitCode() int32 {
375 if x != nil {
376 return x.ExitCode
377 }
378 return 0
379}
380
381func (x *ExecExit) GetError() string {
382 if x != nil {
383 return x.Error
384 }
385 return ""
386}
387
388func (x *ExecExit) GetTimedOut() bool {
389 if x != nil {
390 return x.TimedOut
391 }
392 return false
393}
394
395type ActivateConfig struct {
396 state protoimpl.MessageState `protogen:"open.v1"`
397 ConfigKey string `protobuf:"bytes,1,opt,name=config_key,json=configKey,proto3" json:"config_key,omitempty"`
398 BaseConfigHash string `protobuf:"bytes,2,opt,name=base_config_hash,json=baseConfigHash,proto3" json:"base_config_hash,omitempty"`
399 UserConfig string `protobuf:"bytes,3,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"`
400 Toplevel string `protobuf:"bytes,4,opt,name=toplevel,proto3" json:"toplevel,omitempty"`
401 TimeoutSeconds uint32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
402 unknownFields protoimpl.UnknownFields
403 sizeCache protoimpl.SizeCache
404}
405
406func (x *ActivateConfig) Reset() {
407 *x = ActivateConfig{}
408 mi := &file_spindle_agent_v1_agent_proto_msgTypes[6]
409 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
410 ms.StoreMessageInfo(mi)
411}
412
413func (x *ActivateConfig) String() string {
414 return protoimpl.X.MessageStringOf(x)
415}
416
417func (*ActivateConfig) ProtoMessage() {}
418
419func (x *ActivateConfig) ProtoReflect() protoreflect.Message {
420 mi := &file_spindle_agent_v1_agent_proto_msgTypes[6]
421 if x != nil {
422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
423 if ms.LoadMessageInfo() == nil {
424 ms.StoreMessageInfo(mi)
425 }
426 return ms
427 }
428 return mi.MessageOf(x)
429}
430
431// Deprecated: Use ActivateConfig.ProtoReflect.Descriptor instead.
432func (*ActivateConfig) Descriptor() ([]byte, []int) {
433 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{6}
434}
435
436func (x *ActivateConfig) GetConfigKey() string {
437 if x != nil {
438 return x.ConfigKey
439 }
440 return ""
441}
442
443func (x *ActivateConfig) GetBaseConfigHash() string {
444 if x != nil {
445 return x.BaseConfigHash
446 }
447 return ""
448}
449
450func (x *ActivateConfig) GetUserConfig() string {
451 if x != nil {
452 return x.UserConfig
453 }
454 return ""
455}
456
457func (x *ActivateConfig) GetToplevel() string {
458 if x != nil {
459 return x.Toplevel
460 }
461 return ""
462}
463
464func (x *ActivateConfig) GetTimeoutSeconds() uint32 {
465 if x != nil {
466 return x.TimeoutSeconds
467 }
468 return 0
469}
470
471type ActivateConfigResult struct {
472 state protoimpl.MessageState `protogen:"open.v1"`
473 ConfigKey string `protobuf:"bytes,1,opt,name=config_key,json=configKey,proto3" json:"config_key,omitempty"`
474 Toplevel string `protobuf:"bytes,2,opt,name=toplevel,proto3" json:"toplevel,omitempty"`
475 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
476 unknownFields protoimpl.UnknownFields
477 sizeCache protoimpl.SizeCache
478}
479
480func (x *ActivateConfigResult) Reset() {
481 *x = ActivateConfigResult{}
482 mi := &file_spindle_agent_v1_agent_proto_msgTypes[7]
483 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
484 ms.StoreMessageInfo(mi)
485}
486
487func (x *ActivateConfigResult) String() string {
488 return protoimpl.X.MessageStringOf(x)
489}
490
491func (*ActivateConfigResult) ProtoMessage() {}
492
493func (x *ActivateConfigResult) ProtoReflect() protoreflect.Message {
494 mi := &file_spindle_agent_v1_agent_proto_msgTypes[7]
495 if x != nil {
496 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
497 if ms.LoadMessageInfo() == nil {
498 ms.StoreMessageInfo(mi)
499 }
500 return ms
501 }
502 return mi.MessageOf(x)
503}
504
505// Deprecated: Use ActivateConfigResult.ProtoReflect.Descriptor instead.
506func (*ActivateConfigResult) Descriptor() ([]byte, []int) {
507 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{7}
508}
509
510func (x *ActivateConfigResult) GetConfigKey() string {
511 if x != nil {
512 return x.ConfigKey
513 }
514 return ""
515}
516
517func (x *ActivateConfigResult) GetToplevel() string {
518 if x != nil {
519 return x.Toplevel
520 }
521 return ""
522}
523
524func (x *ActivateConfigResult) GetError() string {
525 if x != nil {
526 return x.Error
527 }
528 return ""
529}
530
531type BuiltPaths struct {
532 state protoimpl.MessageState `protogen:"open.v1"`
533 Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
534 Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
535 unknownFields protoimpl.UnknownFields
536 sizeCache protoimpl.SizeCache
537}
538
539func (x *BuiltPaths) Reset() {
540 *x = BuiltPaths{}
541 mi := &file_spindle_agent_v1_agent_proto_msgTypes[8]
542 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
543 ms.StoreMessageInfo(mi)
544}
545
546func (x *BuiltPaths) String() string {
547 return protoimpl.X.MessageStringOf(x)
548}
549
550func (*BuiltPaths) ProtoMessage() {}
551
552func (x *BuiltPaths) ProtoReflect() protoreflect.Message {
553 mi := &file_spindle_agent_v1_agent_proto_msgTypes[8]
554 if x != nil {
555 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
556 if ms.LoadMessageInfo() == nil {
557 ms.StoreMessageInfo(mi)
558 }
559 return ms
560 }
561 return mi.MessageOf(x)
562}
563
564// Deprecated: Use BuiltPaths.ProtoReflect.Descriptor instead.
565func (*BuiltPaths) Descriptor() ([]byte, []int) {
566 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{8}
567}
568
569func (x *BuiltPaths) GetPaths() []string {
570 if x != nil {
571 return x.Paths
572 }
573 return nil
574}
575
576func (x *BuiltPaths) GetReason() string {
577 if x != nil {
578 return x.Reason
579 }
580 return ""
581}
582
583type CacheDrain struct {
584 state protoimpl.MessageState `protogen:"open.v1"`
585 TimeoutSeconds uint32 `protobuf:"varint,1,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
586 unknownFields protoimpl.UnknownFields
587 sizeCache protoimpl.SizeCache
588}
589
590func (x *CacheDrain) Reset() {
591 *x = CacheDrain{}
592 mi := &file_spindle_agent_v1_agent_proto_msgTypes[9]
593 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
594 ms.StoreMessageInfo(mi)
595}
596
597func (x *CacheDrain) String() string {
598 return protoimpl.X.MessageStringOf(x)
599}
600
601func (*CacheDrain) ProtoMessage() {}
602
603func (x *CacheDrain) ProtoReflect() protoreflect.Message {
604 mi := &file_spindle_agent_v1_agent_proto_msgTypes[9]
605 if x != nil {
606 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
607 if ms.LoadMessageInfo() == nil {
608 ms.StoreMessageInfo(mi)
609 }
610 return ms
611 }
612 return mi.MessageOf(x)
613}
614
615// Deprecated: Use CacheDrain.ProtoReflect.Descriptor instead.
616func (*CacheDrain) Descriptor() ([]byte, []int) {
617 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{9}
618}
619
620func (x *CacheDrain) GetTimeoutSeconds() uint32 {
621 if x != nil {
622 return x.TimeoutSeconds
623 }
624 return 0
625}
626
627type CacheDrainResult struct {
628 state protoimpl.MessageState `protogen:"open.v1"`
629 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
630 CacheQueued uint32 `protobuf:"varint,2,opt,name=cache_queued,json=cacheQueued,proto3" json:"cache_queued,omitempty"`
631 CacheActive uint32 `protobuf:"varint,3,opt,name=cache_active,json=cacheActive,proto3" json:"cache_active,omitempty"`
632 CacheUploaded uint32 `protobuf:"varint,4,opt,name=cache_uploaded,json=cacheUploaded,proto3" json:"cache_uploaded,omitempty"`
633 CacheFailed uint32 `protobuf:"varint,5,opt,name=cache_failed,json=cacheFailed,proto3" json:"cache_failed,omitempty"`
634 unknownFields protoimpl.UnknownFields
635 sizeCache protoimpl.SizeCache
636}
637
638func (x *CacheDrainResult) Reset() {
639 *x = CacheDrainResult{}
640 mi := &file_spindle_agent_v1_agent_proto_msgTypes[10]
641 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
642 ms.StoreMessageInfo(mi)
643}
644
645func (x *CacheDrainResult) String() string {
646 return protoimpl.X.MessageStringOf(x)
647}
648
649func (*CacheDrainResult) ProtoMessage() {}
650
651func (x *CacheDrainResult) ProtoReflect() protoreflect.Message {
652 mi := &file_spindle_agent_v1_agent_proto_msgTypes[10]
653 if x != nil {
654 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
655 if ms.LoadMessageInfo() == nil {
656 ms.StoreMessageInfo(mi)
657 }
658 return ms
659 }
660 return mi.MessageOf(x)
661}
662
663// Deprecated: Use CacheDrainResult.ProtoReflect.Descriptor instead.
664func (*CacheDrainResult) Descriptor() ([]byte, []int) {
665 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{10}
666}
667
668func (x *CacheDrainResult) GetError() string {
669 if x != nil {
670 return x.Error
671 }
672 return ""
673}
674
675func (x *CacheDrainResult) GetCacheQueued() uint32 {
676 if x != nil {
677 return x.CacheQueued
678 }
679 return 0
680}
681
682func (x *CacheDrainResult) GetCacheActive() uint32 {
683 if x != nil {
684 return x.CacheActive
685 }
686 return 0
687}
688
689func (x *CacheDrainResult) GetCacheUploaded() uint32 {
690 if x != nil {
691 return x.CacheUploaded
692 }
693 return 0
694}
695
696func (x *CacheDrainResult) GetCacheFailed() uint32 {
697 if x != nil {
698 return x.CacheFailed
699 }
700 return 0
701}
702
703type Poweroff struct {
704 state protoimpl.MessageState `protogen:"open.v1"`
705 unknownFields protoimpl.UnknownFields
706 sizeCache protoimpl.SizeCache
707}
708
709func (x *Poweroff) Reset() {
710 *x = Poweroff{}
711 mi := &file_spindle_agent_v1_agent_proto_msgTypes[11]
712 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
713 ms.StoreMessageInfo(mi)
714}
715
716func (x *Poweroff) String() string {
717 return protoimpl.X.MessageStringOf(x)
718}
719
720func (*Poweroff) ProtoMessage() {}
721
722func (x *Poweroff) ProtoReflect() protoreflect.Message {
723 mi := &file_spindle_agent_v1_agent_proto_msgTypes[11]
724 if x != nil {
725 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
726 if ms.LoadMessageInfo() == nil {
727 ms.StoreMessageInfo(mi)
728 }
729 return ms
730 }
731 return mi.MessageOf(x)
732}
733
734// Deprecated: Use Poweroff.ProtoReflect.Descriptor instead.
735func (*Poweroff) Descriptor() ([]byte, []int) {
736 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{11}
737}
738
739type PoweroffResult struct {
740 state protoimpl.MessageState `protogen:"open.v1"`
741 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
742 unknownFields protoimpl.UnknownFields
743 sizeCache protoimpl.SizeCache
744}
745
746func (x *PoweroffResult) Reset() {
747 *x = PoweroffResult{}
748 mi := &file_spindle_agent_v1_agent_proto_msgTypes[12]
749 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
750 ms.StoreMessageInfo(mi)
751}
752
753func (x *PoweroffResult) String() string {
754 return protoimpl.X.MessageStringOf(x)
755}
756
757func (*PoweroffResult) ProtoMessage() {}
758
759func (x *PoweroffResult) ProtoReflect() protoreflect.Message {
760 mi := &file_spindle_agent_v1_agent_proto_msgTypes[12]
761 if x != nil {
762 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
763 if ms.LoadMessageInfo() == nil {
764 ms.StoreMessageInfo(mi)
765 }
766 return ms
767 }
768 return mi.MessageOf(x)
769}
770
771// Deprecated: Use PoweroffResult.ProtoReflect.Descriptor instead.
772func (*PoweroffResult) Descriptor() ([]byte, []int) {
773 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{12}
774}
775
776func (x *PoweroffResult) GetError() string {
777 if x != nil {
778 return x.Error
779 }
780 return ""
781}
782
783type Message struct {
784 state protoimpl.MessageState `protogen:"open.v1"`
785 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
786 Hello *Hello `protobuf:"bytes,2,opt,name=hello,proto3" json:"hello,omitempty"`
787 Init *Init `protobuf:"bytes,3,opt,name=init,proto3" json:"init,omitempty"`
788 ExecStart *ExecStart `protobuf:"bytes,4,opt,name=exec_start,json=execStart,proto3" json:"exec_start,omitempty"`
789 ExecStdout *ExecStdout `protobuf:"bytes,5,opt,name=exec_stdout,json=execStdout,proto3" json:"exec_stdout,omitempty"`
790 ExecStderr *ExecStderr `protobuf:"bytes,6,opt,name=exec_stderr,json=execStderr,proto3" json:"exec_stderr,omitempty"`
791 ExecExit *ExecExit `protobuf:"bytes,7,opt,name=exec_exit,json=execExit,proto3" json:"exec_exit,omitempty"`
792 ActivateConfig *ActivateConfig `protobuf:"bytes,8,opt,name=activate_config,json=activateConfig,proto3" json:"activate_config,omitempty"`
793 ActivateConfigResult *ActivateConfigResult `protobuf:"bytes,9,opt,name=activate_config_result,json=activateConfigResult,proto3" json:"activate_config_result,omitempty"`
794 BuiltPaths *BuiltPaths `protobuf:"bytes,10,opt,name=built_paths,json=builtPaths,proto3" json:"built_paths,omitempty"`
795 CacheDrain *CacheDrain `protobuf:"bytes,11,opt,name=cache_drain,json=cacheDrain,proto3" json:"cache_drain,omitempty"`
796 CacheDrainResult *CacheDrainResult `protobuf:"bytes,12,opt,name=cache_drain_result,json=cacheDrainResult,proto3" json:"cache_drain_result,omitempty"`
797 Poweroff *Poweroff `protobuf:"bytes,13,opt,name=poweroff,proto3" json:"poweroff,omitempty"`
798 PoweroffResult *PoweroffResult `protobuf:"bytes,14,opt,name=poweroff_result,json=poweroffResult,proto3" json:"poweroff_result,omitempty"`
799 unknownFields protoimpl.UnknownFields
800 sizeCache protoimpl.SizeCache
801}
802
803func (x *Message) Reset() {
804 *x = Message{}
805 mi := &file_spindle_agent_v1_agent_proto_msgTypes[13]
806 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
807 ms.StoreMessageInfo(mi)
808}
809
810func (x *Message) String() string {
811 return protoimpl.X.MessageStringOf(x)
812}
813
814func (*Message) ProtoMessage() {}
815
816func (x *Message) ProtoReflect() protoreflect.Message {
817 mi := &file_spindle_agent_v1_agent_proto_msgTypes[13]
818 if x != nil {
819 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
820 if ms.LoadMessageInfo() == nil {
821 ms.StoreMessageInfo(mi)
822 }
823 return ms
824 }
825 return mi.MessageOf(x)
826}
827
828// Deprecated: Use Message.ProtoReflect.Descriptor instead.
829func (*Message) Descriptor() ([]byte, []int) {
830 return file_spindle_agent_v1_agent_proto_rawDescGZIP(), []int{13}
831}
832
833func (x *Message) GetId() string {
834 if x != nil {
835 return x.Id
836 }
837 return ""
838}
839
840func (x *Message) GetHello() *Hello {
841 if x != nil {
842 return x.Hello
843 }
844 return nil
845}
846
847func (x *Message) GetInit() *Init {
848 if x != nil {
849 return x.Init
850 }
851 return nil
852}
853
854func (x *Message) GetExecStart() *ExecStart {
855 if x != nil {
856 return x.ExecStart
857 }
858 return nil
859}
860
861func (x *Message) GetExecStdout() *ExecStdout {
862 if x != nil {
863 return x.ExecStdout
864 }
865 return nil
866}
867
868func (x *Message) GetExecStderr() *ExecStderr {
869 if x != nil {
870 return x.ExecStderr
871 }
872 return nil
873}
874
875func (x *Message) GetExecExit() *ExecExit {
876 if x != nil {
877 return x.ExecExit
878 }
879 return nil
880}
881
882func (x *Message) GetActivateConfig() *ActivateConfig {
883 if x != nil {
884 return x.ActivateConfig
885 }
886 return nil
887}
888
889func (x *Message) GetActivateConfigResult() *ActivateConfigResult {
890 if x != nil {
891 return x.ActivateConfigResult
892 }
893 return nil
894}
895
896func (x *Message) GetBuiltPaths() *BuiltPaths {
897 if x != nil {
898 return x.BuiltPaths
899 }
900 return nil
901}
902
903func (x *Message) GetCacheDrain() *CacheDrain {
904 if x != nil {
905 return x.CacheDrain
906 }
907 return nil
908}
909
910func (x *Message) GetCacheDrainResult() *CacheDrainResult {
911 if x != nil {
912 return x.CacheDrainResult
913 }
914 return nil
915}
916
917func (x *Message) GetPoweroff() *Poweroff {
918 if x != nil {
919 return x.Poweroff
920 }
921 return nil
922}
923
924func (x *Message) GetPoweroffResult() *PoweroffResult {
925 if x != nil {
926 return x.PoweroffResult
927 }
928 return nil
929}
930
931var File_spindle_agent_v1_agent_proto protoreflect.FileDescriptor
932
933const file_spindle_agent_v1_agent_proto_rawDesc = "" +
934 "\n" +
935 "\x1cspindle/agent/v1/agent.proto\x12\x10spindle.agent.v1\x1a\x1bbuf/validate/validate.proto\"\x91\x01\n" +
936 "\x05Hello\x12)\n" +
937 "\x10protocol_version\x18\x01 \x01(\rR\x0fprotocolVersion\x12#\n" +
938 "\ragent_version\x18\x02 \x01(\tR\fagentVersion\x12\x17\n" +
939 "\aboot_id\x18\x03 \x01(\tR\x06bootId\x12\x1f\n" +
940 "\vnix_version\x18\x04 \x01(\tR\n" +
941 "nixVersion\"\xe8\x01\n" +
942 "\x04Init\x12\x15\n" +
943 "\x06job_id\x18\x01 \x01(\tR\x05jobId\x129\n" +
944 "\x19cache_trusted_public_keys\x18\x02 \x03(\tR\x16cacheTrustedPublicKeys\x121\n" +
945 "\x15cache_read_proxy_port\x18\x03 \x01(\rR\x12cacheReadProxyPort\x125\n" +
946 "\x17cache_upload_proxy_port\x18\x04 \x01(\rR\x14cacheUploadProxyPort\x12$\n" +
947 "\x0edns_proxy_port\x18\x05 \x01(\rR\fdnsProxyPort\"\x80\x01\n" +
948 "\tExecStart\x12\x12\n" +
949 "\x04argv\x18\x01 \x03(\tR\x04argv\x12\x10\n" +
950 "\x03env\x18\x02 \x03(\tR\x03env\x12\x10\n" +
951 "\x03cwd\x18\x03 \x01(\tR\x03cwd\x12\x12\n" +
952 "\x04user\x18\x04 \x01(\tR\x04user\x12'\n" +
953 "\x0ftimeout_seconds\x18\x05 \x01(\rR\x0etimeoutSeconds\" \n" +
954 "\n" +
955 "ExecStdout\x12\x12\n" +
956 "\x04data\x18\x01 \x01(\tR\x04data\" \n" +
957 "\n" +
958 "ExecStderr\x12\x12\n" +
959 "\x04data\x18\x01 \x01(\tR\x04data\"Z\n" +
960 "\bExecExit\x12\x1b\n" +
961 "\texit_code\x18\x01 \x01(\x05R\bexitCode\x12\x14\n" +
962 "\x05error\x18\x02 \x01(\tR\x05error\x12\x1b\n" +
963 "\ttimed_out\x18\x03 \x01(\bR\btimedOut\"\xbf\x01\n" +
964 "\x0eActivateConfig\x12\x1d\n" +
965 "\n" +
966 "config_key\x18\x01 \x01(\tR\tconfigKey\x12(\n" +
967 "\x10base_config_hash\x18\x02 \x01(\tR\x0ebaseConfigHash\x12\x1f\n" +
968 "\vuser_config\x18\x03 \x01(\tR\n" +
969 "userConfig\x12\x1a\n" +
970 "\btoplevel\x18\x04 \x01(\tR\btoplevel\x12'\n" +
971 "\x0ftimeout_seconds\x18\x05 \x01(\rR\x0etimeoutSeconds\"g\n" +
972 "\x14ActivateConfigResult\x12\x1d\n" +
973 "\n" +
974 "config_key\x18\x01 \x01(\tR\tconfigKey\x12\x1a\n" +
975 "\btoplevel\x18\x02 \x01(\tR\btoplevel\x12\x14\n" +
976 "\x05error\x18\x03 \x01(\tR\x05error\":\n" +
977 "\n" +
978 "BuiltPaths\x12\x14\n" +
979 "\x05paths\x18\x01 \x03(\tR\x05paths\x12\x16\n" +
980 "\x06reason\x18\x02 \x01(\tR\x06reason\"5\n" +
981 "\n" +
982 "CacheDrain\x12'\n" +
983 "\x0ftimeout_seconds\x18\x01 \x01(\rR\x0etimeoutSeconds\"\xb8\x01\n" +
984 "\x10CacheDrainResult\x12\x14\n" +
985 "\x05error\x18\x01 \x01(\tR\x05error\x12!\n" +
986 "\fcache_queued\x18\x02 \x01(\rR\vcacheQueued\x12!\n" +
987 "\fcache_active\x18\x03 \x01(\rR\vcacheActive\x12%\n" +
988 "\x0ecache_uploaded\x18\x04 \x01(\rR\rcacheUploaded\x12!\n" +
989 "\fcache_failed\x18\x05 \x01(\rR\vcacheFailed\"\n" +
990 "\n" +
991 "\bPoweroff\"&\n" +
992 "\x0ePoweroffResult\x12\x14\n" +
993 "\x05error\x18\x01 \x01(\tR\x05error\"\xa8\b\n" +
994 "\aMessage\x12\x17\n" +
995 "\x02id\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x02id\x12-\n" +
996 "\x05hello\x18\x02 \x01(\v2\x17.spindle.agent.v1.HelloR\x05hello\x12*\n" +
997 "\x04init\x18\x03 \x01(\v2\x16.spindle.agent.v1.InitR\x04init\x12:\n" +
998 "\n" +
999 "exec_start\x18\x04 \x01(\v2\x1b.spindle.agent.v1.ExecStartR\texecStart\x12=\n" +
1000 "\vexec_stdout\x18\x05 \x01(\v2\x1c.spindle.agent.v1.ExecStdoutR\n" +
1001 "execStdout\x12=\n" +
1002 "\vexec_stderr\x18\x06 \x01(\v2\x1c.spindle.agent.v1.ExecStderrR\n" +
1003 "execStderr\x127\n" +
1004 "\texec_exit\x18\a \x01(\v2\x1a.spindle.agent.v1.ExecExitR\bexecExit\x12I\n" +
1005 "\x0factivate_config\x18\b \x01(\v2 .spindle.agent.v1.ActivateConfigR\x0eactivateConfig\x12\\\n" +
1006 "\x16activate_config_result\x18\t \x01(\v2&.spindle.agent.v1.ActivateConfigResultR\x14activateConfigResult\x12=\n" +
1007 "\vbuilt_paths\x18\n" +
1008 " \x01(\v2\x1c.spindle.agent.v1.BuiltPathsR\n" +
1009 "builtPaths\x12=\n" +
1010 "\vcache_drain\x18\v \x01(\v2\x1c.spindle.agent.v1.CacheDrainR\n" +
1011 "cacheDrain\x12P\n" +
1012 "\x12cache_drain_result\x18\f \x01(\v2\".spindle.agent.v1.CacheDrainResultR\x10cacheDrainResult\x126\n" +
1013 "\bpoweroff\x18\r \x01(\v2\x1a.spindle.agent.v1.PoweroffR\bpoweroff\x12I\n" +
1014 "\x0fpoweroff_result\x18\x0e \x01(\v2 .spindle.agent.v1.PoweroffResultR\x0epoweroffResult:\xb9\x01\xbaH\xb5\x01\"\xb2\x01\n" +
1015 "\x05hello\n" +
1016 "\x04init\n" +
1017 "\n" +
1018 "exec_start\n" +
1019 "\vexec_stdout\n" +
1020 "\vexec_stderr\n" +
1021 "\texec_exit\n" +
1022 "\x0factivate_config\n" +
1023 "\x16activate_config_result\n" +
1024 "\vbuilt_paths\n" +
1025 "\vcache_drain\n" +
1026 "\x12cache_drain_result\n" +
1027 "\bpoweroff\n" +
1028 "\x0fpoweroff_result\x10\x01B1Z/tangled.org/core/spindle/agentproto/gen;agentv1b\x06proto3"
1029
1030var (
1031 file_spindle_agent_v1_agent_proto_rawDescOnce sync.Once
1032 file_spindle_agent_v1_agent_proto_rawDescData []byte
1033)
1034
1035func file_spindle_agent_v1_agent_proto_rawDescGZIP() []byte {
1036 file_spindle_agent_v1_agent_proto_rawDescOnce.Do(func() {
1037 file_spindle_agent_v1_agent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spindle_agent_v1_agent_proto_rawDesc), len(file_spindle_agent_v1_agent_proto_rawDesc)))
1038 })
1039 return file_spindle_agent_v1_agent_proto_rawDescData
1040}
1041
1042var file_spindle_agent_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
1043var file_spindle_agent_v1_agent_proto_goTypes = []any{
1044 (*Hello)(nil), // 0: spindle.agent.v1.Hello
1045 (*Init)(nil), // 1: spindle.agent.v1.Init
1046 (*ExecStart)(nil), // 2: spindle.agent.v1.ExecStart
1047 (*ExecStdout)(nil), // 3: spindle.agent.v1.ExecStdout
1048 (*ExecStderr)(nil), // 4: spindle.agent.v1.ExecStderr
1049 (*ExecExit)(nil), // 5: spindle.agent.v1.ExecExit
1050 (*ActivateConfig)(nil), // 6: spindle.agent.v1.ActivateConfig
1051 (*ActivateConfigResult)(nil), // 7: spindle.agent.v1.ActivateConfigResult
1052 (*BuiltPaths)(nil), // 8: spindle.agent.v1.BuiltPaths
1053 (*CacheDrain)(nil), // 9: spindle.agent.v1.CacheDrain
1054 (*CacheDrainResult)(nil), // 10: spindle.agent.v1.CacheDrainResult
1055 (*Poweroff)(nil), // 11: spindle.agent.v1.Poweroff
1056 (*PoweroffResult)(nil), // 12: spindle.agent.v1.PoweroffResult
1057 (*Message)(nil), // 13: spindle.agent.v1.Message
1058}
1059var file_spindle_agent_v1_agent_proto_depIdxs = []int32{
1060 0, // 0: spindle.agent.v1.Message.hello:type_name -> spindle.agent.v1.Hello
1061 1, // 1: spindle.agent.v1.Message.init:type_name -> spindle.agent.v1.Init
1062 2, // 2: spindle.agent.v1.Message.exec_start:type_name -> spindle.agent.v1.ExecStart
1063 3, // 3: spindle.agent.v1.Message.exec_stdout:type_name -> spindle.agent.v1.ExecStdout
1064 4, // 4: spindle.agent.v1.Message.exec_stderr:type_name -> spindle.agent.v1.ExecStderr
1065 5, // 5: spindle.agent.v1.Message.exec_exit:type_name -> spindle.agent.v1.ExecExit
1066 6, // 6: spindle.agent.v1.Message.activate_config:type_name -> spindle.agent.v1.ActivateConfig
1067 7, // 7: spindle.agent.v1.Message.activate_config_result:type_name -> spindle.agent.v1.ActivateConfigResult
1068 8, // 8: spindle.agent.v1.Message.built_paths:type_name -> spindle.agent.v1.BuiltPaths
1069 9, // 9: spindle.agent.v1.Message.cache_drain:type_name -> spindle.agent.v1.CacheDrain
1070 10, // 10: spindle.agent.v1.Message.cache_drain_result:type_name -> spindle.agent.v1.CacheDrainResult
1071 11, // 11: spindle.agent.v1.Message.poweroff:type_name -> spindle.agent.v1.Poweroff
1072 12, // 12: spindle.agent.v1.Message.poweroff_result:type_name -> spindle.agent.v1.PoweroffResult
1073 13, // [13:13] is the sub-list for method output_type
1074 13, // [13:13] is the sub-list for method input_type
1075 13, // [13:13] is the sub-list for extension type_name
1076 13, // [13:13] is the sub-list for extension extendee
1077 0, // [0:13] is the sub-list for field type_name
1078}
1079
1080func init() { file_spindle_agent_v1_agent_proto_init() }
1081func file_spindle_agent_v1_agent_proto_init() {
1082 if File_spindle_agent_v1_agent_proto != nil {
1083 return
1084 }
1085 type x struct{}
1086 out := protoimpl.TypeBuilder{
1087 File: protoimpl.DescBuilder{
1088 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1089 RawDescriptor: unsafe.Slice(unsafe.StringData(file_spindle_agent_v1_agent_proto_rawDesc), len(file_spindle_agent_v1_agent_proto_rawDesc)),
1090 NumEnums: 0,
1091 NumMessages: 14,
1092 NumExtensions: 0,
1093 NumServices: 0,
1094 },
1095 GoTypes: file_spindle_agent_v1_agent_proto_goTypes,
1096 DependencyIndexes: file_spindle_agent_v1_agent_proto_depIdxs,
1097 MessageInfos: file_spindle_agent_v1_agent_proto_msgTypes,
1098 }.Build()
1099 File_spindle_agent_v1_agent_proto = out.File
1100 file_spindle_agent_v1_agent_proto_goTypes = nil
1101 file_spindle_agent_v1_agent_proto_depIdxs = nil
1102}