This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

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