github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/protocol/keybase1/simple_fs.go (about) 1 // Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler) 2 // Input file: avdl/keybase1/simple_fs.avdl 3 4 package keybase1 5 6 import ( 7 "errors" 8 "fmt" 9 "github.com/keybase/go-framed-msgpack-rpc/rpc" 10 context "golang.org/x/net/context" 11 "time" 12 ) 13 14 type OpID [16]byte 15 16 func (o OpID) DeepCopy() OpID { 17 var ret OpID 18 copy(ret[:], o[:]) 19 return ret 20 } 21 22 type KBFSRevision int64 23 24 func (o KBFSRevision) DeepCopy() KBFSRevision { 25 return o 26 } 27 28 type KBFSArchivedType int 29 30 const ( 31 KBFSArchivedType_REVISION KBFSArchivedType = 0 32 KBFSArchivedType_TIME KBFSArchivedType = 1 33 KBFSArchivedType_TIME_STRING KBFSArchivedType = 2 34 KBFSArchivedType_REL_TIME_STRING KBFSArchivedType = 3 35 ) 36 37 func (o KBFSArchivedType) DeepCopy() KBFSArchivedType { return o } 38 39 var KBFSArchivedTypeMap = map[string]KBFSArchivedType{ 40 "REVISION": 0, 41 "TIME": 1, 42 "TIME_STRING": 2, 43 "REL_TIME_STRING": 3, 44 } 45 46 var KBFSArchivedTypeRevMap = map[KBFSArchivedType]string{ 47 0: "REVISION", 48 1: "TIME", 49 2: "TIME_STRING", 50 3: "REL_TIME_STRING", 51 } 52 53 func (e KBFSArchivedType) String() string { 54 if v, ok := KBFSArchivedTypeRevMap[e]; ok { 55 return v 56 } 57 return fmt.Sprintf("%v", int(e)) 58 } 59 60 type KBFSArchivedParam struct { 61 KBFSArchivedType__ KBFSArchivedType `codec:"KBFSArchivedType" json:"KBFSArchivedType"` 62 Revision__ *KBFSRevision `codec:"revision,omitempty" json:"revision,omitempty"` 63 Time__ *Time `codec:"time,omitempty" json:"time,omitempty"` 64 TimeString__ *string `codec:"timeString,omitempty" json:"timeString,omitempty"` 65 RelTimeString__ *string `codec:"relTimeString,omitempty" json:"relTimeString,omitempty"` 66 } 67 68 func (o *KBFSArchivedParam) KBFSArchivedType() (ret KBFSArchivedType, err error) { 69 switch o.KBFSArchivedType__ { 70 case KBFSArchivedType_REVISION: 71 if o.Revision__ == nil { 72 err = errors.New("unexpected nil value for Revision__") 73 return ret, err 74 } 75 case KBFSArchivedType_TIME: 76 if o.Time__ == nil { 77 err = errors.New("unexpected nil value for Time__") 78 return ret, err 79 } 80 case KBFSArchivedType_TIME_STRING: 81 if o.TimeString__ == nil { 82 err = errors.New("unexpected nil value for TimeString__") 83 return ret, err 84 } 85 case KBFSArchivedType_REL_TIME_STRING: 86 if o.RelTimeString__ == nil { 87 err = errors.New("unexpected nil value for RelTimeString__") 88 return ret, err 89 } 90 } 91 return o.KBFSArchivedType__, nil 92 } 93 94 func (o KBFSArchivedParam) Revision() (res KBFSRevision) { 95 if o.KBFSArchivedType__ != KBFSArchivedType_REVISION { 96 panic("wrong case accessed") 97 } 98 if o.Revision__ == nil { 99 return 100 } 101 return *o.Revision__ 102 } 103 104 func (o KBFSArchivedParam) Time() (res Time) { 105 if o.KBFSArchivedType__ != KBFSArchivedType_TIME { 106 panic("wrong case accessed") 107 } 108 if o.Time__ == nil { 109 return 110 } 111 return *o.Time__ 112 } 113 114 func (o KBFSArchivedParam) TimeString() (res string) { 115 if o.KBFSArchivedType__ != KBFSArchivedType_TIME_STRING { 116 panic("wrong case accessed") 117 } 118 if o.TimeString__ == nil { 119 return 120 } 121 return *o.TimeString__ 122 } 123 124 func (o KBFSArchivedParam) RelTimeString() (res string) { 125 if o.KBFSArchivedType__ != KBFSArchivedType_REL_TIME_STRING { 126 panic("wrong case accessed") 127 } 128 if o.RelTimeString__ == nil { 129 return 130 } 131 return *o.RelTimeString__ 132 } 133 134 func NewKBFSArchivedParamWithRevision(v KBFSRevision) KBFSArchivedParam { 135 return KBFSArchivedParam{ 136 KBFSArchivedType__: KBFSArchivedType_REVISION, 137 Revision__: &v, 138 } 139 } 140 141 func NewKBFSArchivedParamWithTime(v Time) KBFSArchivedParam { 142 return KBFSArchivedParam{ 143 KBFSArchivedType__: KBFSArchivedType_TIME, 144 Time__: &v, 145 } 146 } 147 148 func NewKBFSArchivedParamWithTimeString(v string) KBFSArchivedParam { 149 return KBFSArchivedParam{ 150 KBFSArchivedType__: KBFSArchivedType_TIME_STRING, 151 TimeString__: &v, 152 } 153 } 154 155 func NewKBFSArchivedParamWithRelTimeString(v string) KBFSArchivedParam { 156 return KBFSArchivedParam{ 157 KBFSArchivedType__: KBFSArchivedType_REL_TIME_STRING, 158 RelTimeString__: &v, 159 } 160 } 161 162 func (o KBFSArchivedParam) DeepCopy() KBFSArchivedParam { 163 return KBFSArchivedParam{ 164 KBFSArchivedType__: o.KBFSArchivedType__.DeepCopy(), 165 Revision__: (func(x *KBFSRevision) *KBFSRevision { 166 if x == nil { 167 return nil 168 } 169 tmp := (*x).DeepCopy() 170 return &tmp 171 })(o.Revision__), 172 Time__: (func(x *Time) *Time { 173 if x == nil { 174 return nil 175 } 176 tmp := (*x).DeepCopy() 177 return &tmp 178 })(o.Time__), 179 TimeString__: (func(x *string) *string { 180 if x == nil { 181 return nil 182 } 183 tmp := (*x) 184 return &tmp 185 })(o.TimeString__), 186 RelTimeString__: (func(x *string) *string { 187 if x == nil { 188 return nil 189 } 190 tmp := (*x) 191 return &tmp 192 })(o.RelTimeString__), 193 } 194 } 195 196 type KBFSArchivedPath struct { 197 Path string `codec:"path" json:"path"` 198 ArchivedParam KBFSArchivedParam `codec:"archivedParam" json:"archivedParam"` 199 IdentifyBehavior *TLFIdentifyBehavior `codec:"identifyBehavior,omitempty" json:"identifyBehavior,omitempty"` 200 } 201 202 func (o KBFSArchivedPath) DeepCopy() KBFSArchivedPath { 203 return KBFSArchivedPath{ 204 Path: o.Path, 205 ArchivedParam: o.ArchivedParam.DeepCopy(), 206 IdentifyBehavior: (func(x *TLFIdentifyBehavior) *TLFIdentifyBehavior { 207 if x == nil { 208 return nil 209 } 210 tmp := (*x).DeepCopy() 211 return &tmp 212 })(o.IdentifyBehavior), 213 } 214 } 215 216 type KBFSPath struct { 217 Path string `codec:"path" json:"path"` 218 IdentifyBehavior *TLFIdentifyBehavior `codec:"identifyBehavior,omitempty" json:"identifyBehavior,omitempty"` 219 } 220 221 func (o KBFSPath) DeepCopy() KBFSPath { 222 return KBFSPath{ 223 Path: o.Path, 224 IdentifyBehavior: (func(x *TLFIdentifyBehavior) *TLFIdentifyBehavior { 225 if x == nil { 226 return nil 227 } 228 tmp := (*x).DeepCopy() 229 return &tmp 230 })(o.IdentifyBehavior), 231 } 232 } 233 234 type PathType int 235 236 const ( 237 PathType_LOCAL PathType = 0 238 PathType_KBFS PathType = 1 239 PathType_KBFS_ARCHIVED PathType = 2 240 ) 241 242 func (o PathType) DeepCopy() PathType { return o } 243 244 var PathTypeMap = map[string]PathType{ 245 "LOCAL": 0, 246 "KBFS": 1, 247 "KBFS_ARCHIVED": 2, 248 } 249 250 var PathTypeRevMap = map[PathType]string{ 251 0: "LOCAL", 252 1: "KBFS", 253 2: "KBFS_ARCHIVED", 254 } 255 256 func (e PathType) String() string { 257 if v, ok := PathTypeRevMap[e]; ok { 258 return v 259 } 260 return fmt.Sprintf("%v", int(e)) 261 } 262 263 type Path struct { 264 PathType__ PathType `codec:"PathType" json:"PathType"` 265 Local__ *string `codec:"local,omitempty" json:"local,omitempty"` 266 Kbfs__ *KBFSPath `codec:"kbfs,omitempty" json:"kbfs,omitempty"` 267 KbfsArchived__ *KBFSArchivedPath `codec:"kbfsArchived,omitempty" json:"kbfsArchived,omitempty"` 268 } 269 270 func (o *Path) PathType() (ret PathType, err error) { 271 switch o.PathType__ { 272 case PathType_LOCAL: 273 if o.Local__ == nil { 274 err = errors.New("unexpected nil value for Local__") 275 return ret, err 276 } 277 case PathType_KBFS: 278 if o.Kbfs__ == nil { 279 err = errors.New("unexpected nil value for Kbfs__") 280 return ret, err 281 } 282 case PathType_KBFS_ARCHIVED: 283 if o.KbfsArchived__ == nil { 284 err = errors.New("unexpected nil value for KbfsArchived__") 285 return ret, err 286 } 287 } 288 return o.PathType__, nil 289 } 290 291 func (o Path) Local() (res string) { 292 if o.PathType__ != PathType_LOCAL { 293 panic("wrong case accessed") 294 } 295 if o.Local__ == nil { 296 return 297 } 298 return *o.Local__ 299 } 300 301 func (o Path) Kbfs() (res KBFSPath) { 302 if o.PathType__ != PathType_KBFS { 303 panic("wrong case accessed") 304 } 305 if o.Kbfs__ == nil { 306 return 307 } 308 return *o.Kbfs__ 309 } 310 311 func (o Path) KbfsArchived() (res KBFSArchivedPath) { 312 if o.PathType__ != PathType_KBFS_ARCHIVED { 313 panic("wrong case accessed") 314 } 315 if o.KbfsArchived__ == nil { 316 return 317 } 318 return *o.KbfsArchived__ 319 } 320 321 func NewPathWithLocal(v string) Path { 322 return Path{ 323 PathType__: PathType_LOCAL, 324 Local__: &v, 325 } 326 } 327 328 func NewPathWithKbfs(v KBFSPath) Path { 329 return Path{ 330 PathType__: PathType_KBFS, 331 Kbfs__: &v, 332 } 333 } 334 335 func NewPathWithKbfsArchived(v KBFSArchivedPath) Path { 336 return Path{ 337 PathType__: PathType_KBFS_ARCHIVED, 338 KbfsArchived__: &v, 339 } 340 } 341 342 func (o Path) DeepCopy() Path { 343 return Path{ 344 PathType__: o.PathType__.DeepCopy(), 345 Local__: (func(x *string) *string { 346 if x == nil { 347 return nil 348 } 349 tmp := (*x) 350 return &tmp 351 })(o.Local__), 352 Kbfs__: (func(x *KBFSPath) *KBFSPath { 353 if x == nil { 354 return nil 355 } 356 tmp := (*x).DeepCopy() 357 return &tmp 358 })(o.Kbfs__), 359 KbfsArchived__: (func(x *KBFSArchivedPath) *KBFSArchivedPath { 360 if x == nil { 361 return nil 362 } 363 tmp := (*x).DeepCopy() 364 return &tmp 365 })(o.KbfsArchived__), 366 } 367 } 368 369 type DirentType int 370 371 const ( 372 DirentType_FILE DirentType = 0 373 DirentType_DIR DirentType = 1 374 DirentType_SYM DirentType = 2 375 DirentType_EXEC DirentType = 3 376 ) 377 378 func (o DirentType) DeepCopy() DirentType { return o } 379 380 var DirentTypeMap = map[string]DirentType{ 381 "FILE": 0, 382 "DIR": 1, 383 "SYM": 2, 384 "EXEC": 3, 385 } 386 387 var DirentTypeRevMap = map[DirentType]string{ 388 0: "FILE", 389 1: "DIR", 390 2: "SYM", 391 3: "EXEC", 392 } 393 394 func (e DirentType) String() string { 395 if v, ok := DirentTypeRevMap[e]; ok { 396 return v 397 } 398 return fmt.Sprintf("%v", int(e)) 399 } 400 401 type PrefetchStatus int 402 403 const ( 404 PrefetchStatus_NOT_STARTED PrefetchStatus = 0 405 PrefetchStatus_IN_PROGRESS PrefetchStatus = 1 406 PrefetchStatus_COMPLETE PrefetchStatus = 2 407 ) 408 409 func (o PrefetchStatus) DeepCopy() PrefetchStatus { return o } 410 411 var PrefetchStatusMap = map[string]PrefetchStatus{ 412 "NOT_STARTED": 0, 413 "IN_PROGRESS": 1, 414 "COMPLETE": 2, 415 } 416 417 var PrefetchStatusRevMap = map[PrefetchStatus]string{ 418 0: "NOT_STARTED", 419 1: "IN_PROGRESS", 420 2: "COMPLETE", 421 } 422 423 func (e PrefetchStatus) String() string { 424 if v, ok := PrefetchStatusRevMap[e]; ok { 425 return v 426 } 427 return fmt.Sprintf("%v", int(e)) 428 } 429 430 type PrefetchProgress struct { 431 Start Time `codec:"start" json:"start"` 432 EndEstimate Time `codec:"endEstimate" json:"endEstimate"` 433 BytesTotal int64 `codec:"bytesTotal" json:"bytesTotal"` 434 BytesFetched int64 `codec:"bytesFetched" json:"bytesFetched"` 435 } 436 437 func (o PrefetchProgress) DeepCopy() PrefetchProgress { 438 return PrefetchProgress{ 439 Start: o.Start.DeepCopy(), 440 EndEstimate: o.EndEstimate.DeepCopy(), 441 BytesTotal: o.BytesTotal, 442 BytesFetched: o.BytesFetched, 443 } 444 } 445 446 type Dirent struct { 447 Time Time `codec:"time" json:"time"` 448 Size int `codec:"size" json:"size"` 449 Name string `codec:"name" json:"name"` 450 DirentType DirentType `codec:"direntType" json:"direntType"` 451 LastWriterUnverified User `codec:"lastWriterUnverified" json:"lastWriterUnverified"` 452 Writable bool `codec:"writable" json:"writable"` 453 PrefetchStatus PrefetchStatus `codec:"prefetchStatus" json:"prefetchStatus"` 454 PrefetchProgress PrefetchProgress `codec:"prefetchProgress" json:"prefetchProgress"` 455 SymlinkTarget string `codec:"symlinkTarget" json:"symlinkTarget"` 456 } 457 458 func (o Dirent) DeepCopy() Dirent { 459 return Dirent{ 460 Time: o.Time.DeepCopy(), 461 Size: o.Size, 462 Name: o.Name, 463 DirentType: o.DirentType.DeepCopy(), 464 LastWriterUnverified: o.LastWriterUnverified.DeepCopy(), 465 Writable: o.Writable, 466 PrefetchStatus: o.PrefetchStatus.DeepCopy(), 467 PrefetchProgress: o.PrefetchProgress.DeepCopy(), 468 SymlinkTarget: o.SymlinkTarget, 469 } 470 } 471 472 type DirentWithRevision struct { 473 Entry Dirent `codec:"entry" json:"entry"` 474 Revision KBFSRevision `codec:"revision" json:"revision"` 475 } 476 477 func (o DirentWithRevision) DeepCopy() DirentWithRevision { 478 return DirentWithRevision{ 479 Entry: o.Entry.DeepCopy(), 480 Revision: o.Revision.DeepCopy(), 481 } 482 } 483 484 type RevisionSpanType int 485 486 const ( 487 RevisionSpanType_DEFAULT RevisionSpanType = 0 488 RevisionSpanType_LAST_FIVE RevisionSpanType = 1 489 ) 490 491 func (o RevisionSpanType) DeepCopy() RevisionSpanType { return o } 492 493 var RevisionSpanTypeMap = map[string]RevisionSpanType{ 494 "DEFAULT": 0, 495 "LAST_FIVE": 1, 496 } 497 498 var RevisionSpanTypeRevMap = map[RevisionSpanType]string{ 499 0: "DEFAULT", 500 1: "LAST_FIVE", 501 } 502 503 func (e RevisionSpanType) String() string { 504 if v, ok := RevisionSpanTypeRevMap[e]; ok { 505 return v 506 } 507 return fmt.Sprintf("%v", int(e)) 508 } 509 510 type ErrorNum int 511 512 func (o ErrorNum) DeepCopy() ErrorNum { 513 return o 514 } 515 516 type OpenFlags int 517 518 const ( 519 OpenFlags_READ OpenFlags = 0 520 OpenFlags_REPLACE OpenFlags = 1 521 OpenFlags_EXISTING OpenFlags = 2 522 OpenFlags_WRITE OpenFlags = 4 523 OpenFlags_APPEND OpenFlags = 8 524 OpenFlags_DIRECTORY OpenFlags = 16 525 ) 526 527 func (o OpenFlags) DeepCopy() OpenFlags { return o } 528 529 var OpenFlagsMap = map[string]OpenFlags{ 530 "READ": 0, 531 "REPLACE": 1, 532 "EXISTING": 2, 533 "WRITE": 4, 534 "APPEND": 8, 535 "DIRECTORY": 16, 536 } 537 538 var OpenFlagsRevMap = map[OpenFlags]string{ 539 0: "READ", 540 1: "REPLACE", 541 2: "EXISTING", 542 4: "WRITE", 543 8: "APPEND", 544 16: "DIRECTORY", 545 } 546 547 func (e OpenFlags) String() string { 548 if v, ok := OpenFlagsRevMap[e]; ok { 549 return v 550 } 551 return fmt.Sprintf("%v", int(e)) 552 } 553 554 type Progress int 555 556 func (o Progress) DeepCopy() Progress { 557 return o 558 } 559 560 type SimpleFSListResult struct { 561 Entries []Dirent `codec:"entries" json:"entries"` 562 Progress Progress `codec:"progress" json:"progress"` 563 } 564 565 func (o SimpleFSListResult) DeepCopy() SimpleFSListResult { 566 return SimpleFSListResult{ 567 Entries: (func(x []Dirent) []Dirent { 568 if x == nil { 569 return nil 570 } 571 ret := make([]Dirent, len(x)) 572 for i, v := range x { 573 vCopy := v.DeepCopy() 574 ret[i] = vCopy 575 } 576 return ret 577 })(o.Entries), 578 Progress: o.Progress.DeepCopy(), 579 } 580 } 581 582 type FileContent struct { 583 Data []byte `codec:"data" json:"data"` 584 Progress Progress `codec:"progress" json:"progress"` 585 } 586 587 func (o FileContent) DeepCopy() FileContent { 588 return FileContent{ 589 Data: (func(x []byte) []byte { 590 if x == nil { 591 return nil 592 } 593 return append([]byte{}, x...) 594 })(o.Data), 595 Progress: o.Progress.DeepCopy(), 596 } 597 } 598 599 type AsyncOps int 600 601 const ( 602 AsyncOps_LIST AsyncOps = 0 603 AsyncOps_LIST_RECURSIVE AsyncOps = 1 604 AsyncOps_READ AsyncOps = 2 605 AsyncOps_WRITE AsyncOps = 3 606 AsyncOps_COPY AsyncOps = 4 607 AsyncOps_MOVE AsyncOps = 5 608 AsyncOps_REMOVE AsyncOps = 6 609 AsyncOps_LIST_RECURSIVE_TO_DEPTH AsyncOps = 7 610 AsyncOps_GET_REVISIONS AsyncOps = 8 611 ) 612 613 func (o AsyncOps) DeepCopy() AsyncOps { return o } 614 615 var AsyncOpsMap = map[string]AsyncOps{ 616 "LIST": 0, 617 "LIST_RECURSIVE": 1, 618 "READ": 2, 619 "WRITE": 3, 620 "COPY": 4, 621 "MOVE": 5, 622 "REMOVE": 6, 623 "LIST_RECURSIVE_TO_DEPTH": 7, 624 "GET_REVISIONS": 8, 625 } 626 627 var AsyncOpsRevMap = map[AsyncOps]string{ 628 0: "LIST", 629 1: "LIST_RECURSIVE", 630 2: "READ", 631 3: "WRITE", 632 4: "COPY", 633 5: "MOVE", 634 6: "REMOVE", 635 7: "LIST_RECURSIVE_TO_DEPTH", 636 8: "GET_REVISIONS", 637 } 638 639 func (e AsyncOps) String() string { 640 if v, ok := AsyncOpsRevMap[e]; ok { 641 return v 642 } 643 return fmt.Sprintf("%v", int(e)) 644 } 645 646 type ListFilter int 647 648 const ( 649 ListFilter_NO_FILTER ListFilter = 0 650 ListFilter_FILTER_ALL_HIDDEN ListFilter = 1 651 ListFilter_FILTER_SYSTEM_HIDDEN ListFilter = 2 652 ) 653 654 func (o ListFilter) DeepCopy() ListFilter { return o } 655 656 var ListFilterMap = map[string]ListFilter{ 657 "NO_FILTER": 0, 658 "FILTER_ALL_HIDDEN": 1, 659 "FILTER_SYSTEM_HIDDEN": 2, 660 } 661 662 var ListFilterRevMap = map[ListFilter]string{ 663 0: "NO_FILTER", 664 1: "FILTER_ALL_HIDDEN", 665 2: "FILTER_SYSTEM_HIDDEN", 666 } 667 668 func (e ListFilter) String() string { 669 if v, ok := ListFilterRevMap[e]; ok { 670 return v 671 } 672 return fmt.Sprintf("%v", int(e)) 673 } 674 675 type ListArgs struct { 676 OpID OpID `codec:"opID" json:"opID"` 677 Path Path `codec:"path" json:"path"` 678 Filter ListFilter `codec:"filter" json:"filter"` 679 } 680 681 func (o ListArgs) DeepCopy() ListArgs { 682 return ListArgs{ 683 OpID: o.OpID.DeepCopy(), 684 Path: o.Path.DeepCopy(), 685 Filter: o.Filter.DeepCopy(), 686 } 687 } 688 689 type ListToDepthArgs struct { 690 OpID OpID `codec:"opID" json:"opID"` 691 Path Path `codec:"path" json:"path"` 692 Filter ListFilter `codec:"filter" json:"filter"` 693 Depth int `codec:"depth" json:"depth"` 694 } 695 696 func (o ListToDepthArgs) DeepCopy() ListToDepthArgs { 697 return ListToDepthArgs{ 698 OpID: o.OpID.DeepCopy(), 699 Path: o.Path.DeepCopy(), 700 Filter: o.Filter.DeepCopy(), 701 Depth: o.Depth, 702 } 703 } 704 705 type RemoveArgs struct { 706 OpID OpID `codec:"opID" json:"opID"` 707 Path Path `codec:"path" json:"path"` 708 Recursive bool `codec:"recursive" json:"recursive"` 709 } 710 711 func (o RemoveArgs) DeepCopy() RemoveArgs { 712 return RemoveArgs{ 713 OpID: o.OpID.DeepCopy(), 714 Path: o.Path.DeepCopy(), 715 Recursive: o.Recursive, 716 } 717 } 718 719 type ReadArgs struct { 720 OpID OpID `codec:"opID" json:"opID"` 721 Path Path `codec:"path" json:"path"` 722 Offset int64 `codec:"offset" json:"offset"` 723 Size int `codec:"size" json:"size"` 724 } 725 726 func (o ReadArgs) DeepCopy() ReadArgs { 727 return ReadArgs{ 728 OpID: o.OpID.DeepCopy(), 729 Path: o.Path.DeepCopy(), 730 Offset: o.Offset, 731 Size: o.Size, 732 } 733 } 734 735 type WriteArgs struct { 736 OpID OpID `codec:"opID" json:"opID"` 737 Path Path `codec:"path" json:"path"` 738 Offset int64 `codec:"offset" json:"offset"` 739 } 740 741 func (o WriteArgs) DeepCopy() WriteArgs { 742 return WriteArgs{ 743 OpID: o.OpID.DeepCopy(), 744 Path: o.Path.DeepCopy(), 745 Offset: o.Offset, 746 } 747 } 748 749 type CopyArgs struct { 750 OpID OpID `codec:"opID" json:"opID"` 751 Src Path `codec:"src" json:"src"` 752 Dest Path `codec:"dest" json:"dest"` 753 OverwriteExistingFiles bool `codec:"overwriteExistingFiles" json:"overwriteExistingFiles"` 754 } 755 756 func (o CopyArgs) DeepCopy() CopyArgs { 757 return CopyArgs{ 758 OpID: o.OpID.DeepCopy(), 759 Src: o.Src.DeepCopy(), 760 Dest: o.Dest.DeepCopy(), 761 OverwriteExistingFiles: o.OverwriteExistingFiles, 762 } 763 } 764 765 type MoveArgs struct { 766 OpID OpID `codec:"opID" json:"opID"` 767 Src Path `codec:"src" json:"src"` 768 Dest Path `codec:"dest" json:"dest"` 769 OverwriteExistingFiles bool `codec:"overwriteExistingFiles" json:"overwriteExistingFiles"` 770 } 771 772 func (o MoveArgs) DeepCopy() MoveArgs { 773 return MoveArgs{ 774 OpID: o.OpID.DeepCopy(), 775 Src: o.Src.DeepCopy(), 776 Dest: o.Dest.DeepCopy(), 777 OverwriteExistingFiles: o.OverwriteExistingFiles, 778 } 779 } 780 781 type GetRevisionsArgs struct { 782 OpID OpID `codec:"opID" json:"opID"` 783 Path Path `codec:"path" json:"path"` 784 SpanType RevisionSpanType `codec:"spanType" json:"spanType"` 785 } 786 787 func (o GetRevisionsArgs) DeepCopy() GetRevisionsArgs { 788 return GetRevisionsArgs{ 789 OpID: o.OpID.DeepCopy(), 790 Path: o.Path.DeepCopy(), 791 SpanType: o.SpanType.DeepCopy(), 792 } 793 } 794 795 type OpDescription struct { 796 AsyncOp__ AsyncOps `codec:"asyncOp" json:"asyncOp"` 797 List__ *ListArgs `codec:"list,omitempty" json:"list,omitempty"` 798 ListRecursive__ *ListArgs `codec:"listRecursive,omitempty" json:"listRecursive,omitempty"` 799 ListRecursiveToDepth__ *ListToDepthArgs `codec:"listRecursiveToDepth,omitempty" json:"listRecursiveToDepth,omitempty"` 800 Read__ *ReadArgs `codec:"read,omitempty" json:"read,omitempty"` 801 Write__ *WriteArgs `codec:"write,omitempty" json:"write,omitempty"` 802 Copy__ *CopyArgs `codec:"copy,omitempty" json:"copy,omitempty"` 803 Move__ *MoveArgs `codec:"move,omitempty" json:"move,omitempty"` 804 Remove__ *RemoveArgs `codec:"remove,omitempty" json:"remove,omitempty"` 805 GetRevisions__ *GetRevisionsArgs `codec:"getRevisions,omitempty" json:"getRevisions,omitempty"` 806 } 807 808 func (o *OpDescription) AsyncOp() (ret AsyncOps, err error) { 809 switch o.AsyncOp__ { 810 case AsyncOps_LIST: 811 if o.List__ == nil { 812 err = errors.New("unexpected nil value for List__") 813 return ret, err 814 } 815 case AsyncOps_LIST_RECURSIVE: 816 if o.ListRecursive__ == nil { 817 err = errors.New("unexpected nil value for ListRecursive__") 818 return ret, err 819 } 820 case AsyncOps_LIST_RECURSIVE_TO_DEPTH: 821 if o.ListRecursiveToDepth__ == nil { 822 err = errors.New("unexpected nil value for ListRecursiveToDepth__") 823 return ret, err 824 } 825 case AsyncOps_READ: 826 if o.Read__ == nil { 827 err = errors.New("unexpected nil value for Read__") 828 return ret, err 829 } 830 case AsyncOps_WRITE: 831 if o.Write__ == nil { 832 err = errors.New("unexpected nil value for Write__") 833 return ret, err 834 } 835 case AsyncOps_COPY: 836 if o.Copy__ == nil { 837 err = errors.New("unexpected nil value for Copy__") 838 return ret, err 839 } 840 case AsyncOps_MOVE: 841 if o.Move__ == nil { 842 err = errors.New("unexpected nil value for Move__") 843 return ret, err 844 } 845 case AsyncOps_REMOVE: 846 if o.Remove__ == nil { 847 err = errors.New("unexpected nil value for Remove__") 848 return ret, err 849 } 850 case AsyncOps_GET_REVISIONS: 851 if o.GetRevisions__ == nil { 852 err = errors.New("unexpected nil value for GetRevisions__") 853 return ret, err 854 } 855 } 856 return o.AsyncOp__, nil 857 } 858 859 func (o OpDescription) List() (res ListArgs) { 860 if o.AsyncOp__ != AsyncOps_LIST { 861 panic("wrong case accessed") 862 } 863 if o.List__ == nil { 864 return 865 } 866 return *o.List__ 867 } 868 869 func (o OpDescription) ListRecursive() (res ListArgs) { 870 if o.AsyncOp__ != AsyncOps_LIST_RECURSIVE { 871 panic("wrong case accessed") 872 } 873 if o.ListRecursive__ == nil { 874 return 875 } 876 return *o.ListRecursive__ 877 } 878 879 func (o OpDescription) ListRecursiveToDepth() (res ListToDepthArgs) { 880 if o.AsyncOp__ != AsyncOps_LIST_RECURSIVE_TO_DEPTH { 881 panic("wrong case accessed") 882 } 883 if o.ListRecursiveToDepth__ == nil { 884 return 885 } 886 return *o.ListRecursiveToDepth__ 887 } 888 889 func (o OpDescription) Read() (res ReadArgs) { 890 if o.AsyncOp__ != AsyncOps_READ { 891 panic("wrong case accessed") 892 } 893 if o.Read__ == nil { 894 return 895 } 896 return *o.Read__ 897 } 898 899 func (o OpDescription) Write() (res WriteArgs) { 900 if o.AsyncOp__ != AsyncOps_WRITE { 901 panic("wrong case accessed") 902 } 903 if o.Write__ == nil { 904 return 905 } 906 return *o.Write__ 907 } 908 909 func (o OpDescription) Copy() (res CopyArgs) { 910 if o.AsyncOp__ != AsyncOps_COPY { 911 panic("wrong case accessed") 912 } 913 if o.Copy__ == nil { 914 return 915 } 916 return *o.Copy__ 917 } 918 919 func (o OpDescription) Move() (res MoveArgs) { 920 if o.AsyncOp__ != AsyncOps_MOVE { 921 panic("wrong case accessed") 922 } 923 if o.Move__ == nil { 924 return 925 } 926 return *o.Move__ 927 } 928 929 func (o OpDescription) Remove() (res RemoveArgs) { 930 if o.AsyncOp__ != AsyncOps_REMOVE { 931 panic("wrong case accessed") 932 } 933 if o.Remove__ == nil { 934 return 935 } 936 return *o.Remove__ 937 } 938 939 func (o OpDescription) GetRevisions() (res GetRevisionsArgs) { 940 if o.AsyncOp__ != AsyncOps_GET_REVISIONS { 941 panic("wrong case accessed") 942 } 943 if o.GetRevisions__ == nil { 944 return 945 } 946 return *o.GetRevisions__ 947 } 948 949 func NewOpDescriptionWithList(v ListArgs) OpDescription { 950 return OpDescription{ 951 AsyncOp__: AsyncOps_LIST, 952 List__: &v, 953 } 954 } 955 956 func NewOpDescriptionWithListRecursive(v ListArgs) OpDescription { 957 return OpDescription{ 958 AsyncOp__: AsyncOps_LIST_RECURSIVE, 959 ListRecursive__: &v, 960 } 961 } 962 963 func NewOpDescriptionWithListRecursiveToDepth(v ListToDepthArgs) OpDescription { 964 return OpDescription{ 965 AsyncOp__: AsyncOps_LIST_RECURSIVE_TO_DEPTH, 966 ListRecursiveToDepth__: &v, 967 } 968 } 969 970 func NewOpDescriptionWithRead(v ReadArgs) OpDescription { 971 return OpDescription{ 972 AsyncOp__: AsyncOps_READ, 973 Read__: &v, 974 } 975 } 976 977 func NewOpDescriptionWithWrite(v WriteArgs) OpDescription { 978 return OpDescription{ 979 AsyncOp__: AsyncOps_WRITE, 980 Write__: &v, 981 } 982 } 983 984 func NewOpDescriptionWithCopy(v CopyArgs) OpDescription { 985 return OpDescription{ 986 AsyncOp__: AsyncOps_COPY, 987 Copy__: &v, 988 } 989 } 990 991 func NewOpDescriptionWithMove(v MoveArgs) OpDescription { 992 return OpDescription{ 993 AsyncOp__: AsyncOps_MOVE, 994 Move__: &v, 995 } 996 } 997 998 func NewOpDescriptionWithRemove(v RemoveArgs) OpDescription { 999 return OpDescription{ 1000 AsyncOp__: AsyncOps_REMOVE, 1001 Remove__: &v, 1002 } 1003 } 1004 1005 func NewOpDescriptionWithGetRevisions(v GetRevisionsArgs) OpDescription { 1006 return OpDescription{ 1007 AsyncOp__: AsyncOps_GET_REVISIONS, 1008 GetRevisions__: &v, 1009 } 1010 } 1011 1012 func (o OpDescription) DeepCopy() OpDescription { 1013 return OpDescription{ 1014 AsyncOp__: o.AsyncOp__.DeepCopy(), 1015 List__: (func(x *ListArgs) *ListArgs { 1016 if x == nil { 1017 return nil 1018 } 1019 tmp := (*x).DeepCopy() 1020 return &tmp 1021 })(o.List__), 1022 ListRecursive__: (func(x *ListArgs) *ListArgs { 1023 if x == nil { 1024 return nil 1025 } 1026 tmp := (*x).DeepCopy() 1027 return &tmp 1028 })(o.ListRecursive__), 1029 ListRecursiveToDepth__: (func(x *ListToDepthArgs) *ListToDepthArgs { 1030 if x == nil { 1031 return nil 1032 } 1033 tmp := (*x).DeepCopy() 1034 return &tmp 1035 })(o.ListRecursiveToDepth__), 1036 Read__: (func(x *ReadArgs) *ReadArgs { 1037 if x == nil { 1038 return nil 1039 } 1040 tmp := (*x).DeepCopy() 1041 return &tmp 1042 })(o.Read__), 1043 Write__: (func(x *WriteArgs) *WriteArgs { 1044 if x == nil { 1045 return nil 1046 } 1047 tmp := (*x).DeepCopy() 1048 return &tmp 1049 })(o.Write__), 1050 Copy__: (func(x *CopyArgs) *CopyArgs { 1051 if x == nil { 1052 return nil 1053 } 1054 tmp := (*x).DeepCopy() 1055 return &tmp 1056 })(o.Copy__), 1057 Move__: (func(x *MoveArgs) *MoveArgs { 1058 if x == nil { 1059 return nil 1060 } 1061 tmp := (*x).DeepCopy() 1062 return &tmp 1063 })(o.Move__), 1064 Remove__: (func(x *RemoveArgs) *RemoveArgs { 1065 if x == nil { 1066 return nil 1067 } 1068 tmp := (*x).DeepCopy() 1069 return &tmp 1070 })(o.Remove__), 1071 GetRevisions__: (func(x *GetRevisionsArgs) *GetRevisionsArgs { 1072 if x == nil { 1073 return nil 1074 } 1075 tmp := (*x).DeepCopy() 1076 return &tmp 1077 })(o.GetRevisions__), 1078 } 1079 } 1080 1081 type GetRevisionsResult struct { 1082 Revisions []DirentWithRevision `codec:"revisions" json:"revisions"` 1083 Progress Progress `codec:"progress" json:"progress"` 1084 } 1085 1086 func (o GetRevisionsResult) DeepCopy() GetRevisionsResult { 1087 return GetRevisionsResult{ 1088 Revisions: (func(x []DirentWithRevision) []DirentWithRevision { 1089 if x == nil { 1090 return nil 1091 } 1092 ret := make([]DirentWithRevision, len(x)) 1093 for i, v := range x { 1094 vCopy := v.DeepCopy() 1095 ret[i] = vCopy 1096 } 1097 return ret 1098 })(o.Revisions), 1099 Progress: o.Progress.DeepCopy(), 1100 } 1101 } 1102 1103 type OpProgress struct { 1104 Start Time `codec:"start" json:"start"` 1105 EndEstimate Time `codec:"endEstimate" json:"endEstimate"` 1106 OpType AsyncOps `codec:"opType" json:"opType"` 1107 BytesTotal int64 `codec:"bytesTotal" json:"bytesTotal"` 1108 BytesRead int64 `codec:"bytesRead" json:"bytesRead"` 1109 BytesWritten int64 `codec:"bytesWritten" json:"bytesWritten"` 1110 FilesTotal int64 `codec:"filesTotal" json:"filesTotal"` 1111 FilesRead int64 `codec:"filesRead" json:"filesRead"` 1112 FilesWritten int64 `codec:"filesWritten" json:"filesWritten"` 1113 } 1114 1115 func (o OpProgress) DeepCopy() OpProgress { 1116 return OpProgress{ 1117 Start: o.Start.DeepCopy(), 1118 EndEstimate: o.EndEstimate.DeepCopy(), 1119 OpType: o.OpType.DeepCopy(), 1120 BytesTotal: o.BytesTotal, 1121 BytesRead: o.BytesRead, 1122 BytesWritten: o.BytesWritten, 1123 FilesTotal: o.FilesTotal, 1124 FilesRead: o.FilesRead, 1125 FilesWritten: o.FilesWritten, 1126 } 1127 } 1128 1129 type SimpleFSQuotaUsage struct { 1130 UsageBytes int64 `codec:"usageBytes" json:"usageBytes"` 1131 ArchiveBytes int64 `codec:"archiveBytes" json:"archiveBytes"` 1132 LimitBytes int64 `codec:"limitBytes" json:"limitBytes"` 1133 GitUsageBytes int64 `codec:"gitUsageBytes" json:"gitUsageBytes"` 1134 GitArchiveBytes int64 `codec:"gitArchiveBytes" json:"gitArchiveBytes"` 1135 GitLimitBytes int64 `codec:"gitLimitBytes" json:"gitLimitBytes"` 1136 } 1137 1138 func (o SimpleFSQuotaUsage) DeepCopy() SimpleFSQuotaUsage { 1139 return SimpleFSQuotaUsage{ 1140 UsageBytes: o.UsageBytes, 1141 ArchiveBytes: o.ArchiveBytes, 1142 LimitBytes: o.LimitBytes, 1143 GitUsageBytes: o.GitUsageBytes, 1144 GitArchiveBytes: o.GitArchiveBytes, 1145 GitLimitBytes: o.GitLimitBytes, 1146 } 1147 } 1148 1149 type FolderSyncMode int 1150 1151 const ( 1152 FolderSyncMode_DISABLED FolderSyncMode = 0 1153 FolderSyncMode_ENABLED FolderSyncMode = 1 1154 FolderSyncMode_PARTIAL FolderSyncMode = 2 1155 ) 1156 1157 func (o FolderSyncMode) DeepCopy() FolderSyncMode { return o } 1158 1159 var FolderSyncModeMap = map[string]FolderSyncMode{ 1160 "DISABLED": 0, 1161 "ENABLED": 1, 1162 "PARTIAL": 2, 1163 } 1164 1165 var FolderSyncModeRevMap = map[FolderSyncMode]string{ 1166 0: "DISABLED", 1167 1: "ENABLED", 1168 2: "PARTIAL", 1169 } 1170 1171 func (e FolderSyncMode) String() string { 1172 if v, ok := FolderSyncModeRevMap[e]; ok { 1173 return v 1174 } 1175 return fmt.Sprintf("%v", int(e)) 1176 } 1177 1178 type FolderSyncConfig struct { 1179 Mode FolderSyncMode `codec:"mode" json:"mode"` 1180 Paths []string `codec:"paths" json:"paths"` 1181 } 1182 1183 func (o FolderSyncConfig) DeepCopy() FolderSyncConfig { 1184 return FolderSyncConfig{ 1185 Mode: o.Mode.DeepCopy(), 1186 Paths: (func(x []string) []string { 1187 if x == nil { 1188 return nil 1189 } 1190 ret := make([]string, len(x)) 1191 for i, v := range x { 1192 vCopy := v 1193 ret[i] = vCopy 1194 } 1195 return ret 1196 })(o.Paths), 1197 } 1198 } 1199 1200 type FolderSyncConfigAndStatus struct { 1201 Config FolderSyncConfig `codec:"config" json:"config"` 1202 Status FolderSyncStatus `codec:"status" json:"status"` 1203 } 1204 1205 func (o FolderSyncConfigAndStatus) DeepCopy() FolderSyncConfigAndStatus { 1206 return FolderSyncConfigAndStatus{ 1207 Config: o.Config.DeepCopy(), 1208 Status: o.Status.DeepCopy(), 1209 } 1210 } 1211 1212 type FolderSyncConfigAndStatusWithFolder struct { 1213 Folder Folder `codec:"folder" json:"folder"` 1214 Config FolderSyncConfig `codec:"config" json:"config"` 1215 Status FolderSyncStatus `codec:"status" json:"status"` 1216 } 1217 1218 func (o FolderSyncConfigAndStatusWithFolder) DeepCopy() FolderSyncConfigAndStatusWithFolder { 1219 return FolderSyncConfigAndStatusWithFolder{ 1220 Folder: o.Folder.DeepCopy(), 1221 Config: o.Config.DeepCopy(), 1222 Status: o.Status.DeepCopy(), 1223 } 1224 } 1225 1226 type SyncConfigAndStatusRes struct { 1227 Folders []FolderSyncConfigAndStatusWithFolder `codec:"folders" json:"folders"` 1228 OverallStatus FolderSyncStatus `codec:"overallStatus" json:"overallStatus"` 1229 } 1230 1231 func (o SyncConfigAndStatusRes) DeepCopy() SyncConfigAndStatusRes { 1232 return SyncConfigAndStatusRes{ 1233 Folders: (func(x []FolderSyncConfigAndStatusWithFolder) []FolderSyncConfigAndStatusWithFolder { 1234 if x == nil { 1235 return nil 1236 } 1237 ret := make([]FolderSyncConfigAndStatusWithFolder, len(x)) 1238 for i, v := range x { 1239 vCopy := v.DeepCopy() 1240 ret[i] = vCopy 1241 } 1242 return ret 1243 })(o.Folders), 1244 OverallStatus: o.OverallStatus.DeepCopy(), 1245 } 1246 } 1247 1248 type FolderWithFavFlags struct { 1249 Folder Folder `codec:"folder" json:"folder"` 1250 IsFavorite bool `codec:"isFavorite" json:"isFavorite"` 1251 IsIgnored bool `codec:"isIgnored" json:"isIgnored"` 1252 IsNew bool `codec:"isNew" json:"isNew"` 1253 } 1254 1255 func (o FolderWithFavFlags) DeepCopy() FolderWithFavFlags { 1256 return FolderWithFavFlags{ 1257 Folder: o.Folder.DeepCopy(), 1258 IsFavorite: o.IsFavorite, 1259 IsIgnored: o.IsIgnored, 1260 IsNew: o.IsNew, 1261 } 1262 } 1263 1264 type KbfsOnlineStatus int 1265 1266 const ( 1267 KbfsOnlineStatus_OFFLINE KbfsOnlineStatus = 0 1268 KbfsOnlineStatus_TRYING KbfsOnlineStatus = 1 1269 KbfsOnlineStatus_ONLINE KbfsOnlineStatus = 2 1270 ) 1271 1272 func (o KbfsOnlineStatus) DeepCopy() KbfsOnlineStatus { return o } 1273 1274 var KbfsOnlineStatusMap = map[string]KbfsOnlineStatus{ 1275 "OFFLINE": 0, 1276 "TRYING": 1, 1277 "ONLINE": 2, 1278 } 1279 1280 var KbfsOnlineStatusRevMap = map[KbfsOnlineStatus]string{ 1281 0: "OFFLINE", 1282 1: "TRYING", 1283 2: "ONLINE", 1284 } 1285 1286 func (e KbfsOnlineStatus) String() string { 1287 if v, ok := KbfsOnlineStatusRevMap[e]; ok { 1288 return v 1289 } 1290 return fmt.Sprintf("%v", int(e)) 1291 } 1292 1293 type FSSettings struct { 1294 SpaceAvailableNotificationThreshold int64 `codec:"spaceAvailableNotificationThreshold" json:"spaceAvailableNotificationThreshold"` 1295 SfmiBannerDismissed bool `codec:"sfmiBannerDismissed" json:"sfmiBannerDismissed"` 1296 SyncOnCellular bool `codec:"syncOnCellular" json:"syncOnCellular"` 1297 } 1298 1299 func (o FSSettings) DeepCopy() FSSettings { 1300 return FSSettings{ 1301 SpaceAvailableNotificationThreshold: o.SpaceAvailableNotificationThreshold, 1302 SfmiBannerDismissed: o.SfmiBannerDismissed, 1303 SyncOnCellular: o.SyncOnCellular, 1304 } 1305 } 1306 1307 type SimpleFSStats struct { 1308 ProcessStats ProcessRuntimeStats `codec:"processStats" json:"processStats"` 1309 BlockCacheDbStats []string `codec:"blockCacheDbStats" json:"blockCacheDbStats"` 1310 SyncCacheDbStats []string `codec:"syncCacheDbStats" json:"syncCacheDbStats"` 1311 RuntimeDbStats []DbStats `codec:"runtimeDbStats" json:"runtimeDbStats"` 1312 } 1313 1314 func (o SimpleFSStats) DeepCopy() SimpleFSStats { 1315 return SimpleFSStats{ 1316 ProcessStats: o.ProcessStats.DeepCopy(), 1317 BlockCacheDbStats: (func(x []string) []string { 1318 if x == nil { 1319 return nil 1320 } 1321 ret := make([]string, len(x)) 1322 for i, v := range x { 1323 vCopy := v 1324 ret[i] = vCopy 1325 } 1326 return ret 1327 })(o.BlockCacheDbStats), 1328 SyncCacheDbStats: (func(x []string) []string { 1329 if x == nil { 1330 return nil 1331 } 1332 ret := make([]string, len(x)) 1333 for i, v := range x { 1334 vCopy := v 1335 ret[i] = vCopy 1336 } 1337 return ret 1338 })(o.SyncCacheDbStats), 1339 RuntimeDbStats: (func(x []DbStats) []DbStats { 1340 if x == nil { 1341 return nil 1342 } 1343 ret := make([]DbStats, len(x)) 1344 for i, v := range x { 1345 vCopy := v.DeepCopy() 1346 ret[i] = vCopy 1347 } 1348 return ret 1349 })(o.RuntimeDbStats), 1350 } 1351 } 1352 1353 type SubscriptionTopic int 1354 1355 const ( 1356 SubscriptionTopic_FAVORITES SubscriptionTopic = 0 1357 SubscriptionTopic_JOURNAL_STATUS SubscriptionTopic = 1 1358 SubscriptionTopic_ONLINE_STATUS SubscriptionTopic = 2 1359 SubscriptionTopic_DOWNLOAD_STATUS SubscriptionTopic = 3 1360 SubscriptionTopic_FILES_TAB_BADGE SubscriptionTopic = 4 1361 SubscriptionTopic_OVERALL_SYNC_STATUS SubscriptionTopic = 5 1362 SubscriptionTopic_SETTINGS SubscriptionTopic = 6 1363 SubscriptionTopic_UPLOAD_STATUS SubscriptionTopic = 7 1364 ) 1365 1366 func (o SubscriptionTopic) DeepCopy() SubscriptionTopic { return o } 1367 1368 var SubscriptionTopicMap = map[string]SubscriptionTopic{ 1369 "FAVORITES": 0, 1370 "JOURNAL_STATUS": 1, 1371 "ONLINE_STATUS": 2, 1372 "DOWNLOAD_STATUS": 3, 1373 "FILES_TAB_BADGE": 4, 1374 "OVERALL_SYNC_STATUS": 5, 1375 "SETTINGS": 6, 1376 "UPLOAD_STATUS": 7, 1377 } 1378 1379 var SubscriptionTopicRevMap = map[SubscriptionTopic]string{ 1380 0: "FAVORITES", 1381 1: "JOURNAL_STATUS", 1382 2: "ONLINE_STATUS", 1383 3: "DOWNLOAD_STATUS", 1384 4: "FILES_TAB_BADGE", 1385 5: "OVERALL_SYNC_STATUS", 1386 6: "SETTINGS", 1387 7: "UPLOAD_STATUS", 1388 } 1389 1390 func (e SubscriptionTopic) String() string { 1391 if v, ok := SubscriptionTopicRevMap[e]; ok { 1392 return v 1393 } 1394 return fmt.Sprintf("%v", int(e)) 1395 } 1396 1397 type PathSubscriptionTopic int 1398 1399 const ( 1400 PathSubscriptionTopic_CHILDREN PathSubscriptionTopic = 0 1401 PathSubscriptionTopic_STAT PathSubscriptionTopic = 1 1402 ) 1403 1404 func (o PathSubscriptionTopic) DeepCopy() PathSubscriptionTopic { return o } 1405 1406 var PathSubscriptionTopicMap = map[string]PathSubscriptionTopic{ 1407 "CHILDREN": 0, 1408 "STAT": 1, 1409 } 1410 1411 var PathSubscriptionTopicRevMap = map[PathSubscriptionTopic]string{ 1412 0: "CHILDREN", 1413 1: "STAT", 1414 } 1415 1416 func (e PathSubscriptionTopic) String() string { 1417 if v, ok := PathSubscriptionTopicRevMap[e]; ok { 1418 return v 1419 } 1420 return fmt.Sprintf("%v", int(e)) 1421 } 1422 1423 type DownloadInfo struct { 1424 DownloadID string `codec:"downloadID" json:"downloadID"` 1425 Path KBFSPath `codec:"path" json:"path"` 1426 Filename string `codec:"filename" json:"filename"` 1427 StartTime Time `codec:"startTime" json:"startTime"` 1428 IsRegularDownload bool `codec:"isRegularDownload" json:"isRegularDownload"` 1429 } 1430 1431 func (o DownloadInfo) DeepCopy() DownloadInfo { 1432 return DownloadInfo{ 1433 DownloadID: o.DownloadID, 1434 Path: o.Path.DeepCopy(), 1435 Filename: o.Filename, 1436 StartTime: o.StartTime.DeepCopy(), 1437 IsRegularDownload: o.IsRegularDownload, 1438 } 1439 } 1440 1441 type DownloadState struct { 1442 DownloadID string `codec:"downloadID" json:"downloadID"` 1443 Progress float64 `codec:"progress" json:"progress"` 1444 EndEstimate Time `codec:"endEstimate" json:"endEstimate"` 1445 LocalPath string `codec:"localPath" json:"localPath"` 1446 Error string `codec:"error" json:"error"` 1447 Done bool `codec:"done" json:"done"` 1448 Canceled bool `codec:"canceled" json:"canceled"` 1449 } 1450 1451 func (o DownloadState) DeepCopy() DownloadState { 1452 return DownloadState{ 1453 DownloadID: o.DownloadID, 1454 Progress: o.Progress, 1455 EndEstimate: o.EndEstimate.DeepCopy(), 1456 LocalPath: o.LocalPath, 1457 Error: o.Error, 1458 Done: o.Done, 1459 Canceled: o.Canceled, 1460 } 1461 } 1462 1463 type DownloadStatus struct { 1464 RegularDownloadIDs []string `codec:"regularDownloadIDs" json:"regularDownloadIDs"` 1465 States []DownloadState `codec:"states" json:"states"` 1466 } 1467 1468 func (o DownloadStatus) DeepCopy() DownloadStatus { 1469 return DownloadStatus{ 1470 RegularDownloadIDs: (func(x []string) []string { 1471 if x == nil { 1472 return nil 1473 } 1474 ret := make([]string, len(x)) 1475 for i, v := range x { 1476 vCopy := v 1477 ret[i] = vCopy 1478 } 1479 return ret 1480 })(o.RegularDownloadIDs), 1481 States: (func(x []DownloadState) []DownloadState { 1482 if x == nil { 1483 return nil 1484 } 1485 ret := make([]DownloadState, len(x)) 1486 for i, v := range x { 1487 vCopy := v.DeepCopy() 1488 ret[i] = vCopy 1489 } 1490 return ret 1491 })(o.States), 1492 } 1493 } 1494 1495 type UploadState struct { 1496 UploadID string `codec:"uploadID" json:"uploadID"` 1497 TargetPath KBFSPath `codec:"targetPath" json:"targetPath"` 1498 Error *string `codec:"error,omitempty" json:"error,omitempty"` 1499 Canceled bool `codec:"canceled" json:"canceled"` 1500 } 1501 1502 func (o UploadState) DeepCopy() UploadState { 1503 return UploadState{ 1504 UploadID: o.UploadID, 1505 TargetPath: o.TargetPath.DeepCopy(), 1506 Error: (func(x *string) *string { 1507 if x == nil { 1508 return nil 1509 } 1510 tmp := (*x) 1511 return &tmp 1512 })(o.Error), 1513 Canceled: o.Canceled, 1514 } 1515 } 1516 1517 type FilesTabBadge int 1518 1519 const ( 1520 FilesTabBadge_NONE FilesTabBadge = 0 1521 FilesTabBadge_UPLOADING_STUCK FilesTabBadge = 1 1522 FilesTabBadge_AWAITING_UPLOAD FilesTabBadge = 2 1523 FilesTabBadge_UPLOADING FilesTabBadge = 3 1524 ) 1525 1526 func (o FilesTabBadge) DeepCopy() FilesTabBadge { return o } 1527 1528 var FilesTabBadgeMap = map[string]FilesTabBadge{ 1529 "NONE": 0, 1530 "UPLOADING_STUCK": 1, 1531 "AWAITING_UPLOAD": 2, 1532 "UPLOADING": 3, 1533 } 1534 1535 var FilesTabBadgeRevMap = map[FilesTabBadge]string{ 1536 0: "NONE", 1537 1: "UPLOADING_STUCK", 1538 2: "AWAITING_UPLOAD", 1539 3: "UPLOADING", 1540 } 1541 1542 func (e FilesTabBadge) String() string { 1543 if v, ok := FilesTabBadgeRevMap[e]; ok { 1544 return v 1545 } 1546 return fmt.Sprintf("%v", int(e)) 1547 } 1548 1549 type GUIViewType int 1550 1551 const ( 1552 GUIViewType_DEFAULT GUIViewType = 0 1553 GUIViewType_TEXT GUIViewType = 1 1554 GUIViewType_IMAGE GUIViewType = 2 1555 GUIViewType_AUDIO GUIViewType = 3 1556 GUIViewType_VIDEO GUIViewType = 4 1557 GUIViewType_PDF GUIViewType = 5 1558 ) 1559 1560 func (o GUIViewType) DeepCopy() GUIViewType { return o } 1561 1562 var GUIViewTypeMap = map[string]GUIViewType{ 1563 "DEFAULT": 0, 1564 "TEXT": 1, 1565 "IMAGE": 2, 1566 "AUDIO": 3, 1567 "VIDEO": 4, 1568 "PDF": 5, 1569 } 1570 1571 var GUIViewTypeRevMap = map[GUIViewType]string{ 1572 0: "DEFAULT", 1573 1: "TEXT", 1574 2: "IMAGE", 1575 3: "AUDIO", 1576 4: "VIDEO", 1577 5: "PDF", 1578 } 1579 1580 func (e GUIViewType) String() string { 1581 if v, ok := GUIViewTypeRevMap[e]; ok { 1582 return v 1583 } 1584 return fmt.Sprintf("%v", int(e)) 1585 } 1586 1587 type GUIFileContext struct { 1588 ViewType GUIViewType `codec:"viewType" json:"viewType"` 1589 ContentType string `codec:"contentType" json:"contentType"` 1590 Url string `codec:"url" json:"url"` 1591 } 1592 1593 func (o GUIFileContext) DeepCopy() GUIFileContext { 1594 return GUIFileContext{ 1595 ViewType: o.ViewType.DeepCopy(), 1596 ContentType: o.ContentType, 1597 Url: o.Url, 1598 } 1599 } 1600 1601 type SimpleFSSearchHit struct { 1602 Path string `codec:"path" json:"path"` 1603 } 1604 1605 func (o SimpleFSSearchHit) DeepCopy() SimpleFSSearchHit { 1606 return SimpleFSSearchHit{ 1607 Path: o.Path, 1608 } 1609 } 1610 1611 type SimpleFSSearchResults struct { 1612 Hits []SimpleFSSearchHit `codec:"hits" json:"hits"` 1613 NextResult int `codec:"nextResult" json:"nextResult"` 1614 } 1615 1616 func (o SimpleFSSearchResults) DeepCopy() SimpleFSSearchResults { 1617 return SimpleFSSearchResults{ 1618 Hits: (func(x []SimpleFSSearchHit) []SimpleFSSearchHit { 1619 if x == nil { 1620 return nil 1621 } 1622 ret := make([]SimpleFSSearchHit, len(x)) 1623 for i, v := range x { 1624 vCopy := v.DeepCopy() 1625 ret[i] = vCopy 1626 } 1627 return ret 1628 })(o.Hits), 1629 NextResult: o.NextResult, 1630 } 1631 } 1632 1633 type IndexProgressRecord struct { 1634 EndEstimate Time `codec:"endEstimate" json:"endEstimate"` 1635 BytesTotal int64 `codec:"bytesTotal" json:"bytesTotal"` 1636 BytesSoFar int64 `codec:"bytesSoFar" json:"bytesSoFar"` 1637 } 1638 1639 func (o IndexProgressRecord) DeepCopy() IndexProgressRecord { 1640 return IndexProgressRecord{ 1641 EndEstimate: o.EndEstimate.DeepCopy(), 1642 BytesTotal: o.BytesTotal, 1643 BytesSoFar: o.BytesSoFar, 1644 } 1645 } 1646 1647 type SimpleFSIndexProgress struct { 1648 OverallProgress IndexProgressRecord `codec:"overallProgress" json:"overallProgress"` 1649 CurrFolder Folder `codec:"currFolder" json:"currFolder"` 1650 CurrProgress IndexProgressRecord `codec:"currProgress" json:"currProgress"` 1651 FoldersLeft []Folder `codec:"foldersLeft" json:"foldersLeft"` 1652 } 1653 1654 func (o SimpleFSIndexProgress) DeepCopy() SimpleFSIndexProgress { 1655 return SimpleFSIndexProgress{ 1656 OverallProgress: o.OverallProgress.DeepCopy(), 1657 CurrFolder: o.CurrFolder.DeepCopy(), 1658 CurrProgress: o.CurrProgress.DeepCopy(), 1659 FoldersLeft: (func(x []Folder) []Folder { 1660 if x == nil { 1661 return nil 1662 } 1663 ret := make([]Folder, len(x)) 1664 for i, v := range x { 1665 vCopy := v.DeepCopy() 1666 ret[i] = vCopy 1667 } 1668 return ret 1669 })(o.FoldersLeft), 1670 } 1671 } 1672 1673 type ArchiveJobStartPathType int 1674 1675 const ( 1676 ArchiveJobStartPathType_KBFS ArchiveJobStartPathType = 0 1677 ArchiveJobStartPathType_GIT ArchiveJobStartPathType = 1 1678 ) 1679 1680 func (o ArchiveJobStartPathType) DeepCopy() ArchiveJobStartPathType { return o } 1681 1682 var ArchiveJobStartPathTypeMap = map[string]ArchiveJobStartPathType{ 1683 "KBFS": 0, 1684 "GIT": 1, 1685 } 1686 1687 var ArchiveJobStartPathTypeRevMap = map[ArchiveJobStartPathType]string{ 1688 0: "KBFS", 1689 1: "GIT", 1690 } 1691 1692 func (e ArchiveJobStartPathType) String() string { 1693 if v, ok := ArchiveJobStartPathTypeRevMap[e]; ok { 1694 return v 1695 } 1696 return fmt.Sprintf("%v", int(e)) 1697 } 1698 1699 type ArchiveJobStartPath struct { 1700 ArchiveJobStartPathType__ ArchiveJobStartPathType `codec:"archiveJobStartPathType" json:"archiveJobStartPathType"` 1701 Kbfs__ *KBFSPath `codec:"kbfs,omitempty" json:"kbfs,omitempty"` 1702 Git__ *string `codec:"git,omitempty" json:"git,omitempty"` 1703 } 1704 1705 func (o *ArchiveJobStartPath) ArchiveJobStartPathType() (ret ArchiveJobStartPathType, err error) { 1706 switch o.ArchiveJobStartPathType__ { 1707 case ArchiveJobStartPathType_KBFS: 1708 if o.Kbfs__ == nil { 1709 err = errors.New("unexpected nil value for Kbfs__") 1710 return ret, err 1711 } 1712 case ArchiveJobStartPathType_GIT: 1713 if o.Git__ == nil { 1714 err = errors.New("unexpected nil value for Git__") 1715 return ret, err 1716 } 1717 } 1718 return o.ArchiveJobStartPathType__, nil 1719 } 1720 1721 func (o ArchiveJobStartPath) Kbfs() (res KBFSPath) { 1722 if o.ArchiveJobStartPathType__ != ArchiveJobStartPathType_KBFS { 1723 panic("wrong case accessed") 1724 } 1725 if o.Kbfs__ == nil { 1726 return 1727 } 1728 return *o.Kbfs__ 1729 } 1730 1731 func (o ArchiveJobStartPath) Git() (res string) { 1732 if o.ArchiveJobStartPathType__ != ArchiveJobStartPathType_GIT { 1733 panic("wrong case accessed") 1734 } 1735 if o.Git__ == nil { 1736 return 1737 } 1738 return *o.Git__ 1739 } 1740 1741 func NewArchiveJobStartPathWithKbfs(v KBFSPath) ArchiveJobStartPath { 1742 return ArchiveJobStartPath{ 1743 ArchiveJobStartPathType__: ArchiveJobStartPathType_KBFS, 1744 Kbfs__: &v, 1745 } 1746 } 1747 1748 func NewArchiveJobStartPathWithGit(v string) ArchiveJobStartPath { 1749 return ArchiveJobStartPath{ 1750 ArchiveJobStartPathType__: ArchiveJobStartPathType_GIT, 1751 Git__: &v, 1752 } 1753 } 1754 1755 func (o ArchiveJobStartPath) DeepCopy() ArchiveJobStartPath { 1756 return ArchiveJobStartPath{ 1757 ArchiveJobStartPathType__: o.ArchiveJobStartPathType__.DeepCopy(), 1758 Kbfs__: (func(x *KBFSPath) *KBFSPath { 1759 if x == nil { 1760 return nil 1761 } 1762 tmp := (*x).DeepCopy() 1763 return &tmp 1764 })(o.Kbfs__), 1765 Git__: (func(x *string) *string { 1766 if x == nil { 1767 return nil 1768 } 1769 tmp := (*x) 1770 return &tmp 1771 })(o.Git__), 1772 } 1773 } 1774 1775 type SimpleFSArchiveJobDesc struct { 1776 JobID string `codec:"jobID" json:"jobID"` 1777 KbfsPathWithRevision KBFSArchivedPath `codec:"kbfsPathWithRevision" json:"kbfsPathWithRevision"` 1778 GitRepo *string `codec:"gitRepo,omitempty" json:"gitRepo,omitempty"` 1779 OverwriteZip bool `codec:"overwriteZip" json:"overwriteZip"` 1780 StartTime Time `codec:"startTime" json:"startTime"` 1781 StagingPath string `codec:"stagingPath" json:"stagingPath"` 1782 TargetName string `codec:"targetName" json:"targetName"` 1783 ZipFilePath string `codec:"zipFilePath" json:"zipFilePath"` 1784 } 1785 1786 func (o SimpleFSArchiveJobDesc) DeepCopy() SimpleFSArchiveJobDesc { 1787 return SimpleFSArchiveJobDesc{ 1788 JobID: o.JobID, 1789 KbfsPathWithRevision: o.KbfsPathWithRevision.DeepCopy(), 1790 GitRepo: (func(x *string) *string { 1791 if x == nil { 1792 return nil 1793 } 1794 tmp := (*x) 1795 return &tmp 1796 })(o.GitRepo), 1797 OverwriteZip: o.OverwriteZip, 1798 StartTime: o.StartTime.DeepCopy(), 1799 StagingPath: o.StagingPath, 1800 TargetName: o.TargetName, 1801 ZipFilePath: o.ZipFilePath, 1802 } 1803 } 1804 1805 type SimpleFSFileArchiveState int 1806 1807 const ( 1808 SimpleFSFileArchiveState_ToDo SimpleFSFileArchiveState = 0 1809 SimpleFSFileArchiveState_InProgress SimpleFSFileArchiveState = 1 1810 SimpleFSFileArchiveState_Complete SimpleFSFileArchiveState = 2 1811 SimpleFSFileArchiveState_Skipped SimpleFSFileArchiveState = 3 1812 ) 1813 1814 func (o SimpleFSFileArchiveState) DeepCopy() SimpleFSFileArchiveState { return o } 1815 1816 var SimpleFSFileArchiveStateMap = map[string]SimpleFSFileArchiveState{ 1817 "ToDo": 0, 1818 "InProgress": 1, 1819 "Complete": 2, 1820 "Skipped": 3, 1821 } 1822 1823 var SimpleFSFileArchiveStateRevMap = map[SimpleFSFileArchiveState]string{ 1824 0: "ToDo", 1825 1: "InProgress", 1826 2: "Complete", 1827 3: "Skipped", 1828 } 1829 1830 func (e SimpleFSFileArchiveState) String() string { 1831 if v, ok := SimpleFSFileArchiveStateRevMap[e]; ok { 1832 return v 1833 } 1834 return fmt.Sprintf("%v", int(e)) 1835 } 1836 1837 type SimpleFSArchiveFile struct { 1838 State SimpleFSFileArchiveState `codec:"state" json:"state"` 1839 DirentType DirentType `codec:"direntType" json:"direntType"` 1840 Sha256SumHex string `codec:"sha256SumHex" json:"sha256SumHex"` 1841 } 1842 1843 func (o SimpleFSArchiveFile) DeepCopy() SimpleFSArchiveFile { 1844 return SimpleFSArchiveFile{ 1845 State: o.State.DeepCopy(), 1846 DirentType: o.DirentType.DeepCopy(), 1847 Sha256SumHex: o.Sha256SumHex, 1848 } 1849 } 1850 1851 type SimpleFSArchiveJobState struct { 1852 Desc SimpleFSArchiveJobDesc `codec:"desc" json:"desc"` 1853 Manifest map[string]SimpleFSArchiveFile `codec:"manifest" json:"manifest"` 1854 Phase SimpleFSArchiveJobPhase `codec:"phase" json:"phase"` 1855 BytesTotal int64 `codec:"bytesTotal" json:"bytesTotal"` 1856 BytesCopied int64 `codec:"bytesCopied" json:"bytesCopied"` 1857 BytesZipped int64 `codec:"bytesZipped" json:"bytesZipped"` 1858 } 1859 1860 func (o SimpleFSArchiveJobState) DeepCopy() SimpleFSArchiveJobState { 1861 return SimpleFSArchiveJobState{ 1862 Desc: o.Desc.DeepCopy(), 1863 Manifest: (func(x map[string]SimpleFSArchiveFile) map[string]SimpleFSArchiveFile { 1864 if x == nil { 1865 return nil 1866 } 1867 ret := make(map[string]SimpleFSArchiveFile, len(x)) 1868 for k, v := range x { 1869 kCopy := k 1870 vCopy := v.DeepCopy() 1871 ret[kCopy] = vCopy 1872 } 1873 return ret 1874 })(o.Manifest), 1875 Phase: o.Phase.DeepCopy(), 1876 BytesTotal: o.BytesTotal, 1877 BytesCopied: o.BytesCopied, 1878 BytesZipped: o.BytesZipped, 1879 } 1880 } 1881 1882 type SimpleFSArchiveJobPhase int 1883 1884 const ( 1885 SimpleFSArchiveJobPhase_Queued SimpleFSArchiveJobPhase = 0 1886 SimpleFSArchiveJobPhase_Indexing SimpleFSArchiveJobPhase = 1 1887 SimpleFSArchiveJobPhase_Indexed SimpleFSArchiveJobPhase = 2 1888 SimpleFSArchiveJobPhase_Copying SimpleFSArchiveJobPhase = 3 1889 SimpleFSArchiveJobPhase_Copied SimpleFSArchiveJobPhase = 4 1890 SimpleFSArchiveJobPhase_Zipping SimpleFSArchiveJobPhase = 5 1891 SimpleFSArchiveJobPhase_Done SimpleFSArchiveJobPhase = 6 1892 ) 1893 1894 func (o SimpleFSArchiveJobPhase) DeepCopy() SimpleFSArchiveJobPhase { return o } 1895 1896 var SimpleFSArchiveJobPhaseMap = map[string]SimpleFSArchiveJobPhase{ 1897 "Queued": 0, 1898 "Indexing": 1, 1899 "Indexed": 2, 1900 "Copying": 3, 1901 "Copied": 4, 1902 "Zipping": 5, 1903 "Done": 6, 1904 } 1905 1906 var SimpleFSArchiveJobPhaseRevMap = map[SimpleFSArchiveJobPhase]string{ 1907 0: "Queued", 1908 1: "Indexing", 1909 2: "Indexed", 1910 3: "Copying", 1911 4: "Copied", 1912 5: "Zipping", 1913 6: "Done", 1914 } 1915 1916 func (e SimpleFSArchiveJobPhase) String() string { 1917 if v, ok := SimpleFSArchiveJobPhaseRevMap[e]; ok { 1918 return v 1919 } 1920 return fmt.Sprintf("%v", int(e)) 1921 } 1922 1923 type SimpleFSArchiveState struct { 1924 Jobs map[string]SimpleFSArchiveJobState `codec:"jobs" json:"jobs"` 1925 LastUpdated Time `codec:"lastUpdated" json:"lastUpdated"` 1926 } 1927 1928 func (o SimpleFSArchiveState) DeepCopy() SimpleFSArchiveState { 1929 return SimpleFSArchiveState{ 1930 Jobs: (func(x map[string]SimpleFSArchiveJobState) map[string]SimpleFSArchiveJobState { 1931 if x == nil { 1932 return nil 1933 } 1934 ret := make(map[string]SimpleFSArchiveJobState, len(x)) 1935 for k, v := range x { 1936 kCopy := k 1937 vCopy := v.DeepCopy() 1938 ret[kCopy] = vCopy 1939 } 1940 return ret 1941 })(o.Jobs), 1942 LastUpdated: o.LastUpdated.DeepCopy(), 1943 } 1944 } 1945 1946 type SimpleFSArchiveJobErrorState struct { 1947 Error string `codec:"error" json:"error"` 1948 NextRetry Time `codec:"nextRetry" json:"nextRetry"` 1949 } 1950 1951 func (o SimpleFSArchiveJobErrorState) DeepCopy() SimpleFSArchiveJobErrorState { 1952 return SimpleFSArchiveJobErrorState{ 1953 Error: o.Error, 1954 NextRetry: o.NextRetry.DeepCopy(), 1955 } 1956 } 1957 1958 type SimpleFSArchiveJobStatus struct { 1959 Desc SimpleFSArchiveJobDesc `codec:"desc" json:"desc"` 1960 Phase SimpleFSArchiveJobPhase `codec:"phase" json:"phase"` 1961 TodoCount int `codec:"todoCount" json:"todoCount"` 1962 InProgressCount int `codec:"inProgressCount" json:"inProgressCount"` 1963 CompleteCount int `codec:"completeCount" json:"completeCount"` 1964 SkippedCount int `codec:"skippedCount" json:"skippedCount"` 1965 TotalCount int `codec:"totalCount" json:"totalCount"` 1966 BytesTotal int64 `codec:"bytesTotal" json:"bytesTotal"` 1967 BytesCopied int64 `codec:"bytesCopied" json:"bytesCopied"` 1968 BytesZipped int64 `codec:"bytesZipped" json:"bytesZipped"` 1969 Error *SimpleFSArchiveJobErrorState `codec:"error,omitempty" json:"error,omitempty"` 1970 } 1971 1972 func (o SimpleFSArchiveJobStatus) DeepCopy() SimpleFSArchiveJobStatus { 1973 return SimpleFSArchiveJobStatus{ 1974 Desc: o.Desc.DeepCopy(), 1975 Phase: o.Phase.DeepCopy(), 1976 TodoCount: o.TodoCount, 1977 InProgressCount: o.InProgressCount, 1978 CompleteCount: o.CompleteCount, 1979 SkippedCount: o.SkippedCount, 1980 TotalCount: o.TotalCount, 1981 BytesTotal: o.BytesTotal, 1982 BytesCopied: o.BytesCopied, 1983 BytesZipped: o.BytesZipped, 1984 Error: (func(x *SimpleFSArchiveJobErrorState) *SimpleFSArchiveJobErrorState { 1985 if x == nil { 1986 return nil 1987 } 1988 tmp := (*x).DeepCopy() 1989 return &tmp 1990 })(o.Error), 1991 } 1992 } 1993 1994 type SimpleFSArchiveStatus struct { 1995 Jobs []SimpleFSArchiveJobStatus `codec:"jobs" json:"jobs"` 1996 LastUpdated Time `codec:"lastUpdated" json:"lastUpdated"` 1997 } 1998 1999 func (o SimpleFSArchiveStatus) DeepCopy() SimpleFSArchiveStatus { 2000 return SimpleFSArchiveStatus{ 2001 Jobs: (func(x []SimpleFSArchiveJobStatus) []SimpleFSArchiveJobStatus { 2002 if x == nil { 2003 return nil 2004 } 2005 ret := make([]SimpleFSArchiveJobStatus, len(x)) 2006 for i, v := range x { 2007 vCopy := v.DeepCopy() 2008 ret[i] = vCopy 2009 } 2010 return ret 2011 })(o.Jobs), 2012 LastUpdated: o.LastUpdated.DeepCopy(), 2013 } 2014 } 2015 2016 type SimpleFSArchiveJobFreshness struct { 2017 CurrentTLFRevision KBFSRevision `codec:"currentTLFRevision" json:"currentTLFRevision"` 2018 } 2019 2020 func (o SimpleFSArchiveJobFreshness) DeepCopy() SimpleFSArchiveJobFreshness { 2021 return SimpleFSArchiveJobFreshness{ 2022 CurrentTLFRevision: o.CurrentTLFRevision.DeepCopy(), 2023 } 2024 } 2025 2026 type SimpleFSArchiveCheckArchiveResult struct { 2027 Desc SimpleFSArchiveJobDesc `codec:"desc" json:"desc"` 2028 CurrentTLFRevision KBFSRevision `codec:"currentTLFRevision" json:"currentTLFRevision"` 2029 PathsWithIssues map[string]string `codec:"pathsWithIssues" json:"pathsWithIssues"` 2030 } 2031 2032 func (o SimpleFSArchiveCheckArchiveResult) DeepCopy() SimpleFSArchiveCheckArchiveResult { 2033 return SimpleFSArchiveCheckArchiveResult{ 2034 Desc: o.Desc.DeepCopy(), 2035 CurrentTLFRevision: o.CurrentTLFRevision.DeepCopy(), 2036 PathsWithIssues: (func(x map[string]string) map[string]string { 2037 if x == nil { 2038 return nil 2039 } 2040 ret := make(map[string]string, len(x)) 2041 for k, v := range x { 2042 kCopy := k 2043 vCopy := v 2044 ret[kCopy] = vCopy 2045 } 2046 return ret 2047 })(o.PathsWithIssues), 2048 } 2049 } 2050 2051 type SimpleFSArchiveAllFilesResult struct { 2052 TlfPathToJobDesc map[string]SimpleFSArchiveJobDesc `codec:"tlfPathToJobDesc" json:"tlfPathToJobDesc"` 2053 TlfPathToError map[string]string `codec:"tlfPathToError" json:"tlfPathToError"` 2054 SkippedTLFPaths []string `codec:"skippedTLFPaths" json:"skippedTLFPaths"` 2055 } 2056 2057 func (o SimpleFSArchiveAllFilesResult) DeepCopy() SimpleFSArchiveAllFilesResult { 2058 return SimpleFSArchiveAllFilesResult{ 2059 TlfPathToJobDesc: (func(x map[string]SimpleFSArchiveJobDesc) map[string]SimpleFSArchiveJobDesc { 2060 if x == nil { 2061 return nil 2062 } 2063 ret := make(map[string]SimpleFSArchiveJobDesc, len(x)) 2064 for k, v := range x { 2065 kCopy := k 2066 vCopy := v.DeepCopy() 2067 ret[kCopy] = vCopy 2068 } 2069 return ret 2070 })(o.TlfPathToJobDesc), 2071 TlfPathToError: (func(x map[string]string) map[string]string { 2072 if x == nil { 2073 return nil 2074 } 2075 ret := make(map[string]string, len(x)) 2076 for k, v := range x { 2077 kCopy := k 2078 vCopy := v 2079 ret[kCopy] = vCopy 2080 } 2081 return ret 2082 })(o.TlfPathToError), 2083 SkippedTLFPaths: (func(x []string) []string { 2084 if x == nil { 2085 return nil 2086 } 2087 ret := make([]string, len(x)) 2088 for i, v := range x { 2089 vCopy := v 2090 ret[i] = vCopy 2091 } 2092 return ret 2093 })(o.SkippedTLFPaths), 2094 } 2095 } 2096 2097 type SimpleFSArchiveAllGitReposResult struct { 2098 GitRepoToJobDesc map[string]SimpleFSArchiveJobDesc `codec:"gitRepoToJobDesc" json:"gitRepoToJobDesc"` 2099 GitRepoToError map[string]string `codec:"gitRepoToError" json:"gitRepoToError"` 2100 } 2101 2102 func (o SimpleFSArchiveAllGitReposResult) DeepCopy() SimpleFSArchiveAllGitReposResult { 2103 return SimpleFSArchiveAllGitReposResult{ 2104 GitRepoToJobDesc: (func(x map[string]SimpleFSArchiveJobDesc) map[string]SimpleFSArchiveJobDesc { 2105 if x == nil { 2106 return nil 2107 } 2108 ret := make(map[string]SimpleFSArchiveJobDesc, len(x)) 2109 for k, v := range x { 2110 kCopy := k 2111 vCopy := v.DeepCopy() 2112 ret[kCopy] = vCopy 2113 } 2114 return ret 2115 })(o.GitRepoToJobDesc), 2116 GitRepoToError: (func(x map[string]string) map[string]string { 2117 if x == nil { 2118 return nil 2119 } 2120 ret := make(map[string]string, len(x)) 2121 for k, v := range x { 2122 kCopy := k 2123 vCopy := v 2124 ret[kCopy] = vCopy 2125 } 2126 return ret 2127 })(o.GitRepoToError), 2128 } 2129 } 2130 2131 type SimpleFSListArg struct { 2132 OpID OpID `codec:"opID" json:"opID"` 2133 Path Path `codec:"path" json:"path"` 2134 Filter ListFilter `codec:"filter" json:"filter"` 2135 RefreshSubscription bool `codec:"refreshSubscription" json:"refreshSubscription"` 2136 } 2137 2138 type SimpleFSListRecursiveArg struct { 2139 OpID OpID `codec:"opID" json:"opID"` 2140 Path Path `codec:"path" json:"path"` 2141 Filter ListFilter `codec:"filter" json:"filter"` 2142 RefreshSubscription bool `codec:"refreshSubscription" json:"refreshSubscription"` 2143 } 2144 2145 type SimpleFSListRecursiveToDepthArg struct { 2146 OpID OpID `codec:"opID" json:"opID"` 2147 Path Path `codec:"path" json:"path"` 2148 Filter ListFilter `codec:"filter" json:"filter"` 2149 RefreshSubscription bool `codec:"refreshSubscription" json:"refreshSubscription"` 2150 Depth int `codec:"depth" json:"depth"` 2151 } 2152 2153 type SimpleFSReadListArg struct { 2154 OpID OpID `codec:"opID" json:"opID"` 2155 } 2156 2157 type SimpleFSCopyArg struct { 2158 OpID OpID `codec:"opID" json:"opID"` 2159 Src Path `codec:"src" json:"src"` 2160 Dest Path `codec:"dest" json:"dest"` 2161 OverwriteExistingFiles bool `codec:"overwriteExistingFiles" json:"overwriteExistingFiles"` 2162 } 2163 2164 type SimpleFSSymlinkArg struct { 2165 Target string `codec:"target" json:"target"` 2166 Link Path `codec:"link" json:"link"` 2167 } 2168 2169 type SimpleFSCopyRecursiveArg struct { 2170 OpID OpID `codec:"opID" json:"opID"` 2171 Src Path `codec:"src" json:"src"` 2172 Dest Path `codec:"dest" json:"dest"` 2173 OverwriteExistingFiles bool `codec:"overwriteExistingFiles" json:"overwriteExistingFiles"` 2174 } 2175 2176 type SimpleFSMoveArg struct { 2177 OpID OpID `codec:"opID" json:"opID"` 2178 Src Path `codec:"src" json:"src"` 2179 Dest Path `codec:"dest" json:"dest"` 2180 OverwriteExistingFiles bool `codec:"overwriteExistingFiles" json:"overwriteExistingFiles"` 2181 } 2182 2183 type SimpleFSRenameArg struct { 2184 Src Path `codec:"src" json:"src"` 2185 Dest Path `codec:"dest" json:"dest"` 2186 } 2187 2188 type SimpleFSOpenArg struct { 2189 OpID OpID `codec:"opID" json:"opID"` 2190 Dest Path `codec:"dest" json:"dest"` 2191 Flags OpenFlags `codec:"flags" json:"flags"` 2192 } 2193 2194 type SimpleFSSetStatArg struct { 2195 Dest Path `codec:"dest" json:"dest"` 2196 Flag DirentType `codec:"flag" json:"flag"` 2197 } 2198 2199 type SimpleFSReadArg struct { 2200 OpID OpID `codec:"opID" json:"opID"` 2201 Offset int64 `codec:"offset" json:"offset"` 2202 Size int `codec:"size" json:"size"` 2203 } 2204 2205 type SimpleFSWriteArg struct { 2206 OpID OpID `codec:"opID" json:"opID"` 2207 Offset int64 `codec:"offset" json:"offset"` 2208 Content []byte `codec:"content" json:"content"` 2209 } 2210 2211 type SimpleFSRemoveArg struct { 2212 OpID OpID `codec:"opID" json:"opID"` 2213 Path Path `codec:"path" json:"path"` 2214 Recursive bool `codec:"recursive" json:"recursive"` 2215 } 2216 2217 type SimpleFSStatArg struct { 2218 Path Path `codec:"path" json:"path"` 2219 RefreshSubscription bool `codec:"refreshSubscription" json:"refreshSubscription"` 2220 } 2221 2222 type SimpleFSGetRevisionsArg struct { 2223 OpID OpID `codec:"opID" json:"opID"` 2224 Path Path `codec:"path" json:"path"` 2225 SpanType RevisionSpanType `codec:"spanType" json:"spanType"` 2226 } 2227 2228 type SimpleFSReadRevisionsArg struct { 2229 OpID OpID `codec:"opID" json:"opID"` 2230 } 2231 2232 type SimpleFSMakeOpidArg struct { 2233 } 2234 2235 type SimpleFSCloseArg struct { 2236 OpID OpID `codec:"opID" json:"opID"` 2237 } 2238 2239 type SimpleFSCancelArg struct { 2240 OpID OpID `codec:"opID" json:"opID"` 2241 } 2242 2243 type SimpleFSCheckArg struct { 2244 OpID OpID `codec:"opID" json:"opID"` 2245 } 2246 2247 type SimpleFSGetOpsArg struct { 2248 } 2249 2250 type SimpleFSWaitArg struct { 2251 OpID OpID `codec:"opID" json:"opID"` 2252 } 2253 2254 type SimpleFSDumpDebuggingInfoArg struct { 2255 } 2256 2257 type SimpleFSClearConflictStateArg struct { 2258 Path Path `codec:"path" json:"path"` 2259 } 2260 2261 type SimpleFSFinishResolvingConflictArg struct { 2262 Path Path `codec:"path" json:"path"` 2263 } 2264 2265 type SimpleFSForceStuckConflictArg struct { 2266 Path Path `codec:"path" json:"path"` 2267 } 2268 2269 type SimpleFSSyncStatusArg struct { 2270 Filter ListFilter `codec:"filter" json:"filter"` 2271 } 2272 2273 type SimpleFSUserEditHistoryArg struct { 2274 } 2275 2276 type SimpleFSFolderEditHistoryArg struct { 2277 Path Path `codec:"path" json:"path"` 2278 } 2279 2280 type SimpleFSListFavoritesArg struct { 2281 } 2282 2283 type SimpleFSGetUserQuotaUsageArg struct { 2284 } 2285 2286 type SimpleFSGetTeamQuotaUsageArg struct { 2287 TeamName TeamName `codec:"teamName" json:"teamName"` 2288 } 2289 2290 type SimpleFSResetArg struct { 2291 Path Path `codec:"path" json:"path"` 2292 TlfID string `codec:"tlfID" json:"tlfID"` 2293 } 2294 2295 type SimpleFSFolderSyncConfigAndStatusArg struct { 2296 Path Path `codec:"path" json:"path"` 2297 } 2298 2299 type SimpleFSSetFolderSyncConfigArg struct { 2300 Path Path `codec:"path" json:"path"` 2301 Config FolderSyncConfig `codec:"config" json:"config"` 2302 } 2303 2304 type SimpleFSSyncConfigAndStatusArg struct { 2305 IdentifyBehavior *TLFIdentifyBehavior `codec:"identifyBehavior,omitempty" json:"identifyBehavior,omitempty"` 2306 } 2307 2308 type SimpleFSGetFolderArg struct { 2309 Path KBFSPath `codec:"path" json:"path"` 2310 } 2311 2312 type SimpleFSGetOnlineStatusArg struct { 2313 ClientID string `codec:"clientID" json:"clientID"` 2314 } 2315 2316 type SimpleFSCheckReachabilityArg struct { 2317 } 2318 2319 type SimpleFSSetDebugLevelArg struct { 2320 Level string `codec:"level" json:"level"` 2321 } 2322 2323 type SimpleFSSettingsArg struct { 2324 } 2325 2326 type SimpleFSSetNotificationThresholdArg struct { 2327 Threshold int64 `codec:"threshold" json:"threshold"` 2328 } 2329 2330 type SimpleFSSetSfmiBannerDismissedArg struct { 2331 Dismissed bool `codec:"dismissed" json:"dismissed"` 2332 } 2333 2334 type SimpleFSSetSyncOnCellularArg struct { 2335 SyncOnCellular bool `codec:"syncOnCellular" json:"syncOnCellular"` 2336 } 2337 2338 type SimpleFSObfuscatePathArg struct { 2339 Path Path `codec:"path" json:"path"` 2340 } 2341 2342 type SimpleFSDeobfuscatePathArg struct { 2343 Path Path `codec:"path" json:"path"` 2344 } 2345 2346 type SimpleFSGetStatsArg struct { 2347 } 2348 2349 type SimpleFSSubscribePathArg struct { 2350 IdentifyBehavior *TLFIdentifyBehavior `codec:"identifyBehavior,omitempty" json:"identifyBehavior,omitempty"` 2351 ClientID string `codec:"clientID" json:"clientID"` 2352 SubscriptionID string `codec:"subscriptionID" json:"subscriptionID"` 2353 KbfsPath string `codec:"kbfsPath" json:"kbfsPath"` 2354 Topic PathSubscriptionTopic `codec:"topic" json:"topic"` 2355 DeduplicateIntervalSecond int `codec:"deduplicateIntervalSecond" json:"deduplicateIntervalSecond"` 2356 } 2357 2358 type SimpleFSSubscribeNonPathArg struct { 2359 IdentifyBehavior *TLFIdentifyBehavior `codec:"identifyBehavior,omitempty" json:"identifyBehavior,omitempty"` 2360 ClientID string `codec:"clientID" json:"clientID"` 2361 SubscriptionID string `codec:"subscriptionID" json:"subscriptionID"` 2362 Topic SubscriptionTopic `codec:"topic" json:"topic"` 2363 DeduplicateIntervalSecond int `codec:"deduplicateIntervalSecond" json:"deduplicateIntervalSecond"` 2364 } 2365 2366 type SimpleFSUnsubscribeArg struct { 2367 IdentifyBehavior *TLFIdentifyBehavior `codec:"identifyBehavior,omitempty" json:"identifyBehavior,omitempty"` 2368 ClientID string `codec:"clientID" json:"clientID"` 2369 SubscriptionID string `codec:"subscriptionID" json:"subscriptionID"` 2370 } 2371 2372 type SimpleFSStartDownloadArg struct { 2373 Path KBFSPath `codec:"path" json:"path"` 2374 IsRegularDownload bool `codec:"isRegularDownload" json:"isRegularDownload"` 2375 } 2376 2377 type SimpleFSGetDownloadInfoArg struct { 2378 DownloadID string `codec:"downloadID" json:"downloadID"` 2379 } 2380 2381 type SimpleFSGetDownloadStatusArg struct { 2382 } 2383 2384 type SimpleFSCancelDownloadArg struct { 2385 DownloadID string `codec:"downloadID" json:"downloadID"` 2386 } 2387 2388 type SimpleFSDismissDownloadArg struct { 2389 DownloadID string `codec:"downloadID" json:"downloadID"` 2390 } 2391 2392 type SimpleFSConfigureDownloadArg struct { 2393 CacheDirOverride string `codec:"cacheDirOverride" json:"cacheDirOverride"` 2394 DownloadDirOverride string `codec:"downloadDirOverride" json:"downloadDirOverride"` 2395 } 2396 2397 type SimpleFSMakeTempDirForUploadArg struct { 2398 } 2399 2400 type SimpleFSStartUploadArg struct { 2401 SourceLocalPath string `codec:"sourceLocalPath" json:"sourceLocalPath"` 2402 TargetParentPath KBFSPath `codec:"targetParentPath" json:"targetParentPath"` 2403 } 2404 2405 type SimpleFSGetUploadStatusArg struct { 2406 } 2407 2408 type SimpleFSCancelUploadArg struct { 2409 UploadID string `codec:"uploadID" json:"uploadID"` 2410 } 2411 2412 type SimpleFSDismissUploadArg struct { 2413 UploadID string `codec:"uploadID" json:"uploadID"` 2414 } 2415 2416 type SimpleFSGetFilesTabBadgeArg struct { 2417 } 2418 2419 type SimpleFSGetGUIFileContextArg struct { 2420 Path KBFSPath `codec:"path" json:"path"` 2421 } 2422 2423 type SimpleFSUserInArg struct { 2424 ClientID string `codec:"clientID" json:"clientID"` 2425 } 2426 2427 type SimpleFSUserOutArg struct { 2428 ClientID string `codec:"clientID" json:"clientID"` 2429 } 2430 2431 type SimpleFSSearchArg struct { 2432 Query string `codec:"query" json:"query"` 2433 NumResults int `codec:"numResults" json:"numResults"` 2434 StartingFrom int `codec:"startingFrom" json:"startingFrom"` 2435 } 2436 2437 type SimpleFSResetIndexArg struct { 2438 } 2439 2440 type SimpleFSGetIndexProgressArg struct { 2441 } 2442 2443 type SimpleFSCancelJournalUploadsArg struct { 2444 Path KBFSPath `codec:"path" json:"path"` 2445 } 2446 2447 type SimpleFSArchiveStartArg struct { 2448 ArchiveJobStartPath ArchiveJobStartPath `codec:"archiveJobStartPath" json:"archiveJobStartPath"` 2449 OutputPath string `codec:"outputPath" json:"outputPath"` 2450 OverwriteZip bool `codec:"overwriteZip" json:"overwriteZip"` 2451 } 2452 2453 type SimpleFSArchiveCancelOrDismissJobArg struct { 2454 JobID string `codec:"jobID" json:"jobID"` 2455 } 2456 2457 type SimpleFSGetArchiveStatusArg struct { 2458 } 2459 2460 type SimpleFSGetArchiveJobFreshnessArg struct { 2461 JobID string `codec:"jobID" json:"jobID"` 2462 } 2463 2464 type SimpleFSArchiveCheckArchiveArg struct { 2465 ArchiveZipFilePath string `codec:"archiveZipFilePath" json:"archiveZipFilePath"` 2466 } 2467 2468 type SimpleFSArchiveAllFilesArg struct { 2469 OutputDir string `codec:"outputDir" json:"outputDir"` 2470 OverwriteZip bool `codec:"overwriteZip" json:"overwriteZip"` 2471 IncludePublicReadonly bool `codec:"includePublicReadonly" json:"includePublicReadonly"` 2472 } 2473 2474 type SimpleFSArchiveAllGitReposArg struct { 2475 OutputDir string `codec:"outputDir" json:"outputDir"` 2476 OverwriteZip bool `codec:"overwriteZip" json:"overwriteZip"` 2477 } 2478 2479 type SimpleFSInterface interface { 2480 // Begin list of items in directory at path. 2481 // Retrieve results with readList(). 2482 // Can be a single file to get flags/status. 2483 // If `refreshSubscription` is true and the path is a KBFS path, simpleFS 2484 // will begin sending `FSPathUpdated` notifications for the for the 2485 // corresponding TLF, until another call refreshes the subscription on a 2486 // different TLF. 2487 SimpleFSList(context.Context, SimpleFSListArg) error 2488 // Begin recursive list of items in directory at path. 2489 // If `refreshSubscription` is true and the path is a KBFS path, simpleFS 2490 // will begin sending `FSPathUpdated` notifications for the for the 2491 // corresponding TLF, until another call refreshes the subscription on a 2492 // different TLF. 2493 SimpleFSListRecursive(context.Context, SimpleFSListRecursiveArg) error 2494 // Begin recursive list of items in directory at path up to a given depth 2495 SimpleFSListRecursiveToDepth(context.Context, SimpleFSListRecursiveToDepthArg) error 2496 // Get list of Paths in progress. Can indicate status of pending 2497 // to get more entries. 2498 SimpleFSReadList(context.Context, OpID) (SimpleFSListResult, error) 2499 // Begin copy of file or directory. 2500 SimpleFSCopy(context.Context, SimpleFSCopyArg) error 2501 // Make a symlink of file or directory 2502 SimpleFSSymlink(context.Context, SimpleFSSymlinkArg) error 2503 // Begin recursive copy of directory 2504 // 2505 // overwriteExistingFiles controls whether an existing file from `src` will 2506 // overwrite a file with the same name in `dest`; if `false`, an error will be 2507 // returned in that case. For directories that share a name, the copy will 2508 // continue recursively into the directory without causing an error. 2509 SimpleFSCopyRecursive(context.Context, SimpleFSCopyRecursiveArg) error 2510 // Begin move of file or directory, from/to KBFS only 2511 SimpleFSMove(context.Context, SimpleFSMoveArg) error 2512 // Rename file or directory, KBFS side only 2513 SimpleFSRename(context.Context, SimpleFSRenameArg) error 2514 // Create/open a file and leave it open 2515 // or create a directory 2516 // Files must be closed afterwards. 2517 SimpleFSOpen(context.Context, SimpleFSOpenArg) error 2518 // Set/clear file bits - only executable for now 2519 SimpleFSSetStat(context.Context, SimpleFSSetStatArg) error 2520 // Read (possibly partial) contents of open file, 2521 // up to the amount specified by size. 2522 // Repeat until zero bytes are returned or error. 2523 // If size is zero, read an arbitrary amount. 2524 SimpleFSRead(context.Context, SimpleFSReadArg) (FileContent, error) 2525 // Append content to opened file. 2526 // May be repeated until OpID is closed. 2527 SimpleFSWrite(context.Context, SimpleFSWriteArg) error 2528 // Remove file or directory from filesystem 2529 SimpleFSRemove(context.Context, SimpleFSRemoveArg) error 2530 // Get info about file 2531 SimpleFSStat(context.Context, SimpleFSStatArg) (Dirent, error) 2532 // Get revision info for a directory entry 2533 SimpleFSGetRevisions(context.Context, SimpleFSGetRevisionsArg) error 2534 // Get list of revisions in progress. Can indicate status of pending 2535 // to get more revisions. 2536 SimpleFSReadRevisions(context.Context, OpID) (GetRevisionsResult, error) 2537 // Convenience helper for generating new random value 2538 SimpleFSMakeOpid(context.Context) (OpID, error) 2539 // Close OpID, cancels any pending operation. 2540 // Must be called after list/copy/remove 2541 SimpleFSClose(context.Context, OpID) error 2542 // Cancels a running operation, like copy. 2543 SimpleFSCancel(context.Context, OpID) error 2544 // Check progress of pending operation 2545 SimpleFSCheck(context.Context, OpID) (OpProgress, error) 2546 // Get all the outstanding operations 2547 SimpleFSGetOps(context.Context) ([]OpDescription, error) 2548 // Blocking wait for the pending operation to finish 2549 SimpleFSWait(context.Context, OpID) error 2550 // Instructs KBFS to dump debugging info into its logs. 2551 SimpleFSDumpDebuggingInfo(context.Context) error 2552 SimpleFSClearConflictState(context.Context, Path) error 2553 SimpleFSFinishResolvingConflict(context.Context, Path) error 2554 // Force a TLF into a stuck conflict state (for testing). 2555 SimpleFSForceStuckConflict(context.Context, Path) error 2556 // Get sync status. 2557 SimpleFSSyncStatus(context.Context, ListFilter) (FSSyncStatus, error) 2558 // simpleFSUserEditHistory returns edit histories of TLFs that the logged-in 2559 // user can access. Each returned history is corresponds to a unique 2560 // writer-TLF pair. They are in descending order by the modification time 2561 // (as recorded by the server) of the most recent edit in each history. 2562 SimpleFSUserEditHistory(context.Context) ([]FSFolderEditHistory, error) 2563 // simpleFSFolderEditHistory returns the edit history for the TLF 2564 // described by `path`, for the most recent writers of that TLF. 2565 // The writers are in descending order by the modification time (as 2566 // recorded by the server) of their most recent edit. 2567 SimpleFSFolderEditHistory(context.Context, Path) (FSFolderEditHistory, error) 2568 // simpleFSListFavorites gets the current favorites, ignored folders, and new 2569 // folders from the KBFS cache. 2570 SimpleFSListFavorites(context.Context) (FavoritesResult, error) 2571 // simpleFSGetUserQuotaUsage returns the quota usage for the logged-in 2572 // user. Any usage includes local journal usage as well. 2573 SimpleFSGetUserQuotaUsage(context.Context) (SimpleFSQuotaUsage, error) 2574 // simpleFSGetTeamQuotaUsage returns the quota usage for the given team, if 2575 // the logged-in user has access to that team. Any usage includes 2576 // local journal usage as well. 2577 SimpleFSGetTeamQuotaUsage(context.Context, TeamName) (SimpleFSQuotaUsage, error) 2578 // simpleFSReset completely resets the KBFS folder referenced in `path`. 2579 // It should only be called after explicit user confirmation. 2580 SimpleFSReset(context.Context, SimpleFSResetArg) error 2581 SimpleFSFolderSyncConfigAndStatus(context.Context, Path) (FolderSyncConfigAndStatus, error) 2582 SimpleFSSetFolderSyncConfig(context.Context, SimpleFSSetFolderSyncConfigArg) error 2583 SimpleFSSyncConfigAndStatus(context.Context, *TLFIdentifyBehavior) (SyncConfigAndStatusRes, error) 2584 SimpleFSGetFolder(context.Context, KBFSPath) (FolderWithFavFlags, error) 2585 SimpleFSGetOnlineStatus(context.Context, string) (KbfsOnlineStatus, error) 2586 SimpleFSCheckReachability(context.Context) error 2587 SimpleFSSetDebugLevel(context.Context, string) error 2588 SimpleFSSettings(context.Context) (FSSettings, error) 2589 SimpleFSSetNotificationThreshold(context.Context, int64) error 2590 SimpleFSSetSfmiBannerDismissed(context.Context, bool) error 2591 SimpleFSSetSyncOnCellular(context.Context, bool) error 2592 SimpleFSObfuscatePath(context.Context, Path) (string, error) 2593 SimpleFSDeobfuscatePath(context.Context, Path) ([]string, error) 2594 SimpleFSGetStats(context.Context) (SimpleFSStats, error) 2595 SimpleFSSubscribePath(context.Context, SimpleFSSubscribePathArg) error 2596 SimpleFSSubscribeNonPath(context.Context, SimpleFSSubscribeNonPathArg) error 2597 SimpleFSUnsubscribe(context.Context, SimpleFSUnsubscribeArg) error 2598 SimpleFSStartDownload(context.Context, SimpleFSStartDownloadArg) (string, error) 2599 SimpleFSGetDownloadInfo(context.Context, string) (DownloadInfo, error) 2600 SimpleFSGetDownloadStatus(context.Context) (DownloadStatus, error) 2601 SimpleFSCancelDownload(context.Context, string) error 2602 SimpleFSDismissDownload(context.Context, string) error 2603 SimpleFSConfigureDownload(context.Context, SimpleFSConfigureDownloadArg) error 2604 SimpleFSMakeTempDirForUpload(context.Context) (string, error) 2605 SimpleFSStartUpload(context.Context, SimpleFSStartUploadArg) (string, error) 2606 SimpleFSGetUploadStatus(context.Context) ([]UploadState, error) 2607 SimpleFSCancelUpload(context.Context, string) error 2608 SimpleFSDismissUpload(context.Context, string) error 2609 SimpleFSGetFilesTabBadge(context.Context) (FilesTabBadge, error) 2610 SimpleFSGetGUIFileContext(context.Context, KBFSPath) (GUIFileContext, error) 2611 SimpleFSUserIn(context.Context, string) error 2612 SimpleFSUserOut(context.Context, string) error 2613 SimpleFSSearch(context.Context, SimpleFSSearchArg) (SimpleFSSearchResults, error) 2614 SimpleFSResetIndex(context.Context) error 2615 SimpleFSGetIndexProgress(context.Context) (SimpleFSIndexProgress, error) 2616 SimpleFSCancelJournalUploads(context.Context, KBFSPath) error 2617 SimpleFSArchiveStart(context.Context, SimpleFSArchiveStartArg) (SimpleFSArchiveJobDesc, error) 2618 SimpleFSArchiveCancelOrDismissJob(context.Context, string) error 2619 SimpleFSGetArchiveStatus(context.Context) (SimpleFSArchiveStatus, error) 2620 SimpleFSGetArchiveJobFreshness(context.Context, string) (SimpleFSArchiveJobFreshness, error) 2621 SimpleFSArchiveCheckArchive(context.Context, string) (SimpleFSArchiveCheckArchiveResult, error) 2622 SimpleFSArchiveAllFiles(context.Context, SimpleFSArchiveAllFilesArg) (SimpleFSArchiveAllFilesResult, error) 2623 SimpleFSArchiveAllGitRepos(context.Context, SimpleFSArchiveAllGitReposArg) (SimpleFSArchiveAllGitReposResult, error) 2624 } 2625 2626 func SimpleFSProtocol(i SimpleFSInterface) rpc.Protocol { 2627 return rpc.Protocol{ 2628 Name: "keybase.1.SimpleFS", 2629 Methods: map[string]rpc.ServeHandlerDescription{ 2630 "simpleFSList": { 2631 MakeArg: func() interface{} { 2632 var ret [1]SimpleFSListArg 2633 return &ret 2634 }, 2635 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2636 typedArgs, ok := args.(*[1]SimpleFSListArg) 2637 if !ok { 2638 err = rpc.NewTypeError((*[1]SimpleFSListArg)(nil), args) 2639 return 2640 } 2641 err = i.SimpleFSList(ctx, typedArgs[0]) 2642 return 2643 }, 2644 }, 2645 "simpleFSListRecursive": { 2646 MakeArg: func() interface{} { 2647 var ret [1]SimpleFSListRecursiveArg 2648 return &ret 2649 }, 2650 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2651 typedArgs, ok := args.(*[1]SimpleFSListRecursiveArg) 2652 if !ok { 2653 err = rpc.NewTypeError((*[1]SimpleFSListRecursiveArg)(nil), args) 2654 return 2655 } 2656 err = i.SimpleFSListRecursive(ctx, typedArgs[0]) 2657 return 2658 }, 2659 }, 2660 "simpleFSListRecursiveToDepth": { 2661 MakeArg: func() interface{} { 2662 var ret [1]SimpleFSListRecursiveToDepthArg 2663 return &ret 2664 }, 2665 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2666 typedArgs, ok := args.(*[1]SimpleFSListRecursiveToDepthArg) 2667 if !ok { 2668 err = rpc.NewTypeError((*[1]SimpleFSListRecursiveToDepthArg)(nil), args) 2669 return 2670 } 2671 err = i.SimpleFSListRecursiveToDepth(ctx, typedArgs[0]) 2672 return 2673 }, 2674 }, 2675 "simpleFSReadList": { 2676 MakeArg: func() interface{} { 2677 var ret [1]SimpleFSReadListArg 2678 return &ret 2679 }, 2680 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2681 typedArgs, ok := args.(*[1]SimpleFSReadListArg) 2682 if !ok { 2683 err = rpc.NewTypeError((*[1]SimpleFSReadListArg)(nil), args) 2684 return 2685 } 2686 ret, err = i.SimpleFSReadList(ctx, typedArgs[0].OpID) 2687 return 2688 }, 2689 }, 2690 "simpleFSCopy": { 2691 MakeArg: func() interface{} { 2692 var ret [1]SimpleFSCopyArg 2693 return &ret 2694 }, 2695 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2696 typedArgs, ok := args.(*[1]SimpleFSCopyArg) 2697 if !ok { 2698 err = rpc.NewTypeError((*[1]SimpleFSCopyArg)(nil), args) 2699 return 2700 } 2701 err = i.SimpleFSCopy(ctx, typedArgs[0]) 2702 return 2703 }, 2704 }, 2705 "simpleFSSymlink": { 2706 MakeArg: func() interface{} { 2707 var ret [1]SimpleFSSymlinkArg 2708 return &ret 2709 }, 2710 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2711 typedArgs, ok := args.(*[1]SimpleFSSymlinkArg) 2712 if !ok { 2713 err = rpc.NewTypeError((*[1]SimpleFSSymlinkArg)(nil), args) 2714 return 2715 } 2716 err = i.SimpleFSSymlink(ctx, typedArgs[0]) 2717 return 2718 }, 2719 }, 2720 "simpleFSCopyRecursive": { 2721 MakeArg: func() interface{} { 2722 var ret [1]SimpleFSCopyRecursiveArg 2723 return &ret 2724 }, 2725 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2726 typedArgs, ok := args.(*[1]SimpleFSCopyRecursiveArg) 2727 if !ok { 2728 err = rpc.NewTypeError((*[1]SimpleFSCopyRecursiveArg)(nil), args) 2729 return 2730 } 2731 err = i.SimpleFSCopyRecursive(ctx, typedArgs[0]) 2732 return 2733 }, 2734 }, 2735 "simpleFSMove": { 2736 MakeArg: func() interface{} { 2737 var ret [1]SimpleFSMoveArg 2738 return &ret 2739 }, 2740 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2741 typedArgs, ok := args.(*[1]SimpleFSMoveArg) 2742 if !ok { 2743 err = rpc.NewTypeError((*[1]SimpleFSMoveArg)(nil), args) 2744 return 2745 } 2746 err = i.SimpleFSMove(ctx, typedArgs[0]) 2747 return 2748 }, 2749 }, 2750 "simpleFSRename": { 2751 MakeArg: func() interface{} { 2752 var ret [1]SimpleFSRenameArg 2753 return &ret 2754 }, 2755 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2756 typedArgs, ok := args.(*[1]SimpleFSRenameArg) 2757 if !ok { 2758 err = rpc.NewTypeError((*[1]SimpleFSRenameArg)(nil), args) 2759 return 2760 } 2761 err = i.SimpleFSRename(ctx, typedArgs[0]) 2762 return 2763 }, 2764 }, 2765 "simpleFSOpen": { 2766 MakeArg: func() interface{} { 2767 var ret [1]SimpleFSOpenArg 2768 return &ret 2769 }, 2770 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2771 typedArgs, ok := args.(*[1]SimpleFSOpenArg) 2772 if !ok { 2773 err = rpc.NewTypeError((*[1]SimpleFSOpenArg)(nil), args) 2774 return 2775 } 2776 err = i.SimpleFSOpen(ctx, typedArgs[0]) 2777 return 2778 }, 2779 }, 2780 "simpleFSSetStat": { 2781 MakeArg: func() interface{} { 2782 var ret [1]SimpleFSSetStatArg 2783 return &ret 2784 }, 2785 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2786 typedArgs, ok := args.(*[1]SimpleFSSetStatArg) 2787 if !ok { 2788 err = rpc.NewTypeError((*[1]SimpleFSSetStatArg)(nil), args) 2789 return 2790 } 2791 err = i.SimpleFSSetStat(ctx, typedArgs[0]) 2792 return 2793 }, 2794 }, 2795 "simpleFSRead": { 2796 MakeArg: func() interface{} { 2797 var ret [1]SimpleFSReadArg 2798 return &ret 2799 }, 2800 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2801 typedArgs, ok := args.(*[1]SimpleFSReadArg) 2802 if !ok { 2803 err = rpc.NewTypeError((*[1]SimpleFSReadArg)(nil), args) 2804 return 2805 } 2806 ret, err = i.SimpleFSRead(ctx, typedArgs[0]) 2807 return 2808 }, 2809 }, 2810 "simpleFSWrite": { 2811 MakeArg: func() interface{} { 2812 var ret [1]SimpleFSWriteArg 2813 return &ret 2814 }, 2815 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2816 typedArgs, ok := args.(*[1]SimpleFSWriteArg) 2817 if !ok { 2818 err = rpc.NewTypeError((*[1]SimpleFSWriteArg)(nil), args) 2819 return 2820 } 2821 err = i.SimpleFSWrite(ctx, typedArgs[0]) 2822 return 2823 }, 2824 }, 2825 "simpleFSRemove": { 2826 MakeArg: func() interface{} { 2827 var ret [1]SimpleFSRemoveArg 2828 return &ret 2829 }, 2830 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2831 typedArgs, ok := args.(*[1]SimpleFSRemoveArg) 2832 if !ok { 2833 err = rpc.NewTypeError((*[1]SimpleFSRemoveArg)(nil), args) 2834 return 2835 } 2836 err = i.SimpleFSRemove(ctx, typedArgs[0]) 2837 return 2838 }, 2839 }, 2840 "simpleFSStat": { 2841 MakeArg: func() interface{} { 2842 var ret [1]SimpleFSStatArg 2843 return &ret 2844 }, 2845 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2846 typedArgs, ok := args.(*[1]SimpleFSStatArg) 2847 if !ok { 2848 err = rpc.NewTypeError((*[1]SimpleFSStatArg)(nil), args) 2849 return 2850 } 2851 ret, err = i.SimpleFSStat(ctx, typedArgs[0]) 2852 return 2853 }, 2854 }, 2855 "simpleFSGetRevisions": { 2856 MakeArg: func() interface{} { 2857 var ret [1]SimpleFSGetRevisionsArg 2858 return &ret 2859 }, 2860 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2861 typedArgs, ok := args.(*[1]SimpleFSGetRevisionsArg) 2862 if !ok { 2863 err = rpc.NewTypeError((*[1]SimpleFSGetRevisionsArg)(nil), args) 2864 return 2865 } 2866 err = i.SimpleFSGetRevisions(ctx, typedArgs[0]) 2867 return 2868 }, 2869 }, 2870 "simpleFSReadRevisions": { 2871 MakeArg: func() interface{} { 2872 var ret [1]SimpleFSReadRevisionsArg 2873 return &ret 2874 }, 2875 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2876 typedArgs, ok := args.(*[1]SimpleFSReadRevisionsArg) 2877 if !ok { 2878 err = rpc.NewTypeError((*[1]SimpleFSReadRevisionsArg)(nil), args) 2879 return 2880 } 2881 ret, err = i.SimpleFSReadRevisions(ctx, typedArgs[0].OpID) 2882 return 2883 }, 2884 }, 2885 "simpleFSMakeOpid": { 2886 MakeArg: func() interface{} { 2887 var ret [1]SimpleFSMakeOpidArg 2888 return &ret 2889 }, 2890 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2891 ret, err = i.SimpleFSMakeOpid(ctx) 2892 return 2893 }, 2894 }, 2895 "simpleFSClose": { 2896 MakeArg: func() interface{} { 2897 var ret [1]SimpleFSCloseArg 2898 return &ret 2899 }, 2900 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2901 typedArgs, ok := args.(*[1]SimpleFSCloseArg) 2902 if !ok { 2903 err = rpc.NewTypeError((*[1]SimpleFSCloseArg)(nil), args) 2904 return 2905 } 2906 err = i.SimpleFSClose(ctx, typedArgs[0].OpID) 2907 return 2908 }, 2909 }, 2910 "simpleFSCancel": { 2911 MakeArg: func() interface{} { 2912 var ret [1]SimpleFSCancelArg 2913 return &ret 2914 }, 2915 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2916 typedArgs, ok := args.(*[1]SimpleFSCancelArg) 2917 if !ok { 2918 err = rpc.NewTypeError((*[1]SimpleFSCancelArg)(nil), args) 2919 return 2920 } 2921 err = i.SimpleFSCancel(ctx, typedArgs[0].OpID) 2922 return 2923 }, 2924 }, 2925 "simpleFSCheck": { 2926 MakeArg: func() interface{} { 2927 var ret [1]SimpleFSCheckArg 2928 return &ret 2929 }, 2930 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2931 typedArgs, ok := args.(*[1]SimpleFSCheckArg) 2932 if !ok { 2933 err = rpc.NewTypeError((*[1]SimpleFSCheckArg)(nil), args) 2934 return 2935 } 2936 ret, err = i.SimpleFSCheck(ctx, typedArgs[0].OpID) 2937 return 2938 }, 2939 }, 2940 "simpleFSGetOps": { 2941 MakeArg: func() interface{} { 2942 var ret [1]SimpleFSGetOpsArg 2943 return &ret 2944 }, 2945 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2946 ret, err = i.SimpleFSGetOps(ctx) 2947 return 2948 }, 2949 }, 2950 "simpleFSWait": { 2951 MakeArg: func() interface{} { 2952 var ret [1]SimpleFSWaitArg 2953 return &ret 2954 }, 2955 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2956 typedArgs, ok := args.(*[1]SimpleFSWaitArg) 2957 if !ok { 2958 err = rpc.NewTypeError((*[1]SimpleFSWaitArg)(nil), args) 2959 return 2960 } 2961 err = i.SimpleFSWait(ctx, typedArgs[0].OpID) 2962 return 2963 }, 2964 }, 2965 "simpleFSDumpDebuggingInfo": { 2966 MakeArg: func() interface{} { 2967 var ret [1]SimpleFSDumpDebuggingInfoArg 2968 return &ret 2969 }, 2970 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2971 err = i.SimpleFSDumpDebuggingInfo(ctx) 2972 return 2973 }, 2974 }, 2975 "simpleFSClearConflictState": { 2976 MakeArg: func() interface{} { 2977 var ret [1]SimpleFSClearConflictStateArg 2978 return &ret 2979 }, 2980 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2981 typedArgs, ok := args.(*[1]SimpleFSClearConflictStateArg) 2982 if !ok { 2983 err = rpc.NewTypeError((*[1]SimpleFSClearConflictStateArg)(nil), args) 2984 return 2985 } 2986 err = i.SimpleFSClearConflictState(ctx, typedArgs[0].Path) 2987 return 2988 }, 2989 }, 2990 "simpleFSFinishResolvingConflict": { 2991 MakeArg: func() interface{} { 2992 var ret [1]SimpleFSFinishResolvingConflictArg 2993 return &ret 2994 }, 2995 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2996 typedArgs, ok := args.(*[1]SimpleFSFinishResolvingConflictArg) 2997 if !ok { 2998 err = rpc.NewTypeError((*[1]SimpleFSFinishResolvingConflictArg)(nil), args) 2999 return 3000 } 3001 err = i.SimpleFSFinishResolvingConflict(ctx, typedArgs[0].Path) 3002 return 3003 }, 3004 }, 3005 "simpleFSForceStuckConflict": { 3006 MakeArg: func() interface{} { 3007 var ret [1]SimpleFSForceStuckConflictArg 3008 return &ret 3009 }, 3010 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3011 typedArgs, ok := args.(*[1]SimpleFSForceStuckConflictArg) 3012 if !ok { 3013 err = rpc.NewTypeError((*[1]SimpleFSForceStuckConflictArg)(nil), args) 3014 return 3015 } 3016 err = i.SimpleFSForceStuckConflict(ctx, typedArgs[0].Path) 3017 return 3018 }, 3019 }, 3020 "simpleFSSyncStatus": { 3021 MakeArg: func() interface{} { 3022 var ret [1]SimpleFSSyncStatusArg 3023 return &ret 3024 }, 3025 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3026 typedArgs, ok := args.(*[1]SimpleFSSyncStatusArg) 3027 if !ok { 3028 err = rpc.NewTypeError((*[1]SimpleFSSyncStatusArg)(nil), args) 3029 return 3030 } 3031 ret, err = i.SimpleFSSyncStatus(ctx, typedArgs[0].Filter) 3032 return 3033 }, 3034 }, 3035 "simpleFSUserEditHistory": { 3036 MakeArg: func() interface{} { 3037 var ret [1]SimpleFSUserEditHistoryArg 3038 return &ret 3039 }, 3040 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3041 ret, err = i.SimpleFSUserEditHistory(ctx) 3042 return 3043 }, 3044 }, 3045 "simpleFSFolderEditHistory": { 3046 MakeArg: func() interface{} { 3047 var ret [1]SimpleFSFolderEditHistoryArg 3048 return &ret 3049 }, 3050 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3051 typedArgs, ok := args.(*[1]SimpleFSFolderEditHistoryArg) 3052 if !ok { 3053 err = rpc.NewTypeError((*[1]SimpleFSFolderEditHistoryArg)(nil), args) 3054 return 3055 } 3056 ret, err = i.SimpleFSFolderEditHistory(ctx, typedArgs[0].Path) 3057 return 3058 }, 3059 }, 3060 "simpleFSListFavorites": { 3061 MakeArg: func() interface{} { 3062 var ret [1]SimpleFSListFavoritesArg 3063 return &ret 3064 }, 3065 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3066 ret, err = i.SimpleFSListFavorites(ctx) 3067 return 3068 }, 3069 }, 3070 "simpleFSGetUserQuotaUsage": { 3071 MakeArg: func() interface{} { 3072 var ret [1]SimpleFSGetUserQuotaUsageArg 3073 return &ret 3074 }, 3075 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3076 ret, err = i.SimpleFSGetUserQuotaUsage(ctx) 3077 return 3078 }, 3079 }, 3080 "simpleFSGetTeamQuotaUsage": { 3081 MakeArg: func() interface{} { 3082 var ret [1]SimpleFSGetTeamQuotaUsageArg 3083 return &ret 3084 }, 3085 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3086 typedArgs, ok := args.(*[1]SimpleFSGetTeamQuotaUsageArg) 3087 if !ok { 3088 err = rpc.NewTypeError((*[1]SimpleFSGetTeamQuotaUsageArg)(nil), args) 3089 return 3090 } 3091 ret, err = i.SimpleFSGetTeamQuotaUsage(ctx, typedArgs[0].TeamName) 3092 return 3093 }, 3094 }, 3095 "simpleFSReset": { 3096 MakeArg: func() interface{} { 3097 var ret [1]SimpleFSResetArg 3098 return &ret 3099 }, 3100 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3101 typedArgs, ok := args.(*[1]SimpleFSResetArg) 3102 if !ok { 3103 err = rpc.NewTypeError((*[1]SimpleFSResetArg)(nil), args) 3104 return 3105 } 3106 err = i.SimpleFSReset(ctx, typedArgs[0]) 3107 return 3108 }, 3109 }, 3110 "simpleFSFolderSyncConfigAndStatus": { 3111 MakeArg: func() interface{} { 3112 var ret [1]SimpleFSFolderSyncConfigAndStatusArg 3113 return &ret 3114 }, 3115 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3116 typedArgs, ok := args.(*[1]SimpleFSFolderSyncConfigAndStatusArg) 3117 if !ok { 3118 err = rpc.NewTypeError((*[1]SimpleFSFolderSyncConfigAndStatusArg)(nil), args) 3119 return 3120 } 3121 ret, err = i.SimpleFSFolderSyncConfigAndStatus(ctx, typedArgs[0].Path) 3122 return 3123 }, 3124 }, 3125 "simpleFSSetFolderSyncConfig": { 3126 MakeArg: func() interface{} { 3127 var ret [1]SimpleFSSetFolderSyncConfigArg 3128 return &ret 3129 }, 3130 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3131 typedArgs, ok := args.(*[1]SimpleFSSetFolderSyncConfigArg) 3132 if !ok { 3133 err = rpc.NewTypeError((*[1]SimpleFSSetFolderSyncConfigArg)(nil), args) 3134 return 3135 } 3136 err = i.SimpleFSSetFolderSyncConfig(ctx, typedArgs[0]) 3137 return 3138 }, 3139 }, 3140 "simpleFSSyncConfigAndStatus": { 3141 MakeArg: func() interface{} { 3142 var ret [1]SimpleFSSyncConfigAndStatusArg 3143 return &ret 3144 }, 3145 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3146 typedArgs, ok := args.(*[1]SimpleFSSyncConfigAndStatusArg) 3147 if !ok { 3148 err = rpc.NewTypeError((*[1]SimpleFSSyncConfigAndStatusArg)(nil), args) 3149 return 3150 } 3151 ret, err = i.SimpleFSSyncConfigAndStatus(ctx, typedArgs[0].IdentifyBehavior) 3152 return 3153 }, 3154 }, 3155 "simpleFSGetFolder": { 3156 MakeArg: func() interface{} { 3157 var ret [1]SimpleFSGetFolderArg 3158 return &ret 3159 }, 3160 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3161 typedArgs, ok := args.(*[1]SimpleFSGetFolderArg) 3162 if !ok { 3163 err = rpc.NewTypeError((*[1]SimpleFSGetFolderArg)(nil), args) 3164 return 3165 } 3166 ret, err = i.SimpleFSGetFolder(ctx, typedArgs[0].Path) 3167 return 3168 }, 3169 }, 3170 "simpleFSGetOnlineStatus": { 3171 MakeArg: func() interface{} { 3172 var ret [1]SimpleFSGetOnlineStatusArg 3173 return &ret 3174 }, 3175 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3176 typedArgs, ok := args.(*[1]SimpleFSGetOnlineStatusArg) 3177 if !ok { 3178 err = rpc.NewTypeError((*[1]SimpleFSGetOnlineStatusArg)(nil), args) 3179 return 3180 } 3181 ret, err = i.SimpleFSGetOnlineStatus(ctx, typedArgs[0].ClientID) 3182 return 3183 }, 3184 }, 3185 "simpleFSCheckReachability": { 3186 MakeArg: func() interface{} { 3187 var ret [1]SimpleFSCheckReachabilityArg 3188 return &ret 3189 }, 3190 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3191 err = i.SimpleFSCheckReachability(ctx) 3192 return 3193 }, 3194 }, 3195 "simpleFSSetDebugLevel": { 3196 MakeArg: func() interface{} { 3197 var ret [1]SimpleFSSetDebugLevelArg 3198 return &ret 3199 }, 3200 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3201 typedArgs, ok := args.(*[1]SimpleFSSetDebugLevelArg) 3202 if !ok { 3203 err = rpc.NewTypeError((*[1]SimpleFSSetDebugLevelArg)(nil), args) 3204 return 3205 } 3206 err = i.SimpleFSSetDebugLevel(ctx, typedArgs[0].Level) 3207 return 3208 }, 3209 }, 3210 "simpleFSSettings": { 3211 MakeArg: func() interface{} { 3212 var ret [1]SimpleFSSettingsArg 3213 return &ret 3214 }, 3215 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3216 ret, err = i.SimpleFSSettings(ctx) 3217 return 3218 }, 3219 }, 3220 "simpleFSSetNotificationThreshold": { 3221 MakeArg: func() interface{} { 3222 var ret [1]SimpleFSSetNotificationThresholdArg 3223 return &ret 3224 }, 3225 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3226 typedArgs, ok := args.(*[1]SimpleFSSetNotificationThresholdArg) 3227 if !ok { 3228 err = rpc.NewTypeError((*[1]SimpleFSSetNotificationThresholdArg)(nil), args) 3229 return 3230 } 3231 err = i.SimpleFSSetNotificationThreshold(ctx, typedArgs[0].Threshold) 3232 return 3233 }, 3234 }, 3235 "simpleFSSetSfmiBannerDismissed": { 3236 MakeArg: func() interface{} { 3237 var ret [1]SimpleFSSetSfmiBannerDismissedArg 3238 return &ret 3239 }, 3240 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3241 typedArgs, ok := args.(*[1]SimpleFSSetSfmiBannerDismissedArg) 3242 if !ok { 3243 err = rpc.NewTypeError((*[1]SimpleFSSetSfmiBannerDismissedArg)(nil), args) 3244 return 3245 } 3246 err = i.SimpleFSSetSfmiBannerDismissed(ctx, typedArgs[0].Dismissed) 3247 return 3248 }, 3249 }, 3250 "simpleFSSetSyncOnCellular": { 3251 MakeArg: func() interface{} { 3252 var ret [1]SimpleFSSetSyncOnCellularArg 3253 return &ret 3254 }, 3255 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3256 typedArgs, ok := args.(*[1]SimpleFSSetSyncOnCellularArg) 3257 if !ok { 3258 err = rpc.NewTypeError((*[1]SimpleFSSetSyncOnCellularArg)(nil), args) 3259 return 3260 } 3261 err = i.SimpleFSSetSyncOnCellular(ctx, typedArgs[0].SyncOnCellular) 3262 return 3263 }, 3264 }, 3265 "simpleFSObfuscatePath": { 3266 MakeArg: func() interface{} { 3267 var ret [1]SimpleFSObfuscatePathArg 3268 return &ret 3269 }, 3270 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3271 typedArgs, ok := args.(*[1]SimpleFSObfuscatePathArg) 3272 if !ok { 3273 err = rpc.NewTypeError((*[1]SimpleFSObfuscatePathArg)(nil), args) 3274 return 3275 } 3276 ret, err = i.SimpleFSObfuscatePath(ctx, typedArgs[0].Path) 3277 return 3278 }, 3279 }, 3280 "simpleFSDeobfuscatePath": { 3281 MakeArg: func() interface{} { 3282 var ret [1]SimpleFSDeobfuscatePathArg 3283 return &ret 3284 }, 3285 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3286 typedArgs, ok := args.(*[1]SimpleFSDeobfuscatePathArg) 3287 if !ok { 3288 err = rpc.NewTypeError((*[1]SimpleFSDeobfuscatePathArg)(nil), args) 3289 return 3290 } 3291 ret, err = i.SimpleFSDeobfuscatePath(ctx, typedArgs[0].Path) 3292 return 3293 }, 3294 }, 3295 "simpleFSGetStats": { 3296 MakeArg: func() interface{} { 3297 var ret [1]SimpleFSGetStatsArg 3298 return &ret 3299 }, 3300 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3301 ret, err = i.SimpleFSGetStats(ctx) 3302 return 3303 }, 3304 }, 3305 "simpleFSSubscribePath": { 3306 MakeArg: func() interface{} { 3307 var ret [1]SimpleFSSubscribePathArg 3308 return &ret 3309 }, 3310 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3311 typedArgs, ok := args.(*[1]SimpleFSSubscribePathArg) 3312 if !ok { 3313 err = rpc.NewTypeError((*[1]SimpleFSSubscribePathArg)(nil), args) 3314 return 3315 } 3316 err = i.SimpleFSSubscribePath(ctx, typedArgs[0]) 3317 return 3318 }, 3319 }, 3320 "simpleFSSubscribeNonPath": { 3321 MakeArg: func() interface{} { 3322 var ret [1]SimpleFSSubscribeNonPathArg 3323 return &ret 3324 }, 3325 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3326 typedArgs, ok := args.(*[1]SimpleFSSubscribeNonPathArg) 3327 if !ok { 3328 err = rpc.NewTypeError((*[1]SimpleFSSubscribeNonPathArg)(nil), args) 3329 return 3330 } 3331 err = i.SimpleFSSubscribeNonPath(ctx, typedArgs[0]) 3332 return 3333 }, 3334 }, 3335 "simpleFSUnsubscribe": { 3336 MakeArg: func() interface{} { 3337 var ret [1]SimpleFSUnsubscribeArg 3338 return &ret 3339 }, 3340 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3341 typedArgs, ok := args.(*[1]SimpleFSUnsubscribeArg) 3342 if !ok { 3343 err = rpc.NewTypeError((*[1]SimpleFSUnsubscribeArg)(nil), args) 3344 return 3345 } 3346 err = i.SimpleFSUnsubscribe(ctx, typedArgs[0]) 3347 return 3348 }, 3349 }, 3350 "simpleFSStartDownload": { 3351 MakeArg: func() interface{} { 3352 var ret [1]SimpleFSStartDownloadArg 3353 return &ret 3354 }, 3355 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3356 typedArgs, ok := args.(*[1]SimpleFSStartDownloadArg) 3357 if !ok { 3358 err = rpc.NewTypeError((*[1]SimpleFSStartDownloadArg)(nil), args) 3359 return 3360 } 3361 ret, err = i.SimpleFSStartDownload(ctx, typedArgs[0]) 3362 return 3363 }, 3364 }, 3365 "simpleFSGetDownloadInfo": { 3366 MakeArg: func() interface{} { 3367 var ret [1]SimpleFSGetDownloadInfoArg 3368 return &ret 3369 }, 3370 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3371 typedArgs, ok := args.(*[1]SimpleFSGetDownloadInfoArg) 3372 if !ok { 3373 err = rpc.NewTypeError((*[1]SimpleFSGetDownloadInfoArg)(nil), args) 3374 return 3375 } 3376 ret, err = i.SimpleFSGetDownloadInfo(ctx, typedArgs[0].DownloadID) 3377 return 3378 }, 3379 }, 3380 "simpleFSGetDownloadStatus": { 3381 MakeArg: func() interface{} { 3382 var ret [1]SimpleFSGetDownloadStatusArg 3383 return &ret 3384 }, 3385 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3386 ret, err = i.SimpleFSGetDownloadStatus(ctx) 3387 return 3388 }, 3389 }, 3390 "simpleFSCancelDownload": { 3391 MakeArg: func() interface{} { 3392 var ret [1]SimpleFSCancelDownloadArg 3393 return &ret 3394 }, 3395 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3396 typedArgs, ok := args.(*[1]SimpleFSCancelDownloadArg) 3397 if !ok { 3398 err = rpc.NewTypeError((*[1]SimpleFSCancelDownloadArg)(nil), args) 3399 return 3400 } 3401 err = i.SimpleFSCancelDownload(ctx, typedArgs[0].DownloadID) 3402 return 3403 }, 3404 }, 3405 "simpleFSDismissDownload": { 3406 MakeArg: func() interface{} { 3407 var ret [1]SimpleFSDismissDownloadArg 3408 return &ret 3409 }, 3410 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3411 typedArgs, ok := args.(*[1]SimpleFSDismissDownloadArg) 3412 if !ok { 3413 err = rpc.NewTypeError((*[1]SimpleFSDismissDownloadArg)(nil), args) 3414 return 3415 } 3416 err = i.SimpleFSDismissDownload(ctx, typedArgs[0].DownloadID) 3417 return 3418 }, 3419 }, 3420 "simpleFSConfigureDownload": { 3421 MakeArg: func() interface{} { 3422 var ret [1]SimpleFSConfigureDownloadArg 3423 return &ret 3424 }, 3425 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3426 typedArgs, ok := args.(*[1]SimpleFSConfigureDownloadArg) 3427 if !ok { 3428 err = rpc.NewTypeError((*[1]SimpleFSConfigureDownloadArg)(nil), args) 3429 return 3430 } 3431 err = i.SimpleFSConfigureDownload(ctx, typedArgs[0]) 3432 return 3433 }, 3434 }, 3435 "simpleFSMakeTempDirForUpload": { 3436 MakeArg: func() interface{} { 3437 var ret [1]SimpleFSMakeTempDirForUploadArg 3438 return &ret 3439 }, 3440 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3441 ret, err = i.SimpleFSMakeTempDirForUpload(ctx) 3442 return 3443 }, 3444 }, 3445 "simpleFSStartUpload": { 3446 MakeArg: func() interface{} { 3447 var ret [1]SimpleFSStartUploadArg 3448 return &ret 3449 }, 3450 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3451 typedArgs, ok := args.(*[1]SimpleFSStartUploadArg) 3452 if !ok { 3453 err = rpc.NewTypeError((*[1]SimpleFSStartUploadArg)(nil), args) 3454 return 3455 } 3456 ret, err = i.SimpleFSStartUpload(ctx, typedArgs[0]) 3457 return 3458 }, 3459 }, 3460 "simpleFSGetUploadStatus": { 3461 MakeArg: func() interface{} { 3462 var ret [1]SimpleFSGetUploadStatusArg 3463 return &ret 3464 }, 3465 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3466 ret, err = i.SimpleFSGetUploadStatus(ctx) 3467 return 3468 }, 3469 }, 3470 "simpleFSCancelUpload": { 3471 MakeArg: func() interface{} { 3472 var ret [1]SimpleFSCancelUploadArg 3473 return &ret 3474 }, 3475 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3476 typedArgs, ok := args.(*[1]SimpleFSCancelUploadArg) 3477 if !ok { 3478 err = rpc.NewTypeError((*[1]SimpleFSCancelUploadArg)(nil), args) 3479 return 3480 } 3481 err = i.SimpleFSCancelUpload(ctx, typedArgs[0].UploadID) 3482 return 3483 }, 3484 }, 3485 "simpleFSDismissUpload": { 3486 MakeArg: func() interface{} { 3487 var ret [1]SimpleFSDismissUploadArg 3488 return &ret 3489 }, 3490 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3491 typedArgs, ok := args.(*[1]SimpleFSDismissUploadArg) 3492 if !ok { 3493 err = rpc.NewTypeError((*[1]SimpleFSDismissUploadArg)(nil), args) 3494 return 3495 } 3496 err = i.SimpleFSDismissUpload(ctx, typedArgs[0].UploadID) 3497 return 3498 }, 3499 }, 3500 "simpleFSGetFilesTabBadge": { 3501 MakeArg: func() interface{} { 3502 var ret [1]SimpleFSGetFilesTabBadgeArg 3503 return &ret 3504 }, 3505 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3506 ret, err = i.SimpleFSGetFilesTabBadge(ctx) 3507 return 3508 }, 3509 }, 3510 "simpleFSGetGUIFileContext": { 3511 MakeArg: func() interface{} { 3512 var ret [1]SimpleFSGetGUIFileContextArg 3513 return &ret 3514 }, 3515 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3516 typedArgs, ok := args.(*[1]SimpleFSGetGUIFileContextArg) 3517 if !ok { 3518 err = rpc.NewTypeError((*[1]SimpleFSGetGUIFileContextArg)(nil), args) 3519 return 3520 } 3521 ret, err = i.SimpleFSGetGUIFileContext(ctx, typedArgs[0].Path) 3522 return 3523 }, 3524 }, 3525 "simpleFSUserIn": { 3526 MakeArg: func() interface{} { 3527 var ret [1]SimpleFSUserInArg 3528 return &ret 3529 }, 3530 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3531 typedArgs, ok := args.(*[1]SimpleFSUserInArg) 3532 if !ok { 3533 err = rpc.NewTypeError((*[1]SimpleFSUserInArg)(nil), args) 3534 return 3535 } 3536 err = i.SimpleFSUserIn(ctx, typedArgs[0].ClientID) 3537 return 3538 }, 3539 }, 3540 "simpleFSUserOut": { 3541 MakeArg: func() interface{} { 3542 var ret [1]SimpleFSUserOutArg 3543 return &ret 3544 }, 3545 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3546 typedArgs, ok := args.(*[1]SimpleFSUserOutArg) 3547 if !ok { 3548 err = rpc.NewTypeError((*[1]SimpleFSUserOutArg)(nil), args) 3549 return 3550 } 3551 err = i.SimpleFSUserOut(ctx, typedArgs[0].ClientID) 3552 return 3553 }, 3554 }, 3555 "simpleFSSearch": { 3556 MakeArg: func() interface{} { 3557 var ret [1]SimpleFSSearchArg 3558 return &ret 3559 }, 3560 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3561 typedArgs, ok := args.(*[1]SimpleFSSearchArg) 3562 if !ok { 3563 err = rpc.NewTypeError((*[1]SimpleFSSearchArg)(nil), args) 3564 return 3565 } 3566 ret, err = i.SimpleFSSearch(ctx, typedArgs[0]) 3567 return 3568 }, 3569 }, 3570 "simpleFSResetIndex": { 3571 MakeArg: func() interface{} { 3572 var ret [1]SimpleFSResetIndexArg 3573 return &ret 3574 }, 3575 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3576 err = i.SimpleFSResetIndex(ctx) 3577 return 3578 }, 3579 }, 3580 "simpleFSGetIndexProgress": { 3581 MakeArg: func() interface{} { 3582 var ret [1]SimpleFSGetIndexProgressArg 3583 return &ret 3584 }, 3585 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3586 ret, err = i.SimpleFSGetIndexProgress(ctx) 3587 return 3588 }, 3589 }, 3590 "simpleFSCancelJournalUploads": { 3591 MakeArg: func() interface{} { 3592 var ret [1]SimpleFSCancelJournalUploadsArg 3593 return &ret 3594 }, 3595 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3596 typedArgs, ok := args.(*[1]SimpleFSCancelJournalUploadsArg) 3597 if !ok { 3598 err = rpc.NewTypeError((*[1]SimpleFSCancelJournalUploadsArg)(nil), args) 3599 return 3600 } 3601 err = i.SimpleFSCancelJournalUploads(ctx, typedArgs[0].Path) 3602 return 3603 }, 3604 }, 3605 "simpleFSArchiveStart": { 3606 MakeArg: func() interface{} { 3607 var ret [1]SimpleFSArchiveStartArg 3608 return &ret 3609 }, 3610 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3611 typedArgs, ok := args.(*[1]SimpleFSArchiveStartArg) 3612 if !ok { 3613 err = rpc.NewTypeError((*[1]SimpleFSArchiveStartArg)(nil), args) 3614 return 3615 } 3616 ret, err = i.SimpleFSArchiveStart(ctx, typedArgs[0]) 3617 return 3618 }, 3619 }, 3620 "simpleFSArchiveCancelOrDismissJob": { 3621 MakeArg: func() interface{} { 3622 var ret [1]SimpleFSArchiveCancelOrDismissJobArg 3623 return &ret 3624 }, 3625 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3626 typedArgs, ok := args.(*[1]SimpleFSArchiveCancelOrDismissJobArg) 3627 if !ok { 3628 err = rpc.NewTypeError((*[1]SimpleFSArchiveCancelOrDismissJobArg)(nil), args) 3629 return 3630 } 3631 err = i.SimpleFSArchiveCancelOrDismissJob(ctx, typedArgs[0].JobID) 3632 return 3633 }, 3634 }, 3635 "simpleFSGetArchiveStatus": { 3636 MakeArg: func() interface{} { 3637 var ret [1]SimpleFSGetArchiveStatusArg 3638 return &ret 3639 }, 3640 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3641 ret, err = i.SimpleFSGetArchiveStatus(ctx) 3642 return 3643 }, 3644 }, 3645 "simpleFSGetArchiveJobFreshness": { 3646 MakeArg: func() interface{} { 3647 var ret [1]SimpleFSGetArchiveJobFreshnessArg 3648 return &ret 3649 }, 3650 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3651 typedArgs, ok := args.(*[1]SimpleFSGetArchiveJobFreshnessArg) 3652 if !ok { 3653 err = rpc.NewTypeError((*[1]SimpleFSGetArchiveJobFreshnessArg)(nil), args) 3654 return 3655 } 3656 ret, err = i.SimpleFSGetArchiveJobFreshness(ctx, typedArgs[0].JobID) 3657 return 3658 }, 3659 }, 3660 "simpleFSArchiveCheckArchive": { 3661 MakeArg: func() interface{} { 3662 var ret [1]SimpleFSArchiveCheckArchiveArg 3663 return &ret 3664 }, 3665 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3666 typedArgs, ok := args.(*[1]SimpleFSArchiveCheckArchiveArg) 3667 if !ok { 3668 err = rpc.NewTypeError((*[1]SimpleFSArchiveCheckArchiveArg)(nil), args) 3669 return 3670 } 3671 ret, err = i.SimpleFSArchiveCheckArchive(ctx, typedArgs[0].ArchiveZipFilePath) 3672 return 3673 }, 3674 }, 3675 "simpleFSArchiveAllFiles": { 3676 MakeArg: func() interface{} { 3677 var ret [1]SimpleFSArchiveAllFilesArg 3678 return &ret 3679 }, 3680 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3681 typedArgs, ok := args.(*[1]SimpleFSArchiveAllFilesArg) 3682 if !ok { 3683 err = rpc.NewTypeError((*[1]SimpleFSArchiveAllFilesArg)(nil), args) 3684 return 3685 } 3686 ret, err = i.SimpleFSArchiveAllFiles(ctx, typedArgs[0]) 3687 return 3688 }, 3689 }, 3690 "simpleFSArchiveAllGitRepos": { 3691 MakeArg: func() interface{} { 3692 var ret [1]SimpleFSArchiveAllGitReposArg 3693 return &ret 3694 }, 3695 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3696 typedArgs, ok := args.(*[1]SimpleFSArchiveAllGitReposArg) 3697 if !ok { 3698 err = rpc.NewTypeError((*[1]SimpleFSArchiveAllGitReposArg)(nil), args) 3699 return 3700 } 3701 ret, err = i.SimpleFSArchiveAllGitRepos(ctx, typedArgs[0]) 3702 return 3703 }, 3704 }, 3705 }, 3706 } 3707 } 3708 3709 type SimpleFSClient struct { 3710 Cli rpc.GenericClient 3711 } 3712 3713 // Begin list of items in directory at path. 3714 // Retrieve results with readList(). 3715 // Can be a single file to get flags/status. 3716 // If `refreshSubscription` is true and the path is a KBFS path, simpleFS 3717 // will begin sending `FSPathUpdated` notifications for the for the 3718 // corresponding TLF, until another call refreshes the subscription on a 3719 // different TLF. 3720 func (c SimpleFSClient) SimpleFSList(ctx context.Context, __arg SimpleFSListArg) (err error) { 3721 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSList", []interface{}{__arg}, nil, 0*time.Millisecond) 3722 return 3723 } 3724 3725 // Begin recursive list of items in directory at path. 3726 // If `refreshSubscription` is true and the path is a KBFS path, simpleFS 3727 // will begin sending `FSPathUpdated` notifications for the for the 3728 // corresponding TLF, until another call refreshes the subscription on a 3729 // different TLF. 3730 func (c SimpleFSClient) SimpleFSListRecursive(ctx context.Context, __arg SimpleFSListRecursiveArg) (err error) { 3731 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSListRecursive", []interface{}{__arg}, nil, 0*time.Millisecond) 3732 return 3733 } 3734 3735 // Begin recursive list of items in directory at path up to a given depth 3736 func (c SimpleFSClient) SimpleFSListRecursiveToDepth(ctx context.Context, __arg SimpleFSListRecursiveToDepthArg) (err error) { 3737 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSListRecursiveToDepth", []interface{}{__arg}, nil, 0*time.Millisecond) 3738 return 3739 } 3740 3741 // Get list of Paths in progress. Can indicate status of pending 3742 // to get more entries. 3743 func (c SimpleFSClient) SimpleFSReadList(ctx context.Context, opID OpID) (res SimpleFSListResult, err error) { 3744 __arg := SimpleFSReadListArg{OpID: opID} 3745 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSReadList", []interface{}{__arg}, &res, 0*time.Millisecond) 3746 return 3747 } 3748 3749 // Begin copy of file or directory. 3750 func (c SimpleFSClient) SimpleFSCopy(ctx context.Context, __arg SimpleFSCopyArg) (err error) { 3751 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCopy", []interface{}{__arg}, nil, 0*time.Millisecond) 3752 return 3753 } 3754 3755 // Make a symlink of file or directory 3756 func (c SimpleFSClient) SimpleFSSymlink(ctx context.Context, __arg SimpleFSSymlinkArg) (err error) { 3757 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSymlink", []interface{}{__arg}, nil, 0*time.Millisecond) 3758 return 3759 } 3760 3761 // Begin recursive copy of directory 3762 // 3763 // overwriteExistingFiles controls whether an existing file from `src` will 3764 // overwrite a file with the same name in `dest`; if `false`, an error will be 3765 // returned in that case. For directories that share a name, the copy will 3766 // continue recursively into the directory without causing an error. 3767 func (c SimpleFSClient) SimpleFSCopyRecursive(ctx context.Context, __arg SimpleFSCopyRecursiveArg) (err error) { 3768 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCopyRecursive", []interface{}{__arg}, nil, 0*time.Millisecond) 3769 return 3770 } 3771 3772 // Begin move of file or directory, from/to KBFS only 3773 func (c SimpleFSClient) SimpleFSMove(ctx context.Context, __arg SimpleFSMoveArg) (err error) { 3774 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSMove", []interface{}{__arg}, nil, 0*time.Millisecond) 3775 return 3776 } 3777 3778 // Rename file or directory, KBFS side only 3779 func (c SimpleFSClient) SimpleFSRename(ctx context.Context, __arg SimpleFSRenameArg) (err error) { 3780 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSRename", []interface{}{__arg}, nil, 0*time.Millisecond) 3781 return 3782 } 3783 3784 // Create/open a file and leave it open 3785 // or create a directory 3786 // Files must be closed afterwards. 3787 func (c SimpleFSClient) SimpleFSOpen(ctx context.Context, __arg SimpleFSOpenArg) (err error) { 3788 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSOpen", []interface{}{__arg}, nil, 0*time.Millisecond) 3789 return 3790 } 3791 3792 // Set/clear file bits - only executable for now 3793 func (c SimpleFSClient) SimpleFSSetStat(ctx context.Context, __arg SimpleFSSetStatArg) (err error) { 3794 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSetStat", []interface{}{__arg}, nil, 0*time.Millisecond) 3795 return 3796 } 3797 3798 // Read (possibly partial) contents of open file, 3799 // up to the amount specified by size. 3800 // Repeat until zero bytes are returned or error. 3801 // If size is zero, read an arbitrary amount. 3802 func (c SimpleFSClient) SimpleFSRead(ctx context.Context, __arg SimpleFSReadArg) (res FileContent, err error) { 3803 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSRead", []interface{}{__arg}, &res, 0*time.Millisecond) 3804 return 3805 } 3806 3807 // Append content to opened file. 3808 // May be repeated until OpID is closed. 3809 func (c SimpleFSClient) SimpleFSWrite(ctx context.Context, __arg SimpleFSWriteArg) (err error) { 3810 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSWrite", []interface{}{__arg}, nil, 0*time.Millisecond) 3811 return 3812 } 3813 3814 // Remove file or directory from filesystem 3815 func (c SimpleFSClient) SimpleFSRemove(ctx context.Context, __arg SimpleFSRemoveArg) (err error) { 3816 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSRemove", []interface{}{__arg}, nil, 0*time.Millisecond) 3817 return 3818 } 3819 3820 // Get info about file 3821 func (c SimpleFSClient) SimpleFSStat(ctx context.Context, __arg SimpleFSStatArg) (res Dirent, err error) { 3822 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSStat", []interface{}{__arg}, &res, 0*time.Millisecond) 3823 return 3824 } 3825 3826 // Get revision info for a directory entry 3827 func (c SimpleFSClient) SimpleFSGetRevisions(ctx context.Context, __arg SimpleFSGetRevisionsArg) (err error) { 3828 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetRevisions", []interface{}{__arg}, nil, 0*time.Millisecond) 3829 return 3830 } 3831 3832 // Get list of revisions in progress. Can indicate status of pending 3833 // to get more revisions. 3834 func (c SimpleFSClient) SimpleFSReadRevisions(ctx context.Context, opID OpID) (res GetRevisionsResult, err error) { 3835 __arg := SimpleFSReadRevisionsArg{OpID: opID} 3836 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSReadRevisions", []interface{}{__arg}, &res, 0*time.Millisecond) 3837 return 3838 } 3839 3840 // Convenience helper for generating new random value 3841 func (c SimpleFSClient) SimpleFSMakeOpid(ctx context.Context) (res OpID, err error) { 3842 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSMakeOpid", []interface{}{SimpleFSMakeOpidArg{}}, &res, 0*time.Millisecond) 3843 return 3844 } 3845 3846 // Close OpID, cancels any pending operation. 3847 // Must be called after list/copy/remove 3848 func (c SimpleFSClient) SimpleFSClose(ctx context.Context, opID OpID) (err error) { 3849 __arg := SimpleFSCloseArg{OpID: opID} 3850 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSClose", []interface{}{__arg}, nil, 0*time.Millisecond) 3851 return 3852 } 3853 3854 // Cancels a running operation, like copy. 3855 func (c SimpleFSClient) SimpleFSCancel(ctx context.Context, opID OpID) (err error) { 3856 __arg := SimpleFSCancelArg{OpID: opID} 3857 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCancel", []interface{}{__arg}, nil, 0*time.Millisecond) 3858 return 3859 } 3860 3861 // Check progress of pending operation 3862 func (c SimpleFSClient) SimpleFSCheck(ctx context.Context, opID OpID) (res OpProgress, err error) { 3863 __arg := SimpleFSCheckArg{OpID: opID} 3864 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCheck", []interface{}{__arg}, &res, 0*time.Millisecond) 3865 return 3866 } 3867 3868 // Get all the outstanding operations 3869 func (c SimpleFSClient) SimpleFSGetOps(ctx context.Context) (res []OpDescription, err error) { 3870 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetOps", []interface{}{SimpleFSGetOpsArg{}}, &res, 0*time.Millisecond) 3871 return 3872 } 3873 3874 // Blocking wait for the pending operation to finish 3875 func (c SimpleFSClient) SimpleFSWait(ctx context.Context, opID OpID) (err error) { 3876 __arg := SimpleFSWaitArg{OpID: opID} 3877 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSWait", []interface{}{__arg}, nil, 0*time.Millisecond) 3878 return 3879 } 3880 3881 // Instructs KBFS to dump debugging info into its logs. 3882 func (c SimpleFSClient) SimpleFSDumpDebuggingInfo(ctx context.Context) (err error) { 3883 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSDumpDebuggingInfo", []interface{}{SimpleFSDumpDebuggingInfoArg{}}, nil, 0*time.Millisecond) 3884 return 3885 } 3886 3887 func (c SimpleFSClient) SimpleFSClearConflictState(ctx context.Context, path Path) (err error) { 3888 __arg := SimpleFSClearConflictStateArg{Path: path} 3889 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSClearConflictState", []interface{}{__arg}, nil, 0*time.Millisecond) 3890 return 3891 } 3892 3893 func (c SimpleFSClient) SimpleFSFinishResolvingConflict(ctx context.Context, path Path) (err error) { 3894 __arg := SimpleFSFinishResolvingConflictArg{Path: path} 3895 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSFinishResolvingConflict", []interface{}{__arg}, nil, 0*time.Millisecond) 3896 return 3897 } 3898 3899 // Force a TLF into a stuck conflict state (for testing). 3900 func (c SimpleFSClient) SimpleFSForceStuckConflict(ctx context.Context, path Path) (err error) { 3901 __arg := SimpleFSForceStuckConflictArg{Path: path} 3902 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSForceStuckConflict", []interface{}{__arg}, nil, 0*time.Millisecond) 3903 return 3904 } 3905 3906 // Get sync status. 3907 func (c SimpleFSClient) SimpleFSSyncStatus(ctx context.Context, filter ListFilter) (res FSSyncStatus, err error) { 3908 __arg := SimpleFSSyncStatusArg{Filter: filter} 3909 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSyncStatus", []interface{}{__arg}, &res, 0*time.Millisecond) 3910 return 3911 } 3912 3913 // simpleFSUserEditHistory returns edit histories of TLFs that the logged-in 3914 // user can access. Each returned history is corresponds to a unique 3915 // writer-TLF pair. They are in descending order by the modification time 3916 // (as recorded by the server) of the most recent edit in each history. 3917 func (c SimpleFSClient) SimpleFSUserEditHistory(ctx context.Context) (res []FSFolderEditHistory, err error) { 3918 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSUserEditHistory", []interface{}{SimpleFSUserEditHistoryArg{}}, &res, 0*time.Millisecond) 3919 return 3920 } 3921 3922 // simpleFSFolderEditHistory returns the edit history for the TLF 3923 // described by `path`, for the most recent writers of that TLF. 3924 // The writers are in descending order by the modification time (as 3925 // recorded by the server) of their most recent edit. 3926 func (c SimpleFSClient) SimpleFSFolderEditHistory(ctx context.Context, path Path) (res FSFolderEditHistory, err error) { 3927 __arg := SimpleFSFolderEditHistoryArg{Path: path} 3928 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSFolderEditHistory", []interface{}{__arg}, &res, 0*time.Millisecond) 3929 return 3930 } 3931 3932 // simpleFSListFavorites gets the current favorites, ignored folders, and new 3933 // folders from the KBFS cache. 3934 func (c SimpleFSClient) SimpleFSListFavorites(ctx context.Context) (res FavoritesResult, err error) { 3935 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSListFavorites", []interface{}{SimpleFSListFavoritesArg{}}, &res, 0*time.Millisecond) 3936 return 3937 } 3938 3939 // simpleFSGetUserQuotaUsage returns the quota usage for the logged-in 3940 // user. Any usage includes local journal usage as well. 3941 func (c SimpleFSClient) SimpleFSGetUserQuotaUsage(ctx context.Context) (res SimpleFSQuotaUsage, err error) { 3942 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetUserQuotaUsage", []interface{}{SimpleFSGetUserQuotaUsageArg{}}, &res, 0*time.Millisecond) 3943 return 3944 } 3945 3946 // simpleFSGetTeamQuotaUsage returns the quota usage for the given team, if 3947 // the logged-in user has access to that team. Any usage includes 3948 // local journal usage as well. 3949 func (c SimpleFSClient) SimpleFSGetTeamQuotaUsage(ctx context.Context, teamName TeamName) (res SimpleFSQuotaUsage, err error) { 3950 __arg := SimpleFSGetTeamQuotaUsageArg{TeamName: teamName} 3951 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetTeamQuotaUsage", []interface{}{__arg}, &res, 0*time.Millisecond) 3952 return 3953 } 3954 3955 // simpleFSReset completely resets the KBFS folder referenced in `path`. 3956 // It should only be called after explicit user confirmation. 3957 func (c SimpleFSClient) SimpleFSReset(ctx context.Context, __arg SimpleFSResetArg) (err error) { 3958 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSReset", []interface{}{__arg}, nil, 0*time.Millisecond) 3959 return 3960 } 3961 3962 func (c SimpleFSClient) SimpleFSFolderSyncConfigAndStatus(ctx context.Context, path Path) (res FolderSyncConfigAndStatus, err error) { 3963 __arg := SimpleFSFolderSyncConfigAndStatusArg{Path: path} 3964 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSFolderSyncConfigAndStatus", []interface{}{__arg}, &res, 0*time.Millisecond) 3965 return 3966 } 3967 3968 func (c SimpleFSClient) SimpleFSSetFolderSyncConfig(ctx context.Context, __arg SimpleFSSetFolderSyncConfigArg) (err error) { 3969 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSetFolderSyncConfig", []interface{}{__arg}, nil, 0*time.Millisecond) 3970 return 3971 } 3972 3973 func (c SimpleFSClient) SimpleFSSyncConfigAndStatus(ctx context.Context, identifyBehavior *TLFIdentifyBehavior) (res SyncConfigAndStatusRes, err error) { 3974 __arg := SimpleFSSyncConfigAndStatusArg{IdentifyBehavior: identifyBehavior} 3975 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSyncConfigAndStatus", []interface{}{__arg}, &res, 0*time.Millisecond) 3976 return 3977 } 3978 3979 func (c SimpleFSClient) SimpleFSGetFolder(ctx context.Context, path KBFSPath) (res FolderWithFavFlags, err error) { 3980 __arg := SimpleFSGetFolderArg{Path: path} 3981 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetFolder", []interface{}{__arg}, &res, 0*time.Millisecond) 3982 return 3983 } 3984 3985 func (c SimpleFSClient) SimpleFSGetOnlineStatus(ctx context.Context, clientID string) (res KbfsOnlineStatus, err error) { 3986 __arg := SimpleFSGetOnlineStatusArg{ClientID: clientID} 3987 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetOnlineStatus", []interface{}{__arg}, &res, 0*time.Millisecond) 3988 return 3989 } 3990 3991 func (c SimpleFSClient) SimpleFSCheckReachability(ctx context.Context) (err error) { 3992 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCheckReachability", []interface{}{SimpleFSCheckReachabilityArg{}}, nil, 0*time.Millisecond) 3993 return 3994 } 3995 3996 func (c SimpleFSClient) SimpleFSSetDebugLevel(ctx context.Context, level string) (err error) { 3997 __arg := SimpleFSSetDebugLevelArg{Level: level} 3998 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSetDebugLevel", []interface{}{__arg}, nil, 0*time.Millisecond) 3999 return 4000 } 4001 4002 func (c SimpleFSClient) SimpleFSSettings(ctx context.Context) (res FSSettings, err error) { 4003 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSettings", []interface{}{SimpleFSSettingsArg{}}, &res, 0*time.Millisecond) 4004 return 4005 } 4006 4007 func (c SimpleFSClient) SimpleFSSetNotificationThreshold(ctx context.Context, threshold int64) (err error) { 4008 __arg := SimpleFSSetNotificationThresholdArg{Threshold: threshold} 4009 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSetNotificationThreshold", []interface{}{__arg}, nil, 0*time.Millisecond) 4010 return 4011 } 4012 4013 func (c SimpleFSClient) SimpleFSSetSfmiBannerDismissed(ctx context.Context, dismissed bool) (err error) { 4014 __arg := SimpleFSSetSfmiBannerDismissedArg{Dismissed: dismissed} 4015 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSetSfmiBannerDismissed", []interface{}{__arg}, nil, 0*time.Millisecond) 4016 return 4017 } 4018 4019 func (c SimpleFSClient) SimpleFSSetSyncOnCellular(ctx context.Context, syncOnCellular bool) (err error) { 4020 __arg := SimpleFSSetSyncOnCellularArg{SyncOnCellular: syncOnCellular} 4021 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSetSyncOnCellular", []interface{}{__arg}, nil, 0*time.Millisecond) 4022 return 4023 } 4024 4025 func (c SimpleFSClient) SimpleFSObfuscatePath(ctx context.Context, path Path) (res string, err error) { 4026 __arg := SimpleFSObfuscatePathArg{Path: path} 4027 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSObfuscatePath", []interface{}{__arg}, &res, 0*time.Millisecond) 4028 return 4029 } 4030 4031 func (c SimpleFSClient) SimpleFSDeobfuscatePath(ctx context.Context, path Path) (res []string, err error) { 4032 __arg := SimpleFSDeobfuscatePathArg{Path: path} 4033 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSDeobfuscatePath", []interface{}{__arg}, &res, 0*time.Millisecond) 4034 return 4035 } 4036 4037 func (c SimpleFSClient) SimpleFSGetStats(ctx context.Context) (res SimpleFSStats, err error) { 4038 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetStats", []interface{}{SimpleFSGetStatsArg{}}, &res, 0*time.Millisecond) 4039 return 4040 } 4041 4042 func (c SimpleFSClient) SimpleFSSubscribePath(ctx context.Context, __arg SimpleFSSubscribePathArg) (err error) { 4043 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSubscribePath", []interface{}{__arg}, nil, 0*time.Millisecond) 4044 return 4045 } 4046 4047 func (c SimpleFSClient) SimpleFSSubscribeNonPath(ctx context.Context, __arg SimpleFSSubscribeNonPathArg) (err error) { 4048 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSubscribeNonPath", []interface{}{__arg}, nil, 0*time.Millisecond) 4049 return 4050 } 4051 4052 func (c SimpleFSClient) SimpleFSUnsubscribe(ctx context.Context, __arg SimpleFSUnsubscribeArg) (err error) { 4053 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSUnsubscribe", []interface{}{__arg}, nil, 0*time.Millisecond) 4054 return 4055 } 4056 4057 func (c SimpleFSClient) SimpleFSStartDownload(ctx context.Context, __arg SimpleFSStartDownloadArg) (res string, err error) { 4058 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSStartDownload", []interface{}{__arg}, &res, 0*time.Millisecond) 4059 return 4060 } 4061 4062 func (c SimpleFSClient) SimpleFSGetDownloadInfo(ctx context.Context, downloadID string) (res DownloadInfo, err error) { 4063 __arg := SimpleFSGetDownloadInfoArg{DownloadID: downloadID} 4064 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetDownloadInfo", []interface{}{__arg}, &res, 0*time.Millisecond) 4065 return 4066 } 4067 4068 func (c SimpleFSClient) SimpleFSGetDownloadStatus(ctx context.Context) (res DownloadStatus, err error) { 4069 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetDownloadStatus", []interface{}{SimpleFSGetDownloadStatusArg{}}, &res, 0*time.Millisecond) 4070 return 4071 } 4072 4073 func (c SimpleFSClient) SimpleFSCancelDownload(ctx context.Context, downloadID string) (err error) { 4074 __arg := SimpleFSCancelDownloadArg{DownloadID: downloadID} 4075 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCancelDownload", []interface{}{__arg}, nil, 0*time.Millisecond) 4076 return 4077 } 4078 4079 func (c SimpleFSClient) SimpleFSDismissDownload(ctx context.Context, downloadID string) (err error) { 4080 __arg := SimpleFSDismissDownloadArg{DownloadID: downloadID} 4081 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSDismissDownload", []interface{}{__arg}, nil, 0*time.Millisecond) 4082 return 4083 } 4084 4085 func (c SimpleFSClient) SimpleFSConfigureDownload(ctx context.Context, __arg SimpleFSConfigureDownloadArg) (err error) { 4086 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSConfigureDownload", []interface{}{__arg}, nil, 0*time.Millisecond) 4087 return 4088 } 4089 4090 func (c SimpleFSClient) SimpleFSMakeTempDirForUpload(ctx context.Context) (res string, err error) { 4091 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSMakeTempDirForUpload", []interface{}{SimpleFSMakeTempDirForUploadArg{}}, &res, 0*time.Millisecond) 4092 return 4093 } 4094 4095 func (c SimpleFSClient) SimpleFSStartUpload(ctx context.Context, __arg SimpleFSStartUploadArg) (res string, err error) { 4096 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSStartUpload", []interface{}{__arg}, &res, 0*time.Millisecond) 4097 return 4098 } 4099 4100 func (c SimpleFSClient) SimpleFSGetUploadStatus(ctx context.Context) (res []UploadState, err error) { 4101 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetUploadStatus", []interface{}{SimpleFSGetUploadStatusArg{}}, &res, 0*time.Millisecond) 4102 return 4103 } 4104 4105 func (c SimpleFSClient) SimpleFSCancelUpload(ctx context.Context, uploadID string) (err error) { 4106 __arg := SimpleFSCancelUploadArg{UploadID: uploadID} 4107 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCancelUpload", []interface{}{__arg}, nil, 0*time.Millisecond) 4108 return 4109 } 4110 4111 func (c SimpleFSClient) SimpleFSDismissUpload(ctx context.Context, uploadID string) (err error) { 4112 __arg := SimpleFSDismissUploadArg{UploadID: uploadID} 4113 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSDismissUpload", []interface{}{__arg}, nil, 0*time.Millisecond) 4114 return 4115 } 4116 4117 func (c SimpleFSClient) SimpleFSGetFilesTabBadge(ctx context.Context) (res FilesTabBadge, err error) { 4118 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetFilesTabBadge", []interface{}{SimpleFSGetFilesTabBadgeArg{}}, &res, 0*time.Millisecond) 4119 return 4120 } 4121 4122 func (c SimpleFSClient) SimpleFSGetGUIFileContext(ctx context.Context, path KBFSPath) (res GUIFileContext, err error) { 4123 __arg := SimpleFSGetGUIFileContextArg{Path: path} 4124 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetGUIFileContext", []interface{}{__arg}, &res, 0*time.Millisecond) 4125 return 4126 } 4127 4128 func (c SimpleFSClient) SimpleFSUserIn(ctx context.Context, clientID string) (err error) { 4129 __arg := SimpleFSUserInArg{ClientID: clientID} 4130 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSUserIn", []interface{}{__arg}, nil, 0*time.Millisecond) 4131 return 4132 } 4133 4134 func (c SimpleFSClient) SimpleFSUserOut(ctx context.Context, clientID string) (err error) { 4135 __arg := SimpleFSUserOutArg{ClientID: clientID} 4136 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSUserOut", []interface{}{__arg}, nil, 0*time.Millisecond) 4137 return 4138 } 4139 4140 func (c SimpleFSClient) SimpleFSSearch(ctx context.Context, __arg SimpleFSSearchArg) (res SimpleFSSearchResults, err error) { 4141 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSSearch", []interface{}{__arg}, &res, 0*time.Millisecond) 4142 return 4143 } 4144 4145 func (c SimpleFSClient) SimpleFSResetIndex(ctx context.Context) (err error) { 4146 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSResetIndex", []interface{}{SimpleFSResetIndexArg{}}, nil, 0*time.Millisecond) 4147 return 4148 } 4149 4150 func (c SimpleFSClient) SimpleFSGetIndexProgress(ctx context.Context) (res SimpleFSIndexProgress, err error) { 4151 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetIndexProgress", []interface{}{SimpleFSGetIndexProgressArg{}}, &res, 0*time.Millisecond) 4152 return 4153 } 4154 4155 func (c SimpleFSClient) SimpleFSCancelJournalUploads(ctx context.Context, path KBFSPath) (err error) { 4156 __arg := SimpleFSCancelJournalUploadsArg{Path: path} 4157 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSCancelJournalUploads", []interface{}{__arg}, nil, 0*time.Millisecond) 4158 return 4159 } 4160 4161 func (c SimpleFSClient) SimpleFSArchiveStart(ctx context.Context, __arg SimpleFSArchiveStartArg) (res SimpleFSArchiveJobDesc, err error) { 4162 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSArchiveStart", []interface{}{__arg}, &res, 0*time.Millisecond) 4163 return 4164 } 4165 4166 func (c SimpleFSClient) SimpleFSArchiveCancelOrDismissJob(ctx context.Context, jobID string) (err error) { 4167 __arg := SimpleFSArchiveCancelOrDismissJobArg{JobID: jobID} 4168 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSArchiveCancelOrDismissJob", []interface{}{__arg}, nil, 0*time.Millisecond) 4169 return 4170 } 4171 4172 func (c SimpleFSClient) SimpleFSGetArchiveStatus(ctx context.Context) (res SimpleFSArchiveStatus, err error) { 4173 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetArchiveStatus", []interface{}{SimpleFSGetArchiveStatusArg{}}, &res, 0*time.Millisecond) 4174 return 4175 } 4176 4177 func (c SimpleFSClient) SimpleFSGetArchiveJobFreshness(ctx context.Context, jobID string) (res SimpleFSArchiveJobFreshness, err error) { 4178 __arg := SimpleFSGetArchiveJobFreshnessArg{JobID: jobID} 4179 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSGetArchiveJobFreshness", []interface{}{__arg}, &res, 0*time.Millisecond) 4180 return 4181 } 4182 4183 func (c SimpleFSClient) SimpleFSArchiveCheckArchive(ctx context.Context, archiveZipFilePath string) (res SimpleFSArchiveCheckArchiveResult, err error) { 4184 __arg := SimpleFSArchiveCheckArchiveArg{ArchiveZipFilePath: archiveZipFilePath} 4185 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSArchiveCheckArchive", []interface{}{__arg}, &res, 0*time.Millisecond) 4186 return 4187 } 4188 4189 func (c SimpleFSClient) SimpleFSArchiveAllFiles(ctx context.Context, __arg SimpleFSArchiveAllFilesArg) (res SimpleFSArchiveAllFilesResult, err error) { 4190 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSArchiveAllFiles", []interface{}{__arg}, &res, 0*time.Millisecond) 4191 return 4192 } 4193 4194 func (c SimpleFSClient) SimpleFSArchiveAllGitRepos(ctx context.Context, __arg SimpleFSArchiveAllGitReposArg) (res SimpleFSArchiveAllGitReposResult, err error) { 4195 err = c.Cli.Call(ctx, "keybase.1.SimpleFS.simpleFSArchiveAllGitRepos", []interface{}{__arg}, &res, 0*time.Millisecond) 4196 return 4197 }