specs.pb.go 144 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676
  1. // Code generated by protoc-gen-gogo.
  2. // source: specs.proto
  3. // DO NOT EDIT!
  4. package api
  5. import proto "github.com/gogo/protobuf/proto"
  6. import fmt "fmt"
  7. import math "math"
  8. import _ "github.com/gogo/protobuf/gogoproto"
  9. import google_protobuf1 "github.com/gogo/protobuf/types"
  10. import google_protobuf3 "github.com/gogo/protobuf/types"
  11. import github_com_docker_swarmkit_api_deepcopy "github.com/docker/swarmkit/api/deepcopy"
  12. import strings "strings"
  13. import reflect "reflect"
  14. import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  15. import io "io"
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. type NodeSpec_Membership int32
  21. const (
  22. NodeMembershipPending NodeSpec_Membership = 0
  23. NodeMembershipAccepted NodeSpec_Membership = 1
  24. )
  25. var NodeSpec_Membership_name = map[int32]string{
  26. 0: "PENDING",
  27. 1: "ACCEPTED",
  28. }
  29. var NodeSpec_Membership_value = map[string]int32{
  30. "PENDING": 0,
  31. "ACCEPTED": 1,
  32. }
  33. func (x NodeSpec_Membership) String() string {
  34. return proto.EnumName(NodeSpec_Membership_name, int32(x))
  35. }
  36. func (NodeSpec_Membership) EnumDescriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{0, 0} }
  37. type NodeSpec_Availability int32
  38. const (
  39. // Active nodes.
  40. NodeAvailabilityActive NodeSpec_Availability = 0
  41. // Paused nodes won't be considered by the scheduler, preventing any
  42. // further task to run on them.
  43. NodeAvailabilityPause NodeSpec_Availability = 1
  44. // Drained nodes are paused and any task already running on them will
  45. // be evicted.
  46. NodeAvailabilityDrain NodeSpec_Availability = 2
  47. )
  48. var NodeSpec_Availability_name = map[int32]string{
  49. 0: "ACTIVE",
  50. 1: "PAUSE",
  51. 2: "DRAIN",
  52. }
  53. var NodeSpec_Availability_value = map[string]int32{
  54. "ACTIVE": 0,
  55. "PAUSE": 1,
  56. "DRAIN": 2,
  57. }
  58. func (x NodeSpec_Availability) String() string {
  59. return proto.EnumName(NodeSpec_Availability_name, int32(x))
  60. }
  61. func (NodeSpec_Availability) EnumDescriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{0, 1} }
  62. // ResolutionMode specifies the mode of resolution to use for
  63. // internal loadbalancing between tasks which are all within
  64. // the cluster. This is sometimes calls east-west data path.
  65. type EndpointSpec_ResolutionMode int32
  66. const (
  67. // VIP resolution mode specifies that the
  68. // service resolves to a logical IP and the requests
  69. // are sent to that logical IP. Packets hitting that
  70. // logical IP are load balanced to a chosen backend.
  71. ResolutionModeVirtualIP EndpointSpec_ResolutionMode = 0
  72. // DNSRR resolution mode specifies that the
  73. // service directly gets resolved to one of the
  74. // backend IP and the client directly initiates a
  75. // request towards the actual backend. This requires
  76. // that the client does not cache the DNS responses
  77. // when the DNS response TTL is 0.
  78. ResolutionModeDNSRoundRobin EndpointSpec_ResolutionMode = 1
  79. )
  80. var EndpointSpec_ResolutionMode_name = map[int32]string{
  81. 0: "VIP",
  82. 1: "DNSRR",
  83. }
  84. var EndpointSpec_ResolutionMode_value = map[string]int32{
  85. "VIP": 0,
  86. "DNSRR": 1,
  87. }
  88. func (x EndpointSpec_ResolutionMode) String() string {
  89. return proto.EnumName(EndpointSpec_ResolutionMode_name, int32(x))
  90. }
  91. func (EndpointSpec_ResolutionMode) EnumDescriptor() ([]byte, []int) {
  92. return fileDescriptorSpecs, []int{8, 0}
  93. }
  94. type NodeSpec struct {
  95. Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
  96. // DesiredRole defines the role the node should have.
  97. DesiredRole NodeRole `protobuf:"varint,2,opt,name=desired_role,json=desiredRole,proto3,enum=docker.swarmkit.v1.NodeRole" json:"desired_role,omitempty"`
  98. // Membership controls the admission of the node into the cluster.
  99. Membership NodeSpec_Membership `protobuf:"varint,3,opt,name=membership,proto3,enum=docker.swarmkit.v1.NodeSpec_Membership" json:"membership,omitempty"`
  100. // Availability allows a user to control the current scheduling status of a
  101. // node.
  102. Availability NodeSpec_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=docker.swarmkit.v1.NodeSpec_Availability" json:"availability,omitempty"`
  103. }
  104. func (m *NodeSpec) Reset() { *m = NodeSpec{} }
  105. func (*NodeSpec) ProtoMessage() {}
  106. func (*NodeSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{0} }
  107. // ServiceSpec defines the properties of a service.
  108. //
  109. // A service instructs the cluster in orchestrating repeated instances of a
  110. // template, implemented as tasks. Based on the number of instances, scheduling
  111. // strategy and restart policy, a number of application-level behaviors can be
  112. // defined.
  113. type ServiceSpec struct {
  114. Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
  115. // Task defines the task template this service will spawn.
  116. Task TaskSpec `protobuf:"bytes,2,opt,name=task" json:"task"`
  117. // Types that are valid to be assigned to Mode:
  118. // *ServiceSpec_Replicated
  119. // *ServiceSpec_Global
  120. Mode isServiceSpec_Mode `protobuf_oneof:"mode"`
  121. // Update contains settings which affect updates.
  122. Update *UpdateConfig `protobuf:"bytes,6,opt,name=update" json:"update,omitempty"`
  123. // Rollback contains settings which affect rollbacks of updates.
  124. Rollback *UpdateConfig `protobuf:"bytes,9,opt,name=rollback" json:"rollback,omitempty"`
  125. // ServiceSpec.Networks has been deprecated and is replaced by
  126. // Networks field in Task (TaskSpec.Networks).
  127. // This field (ServiceSpec.Networks) is kept for compatibility.
  128. // In case TaskSpec.Networks does not exist, ServiceSpec.Networks
  129. // is still honored if it exists.
  130. Networks []*NetworkAttachmentConfig `protobuf:"bytes,7,rep,name=networks" json:"networks,omitempty"`
  131. // Service endpoint specifies the user provided configuration
  132. // to properly discover and load balance a service.
  133. Endpoint *EndpointSpec `protobuf:"bytes,8,opt,name=endpoint" json:"endpoint,omitempty"`
  134. }
  135. func (m *ServiceSpec) Reset() { *m = ServiceSpec{} }
  136. func (*ServiceSpec) ProtoMessage() {}
  137. func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{1} }
  138. type isServiceSpec_Mode interface {
  139. isServiceSpec_Mode()
  140. MarshalTo([]byte) (int, error)
  141. Size() int
  142. }
  143. type ServiceSpec_Replicated struct {
  144. Replicated *ReplicatedService `protobuf:"bytes,3,opt,name=replicated,oneof"`
  145. }
  146. type ServiceSpec_Global struct {
  147. Global *GlobalService `protobuf:"bytes,4,opt,name=global,oneof"`
  148. }
  149. func (*ServiceSpec_Replicated) isServiceSpec_Mode() {}
  150. func (*ServiceSpec_Global) isServiceSpec_Mode() {}
  151. func (m *ServiceSpec) GetMode() isServiceSpec_Mode {
  152. if m != nil {
  153. return m.Mode
  154. }
  155. return nil
  156. }
  157. func (m *ServiceSpec) GetReplicated() *ReplicatedService {
  158. if x, ok := m.GetMode().(*ServiceSpec_Replicated); ok {
  159. return x.Replicated
  160. }
  161. return nil
  162. }
  163. func (m *ServiceSpec) GetGlobal() *GlobalService {
  164. if x, ok := m.GetMode().(*ServiceSpec_Global); ok {
  165. return x.Global
  166. }
  167. return nil
  168. }
  169. // XXX_OneofFuncs is for the internal use of the proto package.
  170. func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  171. return _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{
  172. (*ServiceSpec_Replicated)(nil),
  173. (*ServiceSpec_Global)(nil),
  174. }
  175. }
  176. func _ServiceSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  177. m := msg.(*ServiceSpec)
  178. // mode
  179. switch x := m.Mode.(type) {
  180. case *ServiceSpec_Replicated:
  181. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  182. if err := b.EncodeMessage(x.Replicated); err != nil {
  183. return err
  184. }
  185. case *ServiceSpec_Global:
  186. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  187. if err := b.EncodeMessage(x.Global); err != nil {
  188. return err
  189. }
  190. case nil:
  191. default:
  192. return fmt.Errorf("ServiceSpec.Mode has unexpected type %T", x)
  193. }
  194. return nil
  195. }
  196. func _ServiceSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  197. m := msg.(*ServiceSpec)
  198. switch tag {
  199. case 3: // mode.replicated
  200. if wire != proto.WireBytes {
  201. return true, proto.ErrInternalBadWireType
  202. }
  203. msg := new(ReplicatedService)
  204. err := b.DecodeMessage(msg)
  205. m.Mode = &ServiceSpec_Replicated{msg}
  206. return true, err
  207. case 4: // mode.global
  208. if wire != proto.WireBytes {
  209. return true, proto.ErrInternalBadWireType
  210. }
  211. msg := new(GlobalService)
  212. err := b.DecodeMessage(msg)
  213. m.Mode = &ServiceSpec_Global{msg}
  214. return true, err
  215. default:
  216. return false, nil
  217. }
  218. }
  219. func _ServiceSpec_OneofSizer(msg proto.Message) (n int) {
  220. m := msg.(*ServiceSpec)
  221. // mode
  222. switch x := m.Mode.(type) {
  223. case *ServiceSpec_Replicated:
  224. s := proto.Size(x.Replicated)
  225. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  226. n += proto.SizeVarint(uint64(s))
  227. n += s
  228. case *ServiceSpec_Global:
  229. s := proto.Size(x.Global)
  230. n += proto.SizeVarint(4<<3 | proto.WireBytes)
  231. n += proto.SizeVarint(uint64(s))
  232. n += s
  233. case nil:
  234. default:
  235. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  236. }
  237. return n
  238. }
  239. // ReplicatedService sets the reconciliation target to certain number of replicas.
  240. type ReplicatedService struct {
  241. Replicas uint64 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"`
  242. }
  243. func (m *ReplicatedService) Reset() { *m = ReplicatedService{} }
  244. func (*ReplicatedService) ProtoMessage() {}
  245. func (*ReplicatedService) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{2} }
  246. // GlobalService represents global service.
  247. type GlobalService struct {
  248. }
  249. func (m *GlobalService) Reset() { *m = GlobalService{} }
  250. func (*GlobalService) ProtoMessage() {}
  251. func (*GlobalService) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{3} }
  252. type TaskSpec struct {
  253. // Types that are valid to be assigned to Runtime:
  254. // *TaskSpec_Attachment
  255. // *TaskSpec_Container
  256. // *TaskSpec_Generic
  257. Runtime isTaskSpec_Runtime `protobuf_oneof:"runtime"`
  258. // Resource requirements for the container.
  259. Resources *ResourceRequirements `protobuf:"bytes,2,opt,name=resources" json:"resources,omitempty"`
  260. // RestartPolicy specifies what to do when a task fails or finishes.
  261. Restart *RestartPolicy `protobuf:"bytes,4,opt,name=restart" json:"restart,omitempty"`
  262. // Placement specifies node selection constraints
  263. Placement *Placement `protobuf:"bytes,5,opt,name=placement" json:"placement,omitempty"`
  264. // LogDriver specifies the log driver to use for the task. Any runtime will
  265. // direct logs into the specified driver for the duration of the task.
  266. LogDriver *Driver `protobuf:"bytes,6,opt,name=log_driver,json=logDriver" json:"log_driver,omitempty"`
  267. // Networks specifies the list of network attachment
  268. // configurations (which specify the network and per-network
  269. // aliases) that this task spec is bound to.
  270. Networks []*NetworkAttachmentConfig `protobuf:"bytes,7,rep,name=networks" json:"networks,omitempty"`
  271. // ForceUpdate is a counter that triggers an update even if no relevant
  272. // parameters have been changed. We do this to allow forced restarts
  273. // using the same reconciliation-based mechanism that performs rolling
  274. // updates.
  275. ForceUpdate uint64 `protobuf:"varint,9,opt,name=force_update,json=forceUpdate,proto3" json:"force_update,omitempty"`
  276. }
  277. func (m *TaskSpec) Reset() { *m = TaskSpec{} }
  278. func (*TaskSpec) ProtoMessage() {}
  279. func (*TaskSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{4} }
  280. type isTaskSpec_Runtime interface {
  281. isTaskSpec_Runtime()
  282. MarshalTo([]byte) (int, error)
  283. Size() int
  284. }
  285. type TaskSpec_Attachment struct {
  286. Attachment *NetworkAttachmentSpec `protobuf:"bytes,8,opt,name=attachment,oneof"`
  287. }
  288. type TaskSpec_Container struct {
  289. Container *ContainerSpec `protobuf:"bytes,1,opt,name=container,oneof"`
  290. }
  291. type TaskSpec_Generic struct {
  292. Generic *GenericRuntimeSpec `protobuf:"bytes,10,opt,name=generic,oneof"`
  293. }
  294. func (*TaskSpec_Attachment) isTaskSpec_Runtime() {}
  295. func (*TaskSpec_Container) isTaskSpec_Runtime() {}
  296. func (*TaskSpec_Generic) isTaskSpec_Runtime() {}
  297. func (m *TaskSpec) GetRuntime() isTaskSpec_Runtime {
  298. if m != nil {
  299. return m.Runtime
  300. }
  301. return nil
  302. }
  303. func (m *TaskSpec) GetAttachment() *NetworkAttachmentSpec {
  304. if x, ok := m.GetRuntime().(*TaskSpec_Attachment); ok {
  305. return x.Attachment
  306. }
  307. return nil
  308. }
  309. func (m *TaskSpec) GetContainer() *ContainerSpec {
  310. if x, ok := m.GetRuntime().(*TaskSpec_Container); ok {
  311. return x.Container
  312. }
  313. return nil
  314. }
  315. func (m *TaskSpec) GetGeneric() *GenericRuntimeSpec {
  316. if x, ok := m.GetRuntime().(*TaskSpec_Generic); ok {
  317. return x.Generic
  318. }
  319. return nil
  320. }
  321. // XXX_OneofFuncs is for the internal use of the proto package.
  322. func (*TaskSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  323. return _TaskSpec_OneofMarshaler, _TaskSpec_OneofUnmarshaler, _TaskSpec_OneofSizer, []interface{}{
  324. (*TaskSpec_Attachment)(nil),
  325. (*TaskSpec_Container)(nil),
  326. (*TaskSpec_Generic)(nil),
  327. }
  328. }
  329. func _TaskSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  330. m := msg.(*TaskSpec)
  331. // runtime
  332. switch x := m.Runtime.(type) {
  333. case *TaskSpec_Attachment:
  334. _ = b.EncodeVarint(8<<3 | proto.WireBytes)
  335. if err := b.EncodeMessage(x.Attachment); err != nil {
  336. return err
  337. }
  338. case *TaskSpec_Container:
  339. _ = b.EncodeVarint(1<<3 | proto.WireBytes)
  340. if err := b.EncodeMessage(x.Container); err != nil {
  341. return err
  342. }
  343. case *TaskSpec_Generic:
  344. _ = b.EncodeVarint(10<<3 | proto.WireBytes)
  345. if err := b.EncodeMessage(x.Generic); err != nil {
  346. return err
  347. }
  348. case nil:
  349. default:
  350. return fmt.Errorf("TaskSpec.Runtime has unexpected type %T", x)
  351. }
  352. return nil
  353. }
  354. func _TaskSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  355. m := msg.(*TaskSpec)
  356. switch tag {
  357. case 8: // runtime.attachment
  358. if wire != proto.WireBytes {
  359. return true, proto.ErrInternalBadWireType
  360. }
  361. msg := new(NetworkAttachmentSpec)
  362. err := b.DecodeMessage(msg)
  363. m.Runtime = &TaskSpec_Attachment{msg}
  364. return true, err
  365. case 1: // runtime.container
  366. if wire != proto.WireBytes {
  367. return true, proto.ErrInternalBadWireType
  368. }
  369. msg := new(ContainerSpec)
  370. err := b.DecodeMessage(msg)
  371. m.Runtime = &TaskSpec_Container{msg}
  372. return true, err
  373. case 10: // runtime.generic
  374. if wire != proto.WireBytes {
  375. return true, proto.ErrInternalBadWireType
  376. }
  377. msg := new(GenericRuntimeSpec)
  378. err := b.DecodeMessage(msg)
  379. m.Runtime = &TaskSpec_Generic{msg}
  380. return true, err
  381. default:
  382. return false, nil
  383. }
  384. }
  385. func _TaskSpec_OneofSizer(msg proto.Message) (n int) {
  386. m := msg.(*TaskSpec)
  387. // runtime
  388. switch x := m.Runtime.(type) {
  389. case *TaskSpec_Attachment:
  390. s := proto.Size(x.Attachment)
  391. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  392. n += proto.SizeVarint(uint64(s))
  393. n += s
  394. case *TaskSpec_Container:
  395. s := proto.Size(x.Container)
  396. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  397. n += proto.SizeVarint(uint64(s))
  398. n += s
  399. case *TaskSpec_Generic:
  400. s := proto.Size(x.Generic)
  401. n += proto.SizeVarint(10<<3 | proto.WireBytes)
  402. n += proto.SizeVarint(uint64(s))
  403. n += s
  404. case nil:
  405. default:
  406. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  407. }
  408. return n
  409. }
  410. type GenericRuntimeSpec struct {
  411. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
  412. Payload *google_protobuf3.Any `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
  413. }
  414. func (m *GenericRuntimeSpec) Reset() { *m = GenericRuntimeSpec{} }
  415. func (*GenericRuntimeSpec) ProtoMessage() {}
  416. func (*GenericRuntimeSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{5} }
  417. // NetworkAttachmentSpec specifies runtime parameters required to attach
  418. // a container to a network.
  419. type NetworkAttachmentSpec struct {
  420. // ContainerID specifies a unique ID of the container for which
  421. // this attachment is for.
  422. ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  423. }
  424. func (m *NetworkAttachmentSpec) Reset() { *m = NetworkAttachmentSpec{} }
  425. func (*NetworkAttachmentSpec) ProtoMessage() {}
  426. func (*NetworkAttachmentSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{6} }
  427. // Container specifies runtime parameters for a container.
  428. type ContainerSpec struct {
  429. // image defines the image reference, as specified in the
  430. // distribution/reference package. This may include a registry host, name,
  431. // tag or digest.
  432. //
  433. // The field will be directly passed to the engine pulling. Well-behaved
  434. // service definitions will used immutable references, either through tags
  435. // that don't change or verifiable digests.
  436. Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  437. // Labels defines labels to be added to the container at creation time. If
  438. // collisions with system labels occur, these labels will be overridden.
  439. //
  440. // This field *must* remain compatible with the Labels field of
  441. // Annotations.
  442. Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  443. // Command to run the the container. The first element is a path to the
  444. // executable and the following elements are treated as arguments.
  445. //
  446. // If command is empty, execution will fall back to the image's entrypoint.
  447. //
  448. // Command should only be used when overriding entrypoint.
  449. Command []string `protobuf:"bytes,3,rep,name=command" json:"command,omitempty"`
  450. // Args specifies arguments provided to the image's entrypoint.
  451. //
  452. // If Command and Args are provided, Args will be appended to Command.
  453. Args []string `protobuf:"bytes,4,rep,name=args" json:"args,omitempty"`
  454. // Hostname specifies the hostname that will be set on containers created by docker swarm.
  455. // All containers for a given service will have the same hostname
  456. Hostname string `protobuf:"bytes,14,opt,name=hostname,proto3" json:"hostname,omitempty"`
  457. // Env specifies the environment variables for the container in NAME=VALUE
  458. // format. These must be compliant with [IEEE Std
  459. // 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).
  460. Env []string `protobuf:"bytes,5,rep,name=env" json:"env,omitempty"`
  461. // Dir defines the working directory to set for the container process.
  462. Dir string `protobuf:"bytes,6,opt,name=dir,proto3" json:"dir,omitempty"`
  463. // User specifies the user that should be employed to run the container.
  464. //
  465. // Note that the primary group may be specified by appending the group name
  466. // or id to the user name, separated by a `:`. This syntax is
  467. // `<user>:<group>`.
  468. User string `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`
  469. // Groups specifies supplementary groups available to the user.
  470. Groups []string `protobuf:"bytes,11,rep,name=groups" json:"groups,omitempty"`
  471. // TTY declares that a TTY should be attached to the standard streams,
  472. // including stdin if it is still open.
  473. TTY bool `protobuf:"varint,13,opt,name=tty,proto3" json:"tty,omitempty"`
  474. // OpenStdin declares that the standard input (stdin) should be open.
  475. OpenStdin bool `protobuf:"varint,18,opt,name=open_stdin,json=openStdin,proto3" json:"open_stdin,omitempty"`
  476. // ReadOnly declares that the container root filesystem is read-only.
  477. // This only impacts the root filesystem, not additional mounts (including
  478. // tmpfs). For additional mounts that are not part of the initial rootfs,
  479. // they will be decided by the modes passed in the mount definition.
  480. ReadOnly bool `protobuf:"varint,19,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
  481. // StopSignal defines the signal to stop the container.
  482. StopSignal string `protobuf:"bytes,20,opt,name=stop_signal,json=stopSignal,proto3" json:"stop_signal,omitempty"`
  483. Mounts []Mount `protobuf:"bytes,8,rep,name=mounts" json:"mounts"`
  484. // StopGracePeriod the grace period for stopping the container before
  485. // forcefully killing the container.
  486. // Note: Can't use stdduration here because this needs to be nullable.
  487. StopGracePeriod *google_protobuf1.Duration `protobuf:"bytes,9,opt,name=stop_grace_period,json=stopGracePeriod" json:"stop_grace_period,omitempty"`
  488. // PullOptions parameterize the behavior of image pulls.
  489. PullOptions *ContainerSpec_PullOptions `protobuf:"bytes,10,opt,name=pull_options,json=pullOptions" json:"pull_options,omitempty"`
  490. // SecretReference contains references to zero or more secrets that
  491. // will be exposed to the container.
  492. Secrets []*SecretReference `protobuf:"bytes,12,rep,name=secrets" json:"secrets,omitempty"`
  493. // Hosts allow additional entries to be specified in /etc/hosts
  494. // that associates IP addresses with hostnames.
  495. // Detailed documentation is available in:
  496. // http://man7.org/linux/man-pages/man5/hosts.5.html
  497. // IP_address canonical_hostname [aliases...]
  498. //
  499. // The format of the Hosts in swarmkit follows the same as
  500. // above.
  501. // This is different from `docker run --add-host <hostname>:<ip>`
  502. // where format is `<hostname>:<ip>`
  503. Hosts []string `protobuf:"bytes,17,rep,name=hosts" json:"hosts,omitempty"`
  504. // DNSConfig allows one to specify DNS related configuration in resolv.conf
  505. DNSConfig *ContainerSpec_DNSConfig `protobuf:"bytes,15,opt,name=dns_config,json=dnsConfig" json:"dns_config,omitempty"`
  506. // Healthcheck describes how to check the container is healthy. If the
  507. // container is considered unhealthy, it will be destroyed, its creating
  508. // task will exit and a new task will be rescheduled elsewhere. A container
  509. // is considered unhealthy after `Retries` number of consecutive failures.
  510. Healthcheck *HealthConfig `protobuf:"bytes,16,opt,name=healthcheck" json:"healthcheck,omitempty"`
  511. }
  512. func (m *ContainerSpec) Reset() { *m = ContainerSpec{} }
  513. func (*ContainerSpec) ProtoMessage() {}
  514. func (*ContainerSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{7} }
  515. // PullOptions allows one to parameterize an image pull.
  516. type ContainerSpec_PullOptions struct {
  517. // RegistryAuth is the registry auth token obtained from the client, required
  518. // to pull private images. This is the unmodified JSON used as part of
  519. // the `X-Registry-Auth` header.
  520. // TODO(nishanttotla): This field will later be deprecated
  521. RegistryAuth string `protobuf:"bytes,64,opt,name=registry_auth,json=registryAuth,proto3" json:"registry_auth,omitempty"`
  522. }
  523. func (m *ContainerSpec_PullOptions) Reset() { *m = ContainerSpec_PullOptions{} }
  524. func (*ContainerSpec_PullOptions) ProtoMessage() {}
  525. func (*ContainerSpec_PullOptions) Descriptor() ([]byte, []int) {
  526. return fileDescriptorSpecs, []int{7, 1}
  527. }
  528. // DNSConfig specifies DNS related configurations in resolver configuration file (resolv.conf)
  529. // Detailed documentation is available in:
  530. // http://man7.org/linux/man-pages/man5/resolv.conf.5.html
  531. // TODO: domain is not supported yet
  532. type ContainerSpec_DNSConfig struct {
  533. // Nameservers specifies the IP addresses of the name servers
  534. Nameservers []string `protobuf:"bytes,1,rep,name=nameservers" json:"nameservers,omitempty"`
  535. // Search specifies the search list for host-name lookup
  536. Search []string `protobuf:"bytes,2,rep,name=search" json:"search,omitempty"`
  537. // Options allows certain internal resolver variables to be modified
  538. Options []string `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"`
  539. }
  540. func (m *ContainerSpec_DNSConfig) Reset() { *m = ContainerSpec_DNSConfig{} }
  541. func (*ContainerSpec_DNSConfig) ProtoMessage() {}
  542. func (*ContainerSpec_DNSConfig) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{7, 2} }
  543. // EndpointSpec defines the properties that can be configured to
  544. // access and loadbalance the service.
  545. type EndpointSpec struct {
  546. Mode EndpointSpec_ResolutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=docker.swarmkit.v1.EndpointSpec_ResolutionMode" json:"mode,omitempty"`
  547. // List of exposed ports that this service is accessible from
  548. // external to the cluster.
  549. Ports []*PortConfig `protobuf:"bytes,2,rep,name=ports" json:"ports,omitempty"`
  550. }
  551. func (m *EndpointSpec) Reset() { *m = EndpointSpec{} }
  552. func (*EndpointSpec) ProtoMessage() {}
  553. func (*EndpointSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{8} }
  554. // NetworkSpec specifies user defined network parameters.
  555. type NetworkSpec struct {
  556. Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
  557. // DriverConfig specific configuration consumed by the network driver.
  558. DriverConfig *Driver `protobuf:"bytes,2,opt,name=driver_config,json=driverConfig" json:"driver_config,omitempty"`
  559. // IPv6Enabled enables support for IPv6 on the network.
  560. Ipv6Enabled bool `protobuf:"varint,3,opt,name=ipv6_enabled,json=ipv6Enabled,proto3" json:"ipv6_enabled,omitempty"`
  561. // internal restricts external access to the network. This may be
  562. // accomplished by disabling the default gateway or through other means.
  563. Internal bool `protobuf:"varint,4,opt,name=internal,proto3" json:"internal,omitempty"`
  564. IPAM *IPAMOptions `protobuf:"bytes,5,opt,name=ipam" json:"ipam,omitempty"`
  565. // Attachable allows external(to swarm) entities to manually
  566. // attach to this network. With this flag enabled, external
  567. // entities such as containers running in an worker node in
  568. // the cluster can manually attach to this network and access
  569. // the services attached to this network. If this flag is not
  570. // enabled(default case) no manual attachment to this network
  571. // can happen.
  572. Attachable bool `protobuf:"varint,6,opt,name=attachable,proto3" json:"attachable,omitempty"`
  573. // Ingress indicates this network will provide the routing-mesh.
  574. // In older versions, the network providing the routing mesh was
  575. // swarm internally created only and it was identified by the name
  576. // "ingress" and the label "com.docker.swarm.internal": "true".
  577. Ingress bool `protobuf:"varint,7,opt,name=ingress,proto3" json:"ingress,omitempty"`
  578. }
  579. func (m *NetworkSpec) Reset() { *m = NetworkSpec{} }
  580. func (*NetworkSpec) ProtoMessage() {}
  581. func (*NetworkSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{9} }
  582. // ClusterSpec specifies global cluster settings.
  583. type ClusterSpec struct {
  584. Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
  585. // DEPRECATED: AcceptancePolicy defines the certificate issuance policy.
  586. // Acceptance policy is no longer customizable, and secrets have been
  587. // replaced with join tokens.
  588. AcceptancePolicy AcceptancePolicy `protobuf:"bytes,2,opt,name=acceptance_policy,json=acceptancePolicy" json:"acceptance_policy"`
  589. // Orchestration defines cluster-level orchestration settings.
  590. Orchestration OrchestrationConfig `protobuf:"bytes,3,opt,name=orchestration" json:"orchestration"`
  591. // Raft defines the cluster's raft settings.
  592. Raft RaftConfig `protobuf:"bytes,4,opt,name=raft" json:"raft"`
  593. // Dispatcher defines cluster-level dispatcher settings.
  594. Dispatcher DispatcherConfig `protobuf:"bytes,5,opt,name=dispatcher" json:"dispatcher"`
  595. // CAConfig defines cluster-level certificate authority settings.
  596. CAConfig CAConfig `protobuf:"bytes,6,opt,name=ca_config,json=caConfig" json:"ca_config"`
  597. // TaskDefaults specifies the default values to use for task creation.
  598. TaskDefaults TaskDefaults `protobuf:"bytes,7,opt,name=task_defaults,json=taskDefaults" json:"task_defaults"`
  599. // EncryptionConfig defines the cluster's encryption settings.
  600. EncryptionConfig EncryptionConfig `protobuf:"bytes,8,opt,name=encryption_config,json=encryptionConfig" json:"encryption_config"`
  601. }
  602. func (m *ClusterSpec) Reset() { *m = ClusterSpec{} }
  603. func (*ClusterSpec) ProtoMessage() {}
  604. func (*ClusterSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{10} }
  605. // SecretSpec specifies a user-provided secret.
  606. type SecretSpec struct {
  607. Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
  608. // Data is the secret payload - the maximum size is 500KB (that is, 500*1024 bytes)
  609. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  610. }
  611. func (m *SecretSpec) Reset() { *m = SecretSpec{} }
  612. func (*SecretSpec) ProtoMessage() {}
  613. func (*SecretSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{11} }
  614. func init() {
  615. proto.RegisterType((*NodeSpec)(nil), "docker.swarmkit.v1.NodeSpec")
  616. proto.RegisterType((*ServiceSpec)(nil), "docker.swarmkit.v1.ServiceSpec")
  617. proto.RegisterType((*ReplicatedService)(nil), "docker.swarmkit.v1.ReplicatedService")
  618. proto.RegisterType((*GlobalService)(nil), "docker.swarmkit.v1.GlobalService")
  619. proto.RegisterType((*TaskSpec)(nil), "docker.swarmkit.v1.TaskSpec")
  620. proto.RegisterType((*GenericRuntimeSpec)(nil), "docker.swarmkit.v1.GenericRuntimeSpec")
  621. proto.RegisterType((*NetworkAttachmentSpec)(nil), "docker.swarmkit.v1.NetworkAttachmentSpec")
  622. proto.RegisterType((*ContainerSpec)(nil), "docker.swarmkit.v1.ContainerSpec")
  623. proto.RegisterType((*ContainerSpec_PullOptions)(nil), "docker.swarmkit.v1.ContainerSpec.PullOptions")
  624. proto.RegisterType((*ContainerSpec_DNSConfig)(nil), "docker.swarmkit.v1.ContainerSpec.DNSConfig")
  625. proto.RegisterType((*EndpointSpec)(nil), "docker.swarmkit.v1.EndpointSpec")
  626. proto.RegisterType((*NetworkSpec)(nil), "docker.swarmkit.v1.NetworkSpec")
  627. proto.RegisterType((*ClusterSpec)(nil), "docker.swarmkit.v1.ClusterSpec")
  628. proto.RegisterType((*SecretSpec)(nil), "docker.swarmkit.v1.SecretSpec")
  629. proto.RegisterEnum("docker.swarmkit.v1.NodeSpec_Membership", NodeSpec_Membership_name, NodeSpec_Membership_value)
  630. proto.RegisterEnum("docker.swarmkit.v1.NodeSpec_Availability", NodeSpec_Availability_name, NodeSpec_Availability_value)
  631. proto.RegisterEnum("docker.swarmkit.v1.EndpointSpec_ResolutionMode", EndpointSpec_ResolutionMode_name, EndpointSpec_ResolutionMode_value)
  632. }
  633. func (m *NodeSpec) Copy() *NodeSpec {
  634. if m == nil {
  635. return nil
  636. }
  637. o := &NodeSpec{}
  638. o.CopyFrom(m)
  639. return o
  640. }
  641. func (m *NodeSpec) CopyFrom(src interface{}) {
  642. o := src.(*NodeSpec)
  643. *m = *o
  644. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
  645. }
  646. func (m *ServiceSpec) Copy() *ServiceSpec {
  647. if m == nil {
  648. return nil
  649. }
  650. o := &ServiceSpec{}
  651. o.CopyFrom(m)
  652. return o
  653. }
  654. func (m *ServiceSpec) CopyFrom(src interface{}) {
  655. o := src.(*ServiceSpec)
  656. *m = *o
  657. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
  658. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Task, &o.Task)
  659. if o.Update != nil {
  660. m.Update = &UpdateConfig{}
  661. github_com_docker_swarmkit_api_deepcopy.Copy(m.Update, o.Update)
  662. }
  663. if o.Rollback != nil {
  664. m.Rollback = &UpdateConfig{}
  665. github_com_docker_swarmkit_api_deepcopy.Copy(m.Rollback, o.Rollback)
  666. }
  667. if o.Networks != nil {
  668. m.Networks = make([]*NetworkAttachmentConfig, len(o.Networks))
  669. for i := range m.Networks {
  670. m.Networks[i] = &NetworkAttachmentConfig{}
  671. github_com_docker_swarmkit_api_deepcopy.Copy(m.Networks[i], o.Networks[i])
  672. }
  673. }
  674. if o.Endpoint != nil {
  675. m.Endpoint = &EndpointSpec{}
  676. github_com_docker_swarmkit_api_deepcopy.Copy(m.Endpoint, o.Endpoint)
  677. }
  678. if o.Mode != nil {
  679. switch o.Mode.(type) {
  680. case *ServiceSpec_Replicated:
  681. v := ServiceSpec_Replicated{
  682. Replicated: &ReplicatedService{},
  683. }
  684. github_com_docker_swarmkit_api_deepcopy.Copy(v.Replicated, o.GetReplicated())
  685. m.Mode = &v
  686. case *ServiceSpec_Global:
  687. v := ServiceSpec_Global{
  688. Global: &GlobalService{},
  689. }
  690. github_com_docker_swarmkit_api_deepcopy.Copy(v.Global, o.GetGlobal())
  691. m.Mode = &v
  692. }
  693. }
  694. }
  695. func (m *ReplicatedService) Copy() *ReplicatedService {
  696. if m == nil {
  697. return nil
  698. }
  699. o := &ReplicatedService{}
  700. o.CopyFrom(m)
  701. return o
  702. }
  703. func (m *ReplicatedService) CopyFrom(src interface{}) {
  704. o := src.(*ReplicatedService)
  705. *m = *o
  706. }
  707. func (m *GlobalService) Copy() *GlobalService {
  708. if m == nil {
  709. return nil
  710. }
  711. o := &GlobalService{}
  712. o.CopyFrom(m)
  713. return o
  714. }
  715. func (m *GlobalService) CopyFrom(src interface{}) {}
  716. func (m *TaskSpec) Copy() *TaskSpec {
  717. if m == nil {
  718. return nil
  719. }
  720. o := &TaskSpec{}
  721. o.CopyFrom(m)
  722. return o
  723. }
  724. func (m *TaskSpec) CopyFrom(src interface{}) {
  725. o := src.(*TaskSpec)
  726. *m = *o
  727. if o.Resources != nil {
  728. m.Resources = &ResourceRequirements{}
  729. github_com_docker_swarmkit_api_deepcopy.Copy(m.Resources, o.Resources)
  730. }
  731. if o.Restart != nil {
  732. m.Restart = &RestartPolicy{}
  733. github_com_docker_swarmkit_api_deepcopy.Copy(m.Restart, o.Restart)
  734. }
  735. if o.Placement != nil {
  736. m.Placement = &Placement{}
  737. github_com_docker_swarmkit_api_deepcopy.Copy(m.Placement, o.Placement)
  738. }
  739. if o.LogDriver != nil {
  740. m.LogDriver = &Driver{}
  741. github_com_docker_swarmkit_api_deepcopy.Copy(m.LogDriver, o.LogDriver)
  742. }
  743. if o.Networks != nil {
  744. m.Networks = make([]*NetworkAttachmentConfig, len(o.Networks))
  745. for i := range m.Networks {
  746. m.Networks[i] = &NetworkAttachmentConfig{}
  747. github_com_docker_swarmkit_api_deepcopy.Copy(m.Networks[i], o.Networks[i])
  748. }
  749. }
  750. if o.Runtime != nil {
  751. switch o.Runtime.(type) {
  752. case *TaskSpec_Attachment:
  753. v := TaskSpec_Attachment{
  754. Attachment: &NetworkAttachmentSpec{},
  755. }
  756. github_com_docker_swarmkit_api_deepcopy.Copy(v.Attachment, o.GetAttachment())
  757. m.Runtime = &v
  758. case *TaskSpec_Container:
  759. v := TaskSpec_Container{
  760. Container: &ContainerSpec{},
  761. }
  762. github_com_docker_swarmkit_api_deepcopy.Copy(v.Container, o.GetContainer())
  763. m.Runtime = &v
  764. case *TaskSpec_Generic:
  765. v := TaskSpec_Generic{
  766. Generic: &GenericRuntimeSpec{},
  767. }
  768. github_com_docker_swarmkit_api_deepcopy.Copy(v.Generic, o.GetGeneric())
  769. m.Runtime = &v
  770. }
  771. }
  772. }
  773. func (m *GenericRuntimeSpec) Copy() *GenericRuntimeSpec {
  774. if m == nil {
  775. return nil
  776. }
  777. o := &GenericRuntimeSpec{}
  778. o.CopyFrom(m)
  779. return o
  780. }
  781. func (m *GenericRuntimeSpec) CopyFrom(src interface{}) {
  782. o := src.(*GenericRuntimeSpec)
  783. *m = *o
  784. if o.Payload != nil {
  785. m.Payload = &google_protobuf3.Any{}
  786. github_com_docker_swarmkit_api_deepcopy.Copy(m.Payload, o.Payload)
  787. }
  788. }
  789. func (m *NetworkAttachmentSpec) Copy() *NetworkAttachmentSpec {
  790. if m == nil {
  791. return nil
  792. }
  793. o := &NetworkAttachmentSpec{}
  794. o.CopyFrom(m)
  795. return o
  796. }
  797. func (m *NetworkAttachmentSpec) CopyFrom(src interface{}) {
  798. o := src.(*NetworkAttachmentSpec)
  799. *m = *o
  800. }
  801. func (m *ContainerSpec) Copy() *ContainerSpec {
  802. if m == nil {
  803. return nil
  804. }
  805. o := &ContainerSpec{}
  806. o.CopyFrom(m)
  807. return o
  808. }
  809. func (m *ContainerSpec) CopyFrom(src interface{}) {
  810. o := src.(*ContainerSpec)
  811. *m = *o
  812. if o.Labels != nil {
  813. m.Labels = make(map[string]string, len(o.Labels))
  814. for k, v := range o.Labels {
  815. m.Labels[k] = v
  816. }
  817. }
  818. if o.Command != nil {
  819. m.Command = make([]string, len(o.Command))
  820. copy(m.Command, o.Command)
  821. }
  822. if o.Args != nil {
  823. m.Args = make([]string, len(o.Args))
  824. copy(m.Args, o.Args)
  825. }
  826. if o.Env != nil {
  827. m.Env = make([]string, len(o.Env))
  828. copy(m.Env, o.Env)
  829. }
  830. if o.Groups != nil {
  831. m.Groups = make([]string, len(o.Groups))
  832. copy(m.Groups, o.Groups)
  833. }
  834. if o.Mounts != nil {
  835. m.Mounts = make([]Mount, len(o.Mounts))
  836. for i := range m.Mounts {
  837. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Mounts[i], &o.Mounts[i])
  838. }
  839. }
  840. if o.StopGracePeriod != nil {
  841. m.StopGracePeriod = &google_protobuf1.Duration{}
  842. github_com_docker_swarmkit_api_deepcopy.Copy(m.StopGracePeriod, o.StopGracePeriod)
  843. }
  844. if o.PullOptions != nil {
  845. m.PullOptions = &ContainerSpec_PullOptions{}
  846. github_com_docker_swarmkit_api_deepcopy.Copy(m.PullOptions, o.PullOptions)
  847. }
  848. if o.Secrets != nil {
  849. m.Secrets = make([]*SecretReference, len(o.Secrets))
  850. for i := range m.Secrets {
  851. m.Secrets[i] = &SecretReference{}
  852. github_com_docker_swarmkit_api_deepcopy.Copy(m.Secrets[i], o.Secrets[i])
  853. }
  854. }
  855. if o.Hosts != nil {
  856. m.Hosts = make([]string, len(o.Hosts))
  857. copy(m.Hosts, o.Hosts)
  858. }
  859. if o.DNSConfig != nil {
  860. m.DNSConfig = &ContainerSpec_DNSConfig{}
  861. github_com_docker_swarmkit_api_deepcopy.Copy(m.DNSConfig, o.DNSConfig)
  862. }
  863. if o.Healthcheck != nil {
  864. m.Healthcheck = &HealthConfig{}
  865. github_com_docker_swarmkit_api_deepcopy.Copy(m.Healthcheck, o.Healthcheck)
  866. }
  867. }
  868. func (m *ContainerSpec_PullOptions) Copy() *ContainerSpec_PullOptions {
  869. if m == nil {
  870. return nil
  871. }
  872. o := &ContainerSpec_PullOptions{}
  873. o.CopyFrom(m)
  874. return o
  875. }
  876. func (m *ContainerSpec_PullOptions) CopyFrom(src interface{}) {
  877. o := src.(*ContainerSpec_PullOptions)
  878. *m = *o
  879. }
  880. func (m *ContainerSpec_DNSConfig) Copy() *ContainerSpec_DNSConfig {
  881. if m == nil {
  882. return nil
  883. }
  884. o := &ContainerSpec_DNSConfig{}
  885. o.CopyFrom(m)
  886. return o
  887. }
  888. func (m *ContainerSpec_DNSConfig) CopyFrom(src interface{}) {
  889. o := src.(*ContainerSpec_DNSConfig)
  890. *m = *o
  891. if o.Nameservers != nil {
  892. m.Nameservers = make([]string, len(o.Nameservers))
  893. copy(m.Nameservers, o.Nameservers)
  894. }
  895. if o.Search != nil {
  896. m.Search = make([]string, len(o.Search))
  897. copy(m.Search, o.Search)
  898. }
  899. if o.Options != nil {
  900. m.Options = make([]string, len(o.Options))
  901. copy(m.Options, o.Options)
  902. }
  903. }
  904. func (m *EndpointSpec) Copy() *EndpointSpec {
  905. if m == nil {
  906. return nil
  907. }
  908. o := &EndpointSpec{}
  909. o.CopyFrom(m)
  910. return o
  911. }
  912. func (m *EndpointSpec) CopyFrom(src interface{}) {
  913. o := src.(*EndpointSpec)
  914. *m = *o
  915. if o.Ports != nil {
  916. m.Ports = make([]*PortConfig, len(o.Ports))
  917. for i := range m.Ports {
  918. m.Ports[i] = &PortConfig{}
  919. github_com_docker_swarmkit_api_deepcopy.Copy(m.Ports[i], o.Ports[i])
  920. }
  921. }
  922. }
  923. func (m *NetworkSpec) Copy() *NetworkSpec {
  924. if m == nil {
  925. return nil
  926. }
  927. o := &NetworkSpec{}
  928. o.CopyFrom(m)
  929. return o
  930. }
  931. func (m *NetworkSpec) CopyFrom(src interface{}) {
  932. o := src.(*NetworkSpec)
  933. *m = *o
  934. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
  935. if o.DriverConfig != nil {
  936. m.DriverConfig = &Driver{}
  937. github_com_docker_swarmkit_api_deepcopy.Copy(m.DriverConfig, o.DriverConfig)
  938. }
  939. if o.IPAM != nil {
  940. m.IPAM = &IPAMOptions{}
  941. github_com_docker_swarmkit_api_deepcopy.Copy(m.IPAM, o.IPAM)
  942. }
  943. }
  944. func (m *ClusterSpec) Copy() *ClusterSpec {
  945. if m == nil {
  946. return nil
  947. }
  948. o := &ClusterSpec{}
  949. o.CopyFrom(m)
  950. return o
  951. }
  952. func (m *ClusterSpec) CopyFrom(src interface{}) {
  953. o := src.(*ClusterSpec)
  954. *m = *o
  955. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
  956. github_com_docker_swarmkit_api_deepcopy.Copy(&m.AcceptancePolicy, &o.AcceptancePolicy)
  957. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Orchestration, &o.Orchestration)
  958. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Raft, &o.Raft)
  959. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Dispatcher, &o.Dispatcher)
  960. github_com_docker_swarmkit_api_deepcopy.Copy(&m.CAConfig, &o.CAConfig)
  961. github_com_docker_swarmkit_api_deepcopy.Copy(&m.TaskDefaults, &o.TaskDefaults)
  962. github_com_docker_swarmkit_api_deepcopy.Copy(&m.EncryptionConfig, &o.EncryptionConfig)
  963. }
  964. func (m *SecretSpec) Copy() *SecretSpec {
  965. if m == nil {
  966. return nil
  967. }
  968. o := &SecretSpec{}
  969. o.CopyFrom(m)
  970. return o
  971. }
  972. func (m *SecretSpec) CopyFrom(src interface{}) {
  973. o := src.(*SecretSpec)
  974. *m = *o
  975. github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
  976. }
  977. func (m *NodeSpec) Marshal() (dAtA []byte, err error) {
  978. size := m.Size()
  979. dAtA = make([]byte, size)
  980. n, err := m.MarshalTo(dAtA)
  981. if err != nil {
  982. return nil, err
  983. }
  984. return dAtA[:n], nil
  985. }
  986. func (m *NodeSpec) MarshalTo(dAtA []byte) (int, error) {
  987. var i int
  988. _ = i
  989. var l int
  990. _ = l
  991. dAtA[i] = 0xa
  992. i++
  993. i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
  994. n1, err := m.Annotations.MarshalTo(dAtA[i:])
  995. if err != nil {
  996. return 0, err
  997. }
  998. i += n1
  999. if m.DesiredRole != 0 {
  1000. dAtA[i] = 0x10
  1001. i++
  1002. i = encodeVarintSpecs(dAtA, i, uint64(m.DesiredRole))
  1003. }
  1004. if m.Membership != 0 {
  1005. dAtA[i] = 0x18
  1006. i++
  1007. i = encodeVarintSpecs(dAtA, i, uint64(m.Membership))
  1008. }
  1009. if m.Availability != 0 {
  1010. dAtA[i] = 0x20
  1011. i++
  1012. i = encodeVarintSpecs(dAtA, i, uint64(m.Availability))
  1013. }
  1014. return i, nil
  1015. }
  1016. func (m *ServiceSpec) Marshal() (dAtA []byte, err error) {
  1017. size := m.Size()
  1018. dAtA = make([]byte, size)
  1019. n, err := m.MarshalTo(dAtA)
  1020. if err != nil {
  1021. return nil, err
  1022. }
  1023. return dAtA[:n], nil
  1024. }
  1025. func (m *ServiceSpec) MarshalTo(dAtA []byte) (int, error) {
  1026. var i int
  1027. _ = i
  1028. var l int
  1029. _ = l
  1030. dAtA[i] = 0xa
  1031. i++
  1032. i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
  1033. n2, err := m.Annotations.MarshalTo(dAtA[i:])
  1034. if err != nil {
  1035. return 0, err
  1036. }
  1037. i += n2
  1038. dAtA[i] = 0x12
  1039. i++
  1040. i = encodeVarintSpecs(dAtA, i, uint64(m.Task.Size()))
  1041. n3, err := m.Task.MarshalTo(dAtA[i:])
  1042. if err != nil {
  1043. return 0, err
  1044. }
  1045. i += n3
  1046. if m.Mode != nil {
  1047. nn4, err := m.Mode.MarshalTo(dAtA[i:])
  1048. if err != nil {
  1049. return 0, err
  1050. }
  1051. i += nn4
  1052. }
  1053. if m.Update != nil {
  1054. dAtA[i] = 0x32
  1055. i++
  1056. i = encodeVarintSpecs(dAtA, i, uint64(m.Update.Size()))
  1057. n5, err := m.Update.MarshalTo(dAtA[i:])
  1058. if err != nil {
  1059. return 0, err
  1060. }
  1061. i += n5
  1062. }
  1063. if len(m.Networks) > 0 {
  1064. for _, msg := range m.Networks {
  1065. dAtA[i] = 0x3a
  1066. i++
  1067. i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
  1068. n, err := msg.MarshalTo(dAtA[i:])
  1069. if err != nil {
  1070. return 0, err
  1071. }
  1072. i += n
  1073. }
  1074. }
  1075. if m.Endpoint != nil {
  1076. dAtA[i] = 0x42
  1077. i++
  1078. i = encodeVarintSpecs(dAtA, i, uint64(m.Endpoint.Size()))
  1079. n6, err := m.Endpoint.MarshalTo(dAtA[i:])
  1080. if err != nil {
  1081. return 0, err
  1082. }
  1083. i += n6
  1084. }
  1085. if m.Rollback != nil {
  1086. dAtA[i] = 0x4a
  1087. i++
  1088. i = encodeVarintSpecs(dAtA, i, uint64(m.Rollback.Size()))
  1089. n7, err := m.Rollback.MarshalTo(dAtA[i:])
  1090. if err != nil {
  1091. return 0, err
  1092. }
  1093. i += n7
  1094. }
  1095. return i, nil
  1096. }
  1097. func (m *ServiceSpec_Replicated) MarshalTo(dAtA []byte) (int, error) {
  1098. i := 0
  1099. if m.Replicated != nil {
  1100. dAtA[i] = 0x1a
  1101. i++
  1102. i = encodeVarintSpecs(dAtA, i, uint64(m.Replicated.Size()))
  1103. n8, err := m.Replicated.MarshalTo(dAtA[i:])
  1104. if err != nil {
  1105. return 0, err
  1106. }
  1107. i += n8
  1108. }
  1109. return i, nil
  1110. }
  1111. func (m *ServiceSpec_Global) MarshalTo(dAtA []byte) (int, error) {
  1112. i := 0
  1113. if m.Global != nil {
  1114. dAtA[i] = 0x22
  1115. i++
  1116. i = encodeVarintSpecs(dAtA, i, uint64(m.Global.Size()))
  1117. n9, err := m.Global.MarshalTo(dAtA[i:])
  1118. if err != nil {
  1119. return 0, err
  1120. }
  1121. i += n9
  1122. }
  1123. return i, nil
  1124. }
  1125. func (m *ReplicatedService) Marshal() (dAtA []byte, err error) {
  1126. size := m.Size()
  1127. dAtA = make([]byte, size)
  1128. n, err := m.MarshalTo(dAtA)
  1129. if err != nil {
  1130. return nil, err
  1131. }
  1132. return dAtA[:n], nil
  1133. }
  1134. func (m *ReplicatedService) MarshalTo(dAtA []byte) (int, error) {
  1135. var i int
  1136. _ = i
  1137. var l int
  1138. _ = l
  1139. if m.Replicas != 0 {
  1140. dAtA[i] = 0x8
  1141. i++
  1142. i = encodeVarintSpecs(dAtA, i, uint64(m.Replicas))
  1143. }
  1144. return i, nil
  1145. }
  1146. func (m *GlobalService) Marshal() (dAtA []byte, err error) {
  1147. size := m.Size()
  1148. dAtA = make([]byte, size)
  1149. n, err := m.MarshalTo(dAtA)
  1150. if err != nil {
  1151. return nil, err
  1152. }
  1153. return dAtA[:n], nil
  1154. }
  1155. func (m *GlobalService) MarshalTo(dAtA []byte) (int, error) {
  1156. var i int
  1157. _ = i
  1158. var l int
  1159. _ = l
  1160. return i, nil
  1161. }
  1162. func (m *TaskSpec) Marshal() (dAtA []byte, err error) {
  1163. size := m.Size()
  1164. dAtA = make([]byte, size)
  1165. n, err := m.MarshalTo(dAtA)
  1166. if err != nil {
  1167. return nil, err
  1168. }
  1169. return dAtA[:n], nil
  1170. }
  1171. func (m *TaskSpec) MarshalTo(dAtA []byte) (int, error) {
  1172. var i int
  1173. _ = i
  1174. var l int
  1175. _ = l
  1176. if m.Runtime != nil {
  1177. nn10, err := m.Runtime.MarshalTo(dAtA[i:])
  1178. if err != nil {
  1179. return 0, err
  1180. }
  1181. i += nn10
  1182. }
  1183. if m.Resources != nil {
  1184. dAtA[i] = 0x12
  1185. i++
  1186. i = encodeVarintSpecs(dAtA, i, uint64(m.Resources.Size()))
  1187. n11, err := m.Resources.MarshalTo(dAtA[i:])
  1188. if err != nil {
  1189. return 0, err
  1190. }
  1191. i += n11
  1192. }
  1193. if m.Restart != nil {
  1194. dAtA[i] = 0x22
  1195. i++
  1196. i = encodeVarintSpecs(dAtA, i, uint64(m.Restart.Size()))
  1197. n12, err := m.Restart.MarshalTo(dAtA[i:])
  1198. if err != nil {
  1199. return 0, err
  1200. }
  1201. i += n12
  1202. }
  1203. if m.Placement != nil {
  1204. dAtA[i] = 0x2a
  1205. i++
  1206. i = encodeVarintSpecs(dAtA, i, uint64(m.Placement.Size()))
  1207. n13, err := m.Placement.MarshalTo(dAtA[i:])
  1208. if err != nil {
  1209. return 0, err
  1210. }
  1211. i += n13
  1212. }
  1213. if m.LogDriver != nil {
  1214. dAtA[i] = 0x32
  1215. i++
  1216. i = encodeVarintSpecs(dAtA, i, uint64(m.LogDriver.Size()))
  1217. n14, err := m.LogDriver.MarshalTo(dAtA[i:])
  1218. if err != nil {
  1219. return 0, err
  1220. }
  1221. i += n14
  1222. }
  1223. if len(m.Networks) > 0 {
  1224. for _, msg := range m.Networks {
  1225. dAtA[i] = 0x3a
  1226. i++
  1227. i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
  1228. n, err := msg.MarshalTo(dAtA[i:])
  1229. if err != nil {
  1230. return 0, err
  1231. }
  1232. i += n
  1233. }
  1234. }
  1235. if m.ForceUpdate != 0 {
  1236. dAtA[i] = 0x48
  1237. i++
  1238. i = encodeVarintSpecs(dAtA, i, uint64(m.ForceUpdate))
  1239. }
  1240. return i, nil
  1241. }
  1242. func (m *TaskSpec_Container) MarshalTo(dAtA []byte) (int, error) {
  1243. i := 0
  1244. if m.Container != nil {
  1245. dAtA[i] = 0xa
  1246. i++
  1247. i = encodeVarintSpecs(dAtA, i, uint64(m.Container.Size()))
  1248. n15, err := m.Container.MarshalTo(dAtA[i:])
  1249. if err != nil {
  1250. return 0, err
  1251. }
  1252. i += n15
  1253. }
  1254. return i, nil
  1255. }
  1256. func (m *TaskSpec_Attachment) MarshalTo(dAtA []byte) (int, error) {
  1257. i := 0
  1258. if m.Attachment != nil {
  1259. dAtA[i] = 0x42
  1260. i++
  1261. i = encodeVarintSpecs(dAtA, i, uint64(m.Attachment.Size()))
  1262. n16, err := m.Attachment.MarshalTo(dAtA[i:])
  1263. if err != nil {
  1264. return 0, err
  1265. }
  1266. i += n16
  1267. }
  1268. return i, nil
  1269. }
  1270. func (m *TaskSpec_Generic) MarshalTo(dAtA []byte) (int, error) {
  1271. i := 0
  1272. if m.Generic != nil {
  1273. dAtA[i] = 0x52
  1274. i++
  1275. i = encodeVarintSpecs(dAtA, i, uint64(m.Generic.Size()))
  1276. n17, err := m.Generic.MarshalTo(dAtA[i:])
  1277. if err != nil {
  1278. return 0, err
  1279. }
  1280. i += n17
  1281. }
  1282. return i, nil
  1283. }
  1284. func (m *GenericRuntimeSpec) Marshal() (dAtA []byte, err error) {
  1285. size := m.Size()
  1286. dAtA = make([]byte, size)
  1287. n, err := m.MarshalTo(dAtA)
  1288. if err != nil {
  1289. return nil, err
  1290. }
  1291. return dAtA[:n], nil
  1292. }
  1293. func (m *GenericRuntimeSpec) MarshalTo(dAtA []byte) (int, error) {
  1294. var i int
  1295. _ = i
  1296. var l int
  1297. _ = l
  1298. if len(m.Kind) > 0 {
  1299. dAtA[i] = 0xa
  1300. i++
  1301. i = encodeVarintSpecs(dAtA, i, uint64(len(m.Kind)))
  1302. i += copy(dAtA[i:], m.Kind)
  1303. }
  1304. if m.Payload != nil {
  1305. dAtA[i] = 0x12
  1306. i++
  1307. i = encodeVarintSpecs(dAtA, i, uint64(m.Payload.Size()))
  1308. n18, err := m.Payload.MarshalTo(dAtA[i:])
  1309. if err != nil {
  1310. return 0, err
  1311. }
  1312. i += n18
  1313. }
  1314. return i, nil
  1315. }
  1316. func (m *NetworkAttachmentSpec) Marshal() (dAtA []byte, err error) {
  1317. size := m.Size()
  1318. dAtA = make([]byte, size)
  1319. n, err := m.MarshalTo(dAtA)
  1320. if err != nil {
  1321. return nil, err
  1322. }
  1323. return dAtA[:n], nil
  1324. }
  1325. func (m *NetworkAttachmentSpec) MarshalTo(dAtA []byte) (int, error) {
  1326. var i int
  1327. _ = i
  1328. var l int
  1329. _ = l
  1330. if len(m.ContainerID) > 0 {
  1331. dAtA[i] = 0xa
  1332. i++
  1333. i = encodeVarintSpecs(dAtA, i, uint64(len(m.ContainerID)))
  1334. i += copy(dAtA[i:], m.ContainerID)
  1335. }
  1336. return i, nil
  1337. }
  1338. func (m *ContainerSpec) Marshal() (dAtA []byte, err error) {
  1339. size := m.Size()
  1340. dAtA = make([]byte, size)
  1341. n, err := m.MarshalTo(dAtA)
  1342. if err != nil {
  1343. return nil, err
  1344. }
  1345. return dAtA[:n], nil
  1346. }
  1347. func (m *ContainerSpec) MarshalTo(dAtA []byte) (int, error) {
  1348. var i int
  1349. _ = i
  1350. var l int
  1351. _ = l
  1352. if len(m.Image) > 0 {
  1353. dAtA[i] = 0xa
  1354. i++
  1355. i = encodeVarintSpecs(dAtA, i, uint64(len(m.Image)))
  1356. i += copy(dAtA[i:], m.Image)
  1357. }
  1358. if len(m.Labels) > 0 {
  1359. for k, _ := range m.Labels {
  1360. dAtA[i] = 0x12
  1361. i++
  1362. v := m.Labels[k]
  1363. mapSize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
  1364. i = encodeVarintSpecs(dAtA, i, uint64(mapSize))
  1365. dAtA[i] = 0xa
  1366. i++
  1367. i = encodeVarintSpecs(dAtA, i, uint64(len(k)))
  1368. i += copy(dAtA[i:], k)
  1369. dAtA[i] = 0x12
  1370. i++
  1371. i = encodeVarintSpecs(dAtA, i, uint64(len(v)))
  1372. i += copy(dAtA[i:], v)
  1373. }
  1374. }
  1375. if len(m.Command) > 0 {
  1376. for _, s := range m.Command {
  1377. dAtA[i] = 0x1a
  1378. i++
  1379. l = len(s)
  1380. for l >= 1<<7 {
  1381. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1382. l >>= 7
  1383. i++
  1384. }
  1385. dAtA[i] = uint8(l)
  1386. i++
  1387. i += copy(dAtA[i:], s)
  1388. }
  1389. }
  1390. if len(m.Args) > 0 {
  1391. for _, s := range m.Args {
  1392. dAtA[i] = 0x22
  1393. i++
  1394. l = len(s)
  1395. for l >= 1<<7 {
  1396. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1397. l >>= 7
  1398. i++
  1399. }
  1400. dAtA[i] = uint8(l)
  1401. i++
  1402. i += copy(dAtA[i:], s)
  1403. }
  1404. }
  1405. if len(m.Env) > 0 {
  1406. for _, s := range m.Env {
  1407. dAtA[i] = 0x2a
  1408. i++
  1409. l = len(s)
  1410. for l >= 1<<7 {
  1411. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1412. l >>= 7
  1413. i++
  1414. }
  1415. dAtA[i] = uint8(l)
  1416. i++
  1417. i += copy(dAtA[i:], s)
  1418. }
  1419. }
  1420. if len(m.Dir) > 0 {
  1421. dAtA[i] = 0x32
  1422. i++
  1423. i = encodeVarintSpecs(dAtA, i, uint64(len(m.Dir)))
  1424. i += copy(dAtA[i:], m.Dir)
  1425. }
  1426. if len(m.User) > 0 {
  1427. dAtA[i] = 0x3a
  1428. i++
  1429. i = encodeVarintSpecs(dAtA, i, uint64(len(m.User)))
  1430. i += copy(dAtA[i:], m.User)
  1431. }
  1432. if len(m.Mounts) > 0 {
  1433. for _, msg := range m.Mounts {
  1434. dAtA[i] = 0x42
  1435. i++
  1436. i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
  1437. n, err := msg.MarshalTo(dAtA[i:])
  1438. if err != nil {
  1439. return 0, err
  1440. }
  1441. i += n
  1442. }
  1443. }
  1444. if m.StopGracePeriod != nil {
  1445. dAtA[i] = 0x4a
  1446. i++
  1447. i = encodeVarintSpecs(dAtA, i, uint64(m.StopGracePeriod.Size()))
  1448. n19, err := m.StopGracePeriod.MarshalTo(dAtA[i:])
  1449. if err != nil {
  1450. return 0, err
  1451. }
  1452. i += n19
  1453. }
  1454. if m.PullOptions != nil {
  1455. dAtA[i] = 0x52
  1456. i++
  1457. i = encodeVarintSpecs(dAtA, i, uint64(m.PullOptions.Size()))
  1458. n20, err := m.PullOptions.MarshalTo(dAtA[i:])
  1459. if err != nil {
  1460. return 0, err
  1461. }
  1462. i += n20
  1463. }
  1464. if len(m.Groups) > 0 {
  1465. for _, s := range m.Groups {
  1466. dAtA[i] = 0x5a
  1467. i++
  1468. l = len(s)
  1469. for l >= 1<<7 {
  1470. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1471. l >>= 7
  1472. i++
  1473. }
  1474. dAtA[i] = uint8(l)
  1475. i++
  1476. i += copy(dAtA[i:], s)
  1477. }
  1478. }
  1479. if len(m.Secrets) > 0 {
  1480. for _, msg := range m.Secrets {
  1481. dAtA[i] = 0x62
  1482. i++
  1483. i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
  1484. n, err := msg.MarshalTo(dAtA[i:])
  1485. if err != nil {
  1486. return 0, err
  1487. }
  1488. i += n
  1489. }
  1490. }
  1491. if m.TTY {
  1492. dAtA[i] = 0x68
  1493. i++
  1494. if m.TTY {
  1495. dAtA[i] = 1
  1496. } else {
  1497. dAtA[i] = 0
  1498. }
  1499. i++
  1500. }
  1501. if len(m.Hostname) > 0 {
  1502. dAtA[i] = 0x72
  1503. i++
  1504. i = encodeVarintSpecs(dAtA, i, uint64(len(m.Hostname)))
  1505. i += copy(dAtA[i:], m.Hostname)
  1506. }
  1507. if m.DNSConfig != nil {
  1508. dAtA[i] = 0x7a
  1509. i++
  1510. i = encodeVarintSpecs(dAtA, i, uint64(m.DNSConfig.Size()))
  1511. n21, err := m.DNSConfig.MarshalTo(dAtA[i:])
  1512. if err != nil {
  1513. return 0, err
  1514. }
  1515. i += n21
  1516. }
  1517. if m.Healthcheck != nil {
  1518. dAtA[i] = 0x82
  1519. i++
  1520. dAtA[i] = 0x1
  1521. i++
  1522. i = encodeVarintSpecs(dAtA, i, uint64(m.Healthcheck.Size()))
  1523. n22, err := m.Healthcheck.MarshalTo(dAtA[i:])
  1524. if err != nil {
  1525. return 0, err
  1526. }
  1527. i += n22
  1528. }
  1529. if len(m.Hosts) > 0 {
  1530. for _, s := range m.Hosts {
  1531. dAtA[i] = 0x8a
  1532. i++
  1533. dAtA[i] = 0x1
  1534. i++
  1535. l = len(s)
  1536. for l >= 1<<7 {
  1537. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1538. l >>= 7
  1539. i++
  1540. }
  1541. dAtA[i] = uint8(l)
  1542. i++
  1543. i += copy(dAtA[i:], s)
  1544. }
  1545. }
  1546. if m.OpenStdin {
  1547. dAtA[i] = 0x90
  1548. i++
  1549. dAtA[i] = 0x1
  1550. i++
  1551. if m.OpenStdin {
  1552. dAtA[i] = 1
  1553. } else {
  1554. dAtA[i] = 0
  1555. }
  1556. i++
  1557. }
  1558. if m.ReadOnly {
  1559. dAtA[i] = 0x98
  1560. i++
  1561. dAtA[i] = 0x1
  1562. i++
  1563. if m.ReadOnly {
  1564. dAtA[i] = 1
  1565. } else {
  1566. dAtA[i] = 0
  1567. }
  1568. i++
  1569. }
  1570. if len(m.StopSignal) > 0 {
  1571. dAtA[i] = 0xa2
  1572. i++
  1573. dAtA[i] = 0x1
  1574. i++
  1575. i = encodeVarintSpecs(dAtA, i, uint64(len(m.StopSignal)))
  1576. i += copy(dAtA[i:], m.StopSignal)
  1577. }
  1578. return i, nil
  1579. }
  1580. func (m *ContainerSpec_PullOptions) Marshal() (dAtA []byte, err error) {
  1581. size := m.Size()
  1582. dAtA = make([]byte, size)
  1583. n, err := m.MarshalTo(dAtA)
  1584. if err != nil {
  1585. return nil, err
  1586. }
  1587. return dAtA[:n], nil
  1588. }
  1589. func (m *ContainerSpec_PullOptions) MarshalTo(dAtA []byte) (int, error) {
  1590. var i int
  1591. _ = i
  1592. var l int
  1593. _ = l
  1594. if len(m.RegistryAuth) > 0 {
  1595. dAtA[i] = 0x82
  1596. i++
  1597. dAtA[i] = 0x4
  1598. i++
  1599. i = encodeVarintSpecs(dAtA, i, uint64(len(m.RegistryAuth)))
  1600. i += copy(dAtA[i:], m.RegistryAuth)
  1601. }
  1602. return i, nil
  1603. }
  1604. func (m *ContainerSpec_DNSConfig) Marshal() (dAtA []byte, err error) {
  1605. size := m.Size()
  1606. dAtA = make([]byte, size)
  1607. n, err := m.MarshalTo(dAtA)
  1608. if err != nil {
  1609. return nil, err
  1610. }
  1611. return dAtA[:n], nil
  1612. }
  1613. func (m *ContainerSpec_DNSConfig) MarshalTo(dAtA []byte) (int, error) {
  1614. var i int
  1615. _ = i
  1616. var l int
  1617. _ = l
  1618. if len(m.Nameservers) > 0 {
  1619. for _, s := range m.Nameservers {
  1620. dAtA[i] = 0xa
  1621. i++
  1622. l = len(s)
  1623. for l >= 1<<7 {
  1624. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1625. l >>= 7
  1626. i++
  1627. }
  1628. dAtA[i] = uint8(l)
  1629. i++
  1630. i += copy(dAtA[i:], s)
  1631. }
  1632. }
  1633. if len(m.Search) > 0 {
  1634. for _, s := range m.Search {
  1635. dAtA[i] = 0x12
  1636. i++
  1637. l = len(s)
  1638. for l >= 1<<7 {
  1639. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1640. l >>= 7
  1641. i++
  1642. }
  1643. dAtA[i] = uint8(l)
  1644. i++
  1645. i += copy(dAtA[i:], s)
  1646. }
  1647. }
  1648. if len(m.Options) > 0 {
  1649. for _, s := range m.Options {
  1650. dAtA[i] = 0x1a
  1651. i++
  1652. l = len(s)
  1653. for l >= 1<<7 {
  1654. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1655. l >>= 7
  1656. i++
  1657. }
  1658. dAtA[i] = uint8(l)
  1659. i++
  1660. i += copy(dAtA[i:], s)
  1661. }
  1662. }
  1663. return i, nil
  1664. }
  1665. func (m *EndpointSpec) Marshal() (dAtA []byte, err error) {
  1666. size := m.Size()
  1667. dAtA = make([]byte, size)
  1668. n, err := m.MarshalTo(dAtA)
  1669. if err != nil {
  1670. return nil, err
  1671. }
  1672. return dAtA[:n], nil
  1673. }
  1674. func (m *EndpointSpec) MarshalTo(dAtA []byte) (int, error) {
  1675. var i int
  1676. _ = i
  1677. var l int
  1678. _ = l
  1679. if m.Mode != 0 {
  1680. dAtA[i] = 0x8
  1681. i++
  1682. i = encodeVarintSpecs(dAtA, i, uint64(m.Mode))
  1683. }
  1684. if len(m.Ports) > 0 {
  1685. for _, msg := range m.Ports {
  1686. dAtA[i] = 0x12
  1687. i++
  1688. i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
  1689. n, err := msg.MarshalTo(dAtA[i:])
  1690. if err != nil {
  1691. return 0, err
  1692. }
  1693. i += n
  1694. }
  1695. }
  1696. return i, nil
  1697. }
  1698. func (m *NetworkSpec) Marshal() (dAtA []byte, err error) {
  1699. size := m.Size()
  1700. dAtA = make([]byte, size)
  1701. n, err := m.MarshalTo(dAtA)
  1702. if err != nil {
  1703. return nil, err
  1704. }
  1705. return dAtA[:n], nil
  1706. }
  1707. func (m *NetworkSpec) MarshalTo(dAtA []byte) (int, error) {
  1708. var i int
  1709. _ = i
  1710. var l int
  1711. _ = l
  1712. dAtA[i] = 0xa
  1713. i++
  1714. i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
  1715. n23, err := m.Annotations.MarshalTo(dAtA[i:])
  1716. if err != nil {
  1717. return 0, err
  1718. }
  1719. i += n23
  1720. if m.DriverConfig != nil {
  1721. dAtA[i] = 0x12
  1722. i++
  1723. i = encodeVarintSpecs(dAtA, i, uint64(m.DriverConfig.Size()))
  1724. n24, err := m.DriverConfig.MarshalTo(dAtA[i:])
  1725. if err != nil {
  1726. return 0, err
  1727. }
  1728. i += n24
  1729. }
  1730. if m.Ipv6Enabled {
  1731. dAtA[i] = 0x18
  1732. i++
  1733. if m.Ipv6Enabled {
  1734. dAtA[i] = 1
  1735. } else {
  1736. dAtA[i] = 0
  1737. }
  1738. i++
  1739. }
  1740. if m.Internal {
  1741. dAtA[i] = 0x20
  1742. i++
  1743. if m.Internal {
  1744. dAtA[i] = 1
  1745. } else {
  1746. dAtA[i] = 0
  1747. }
  1748. i++
  1749. }
  1750. if m.IPAM != nil {
  1751. dAtA[i] = 0x2a
  1752. i++
  1753. i = encodeVarintSpecs(dAtA, i, uint64(m.IPAM.Size()))
  1754. n25, err := m.IPAM.MarshalTo(dAtA[i:])
  1755. if err != nil {
  1756. return 0, err
  1757. }
  1758. i += n25
  1759. }
  1760. if m.Attachable {
  1761. dAtA[i] = 0x30
  1762. i++
  1763. if m.Attachable {
  1764. dAtA[i] = 1
  1765. } else {
  1766. dAtA[i] = 0
  1767. }
  1768. i++
  1769. }
  1770. if m.Ingress {
  1771. dAtA[i] = 0x38
  1772. i++
  1773. if m.Ingress {
  1774. dAtA[i] = 1
  1775. } else {
  1776. dAtA[i] = 0
  1777. }
  1778. i++
  1779. }
  1780. return i, nil
  1781. }
  1782. func (m *ClusterSpec) Marshal() (dAtA []byte, err error) {
  1783. size := m.Size()
  1784. dAtA = make([]byte, size)
  1785. n, err := m.MarshalTo(dAtA)
  1786. if err != nil {
  1787. return nil, err
  1788. }
  1789. return dAtA[:n], nil
  1790. }
  1791. func (m *ClusterSpec) MarshalTo(dAtA []byte) (int, error) {
  1792. var i int
  1793. _ = i
  1794. var l int
  1795. _ = l
  1796. dAtA[i] = 0xa
  1797. i++
  1798. i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
  1799. n26, err := m.Annotations.MarshalTo(dAtA[i:])
  1800. if err != nil {
  1801. return 0, err
  1802. }
  1803. i += n26
  1804. dAtA[i] = 0x12
  1805. i++
  1806. i = encodeVarintSpecs(dAtA, i, uint64(m.AcceptancePolicy.Size()))
  1807. n27, err := m.AcceptancePolicy.MarshalTo(dAtA[i:])
  1808. if err != nil {
  1809. return 0, err
  1810. }
  1811. i += n27
  1812. dAtA[i] = 0x1a
  1813. i++
  1814. i = encodeVarintSpecs(dAtA, i, uint64(m.Orchestration.Size()))
  1815. n28, err := m.Orchestration.MarshalTo(dAtA[i:])
  1816. if err != nil {
  1817. return 0, err
  1818. }
  1819. i += n28
  1820. dAtA[i] = 0x22
  1821. i++
  1822. i = encodeVarintSpecs(dAtA, i, uint64(m.Raft.Size()))
  1823. n29, err := m.Raft.MarshalTo(dAtA[i:])
  1824. if err != nil {
  1825. return 0, err
  1826. }
  1827. i += n29
  1828. dAtA[i] = 0x2a
  1829. i++
  1830. i = encodeVarintSpecs(dAtA, i, uint64(m.Dispatcher.Size()))
  1831. n30, err := m.Dispatcher.MarshalTo(dAtA[i:])
  1832. if err != nil {
  1833. return 0, err
  1834. }
  1835. i += n30
  1836. dAtA[i] = 0x32
  1837. i++
  1838. i = encodeVarintSpecs(dAtA, i, uint64(m.CAConfig.Size()))
  1839. n31, err := m.CAConfig.MarshalTo(dAtA[i:])
  1840. if err != nil {
  1841. return 0, err
  1842. }
  1843. i += n31
  1844. dAtA[i] = 0x3a
  1845. i++
  1846. i = encodeVarintSpecs(dAtA, i, uint64(m.TaskDefaults.Size()))
  1847. n32, err := m.TaskDefaults.MarshalTo(dAtA[i:])
  1848. if err != nil {
  1849. return 0, err
  1850. }
  1851. i += n32
  1852. dAtA[i] = 0x42
  1853. i++
  1854. i = encodeVarintSpecs(dAtA, i, uint64(m.EncryptionConfig.Size()))
  1855. n33, err := m.EncryptionConfig.MarshalTo(dAtA[i:])
  1856. if err != nil {
  1857. return 0, err
  1858. }
  1859. i += n33
  1860. return i, nil
  1861. }
  1862. func (m *SecretSpec) Marshal() (dAtA []byte, err error) {
  1863. size := m.Size()
  1864. dAtA = make([]byte, size)
  1865. n, err := m.MarshalTo(dAtA)
  1866. if err != nil {
  1867. return nil, err
  1868. }
  1869. return dAtA[:n], nil
  1870. }
  1871. func (m *SecretSpec) MarshalTo(dAtA []byte) (int, error) {
  1872. var i int
  1873. _ = i
  1874. var l int
  1875. _ = l
  1876. dAtA[i] = 0xa
  1877. i++
  1878. i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
  1879. n34, err := m.Annotations.MarshalTo(dAtA[i:])
  1880. if err != nil {
  1881. return 0, err
  1882. }
  1883. i += n34
  1884. if len(m.Data) > 0 {
  1885. dAtA[i] = 0x12
  1886. i++
  1887. i = encodeVarintSpecs(dAtA, i, uint64(len(m.Data)))
  1888. i += copy(dAtA[i:], m.Data)
  1889. }
  1890. return i, nil
  1891. }
  1892. func encodeFixed64Specs(dAtA []byte, offset int, v uint64) int {
  1893. dAtA[offset] = uint8(v)
  1894. dAtA[offset+1] = uint8(v >> 8)
  1895. dAtA[offset+2] = uint8(v >> 16)
  1896. dAtA[offset+3] = uint8(v >> 24)
  1897. dAtA[offset+4] = uint8(v >> 32)
  1898. dAtA[offset+5] = uint8(v >> 40)
  1899. dAtA[offset+6] = uint8(v >> 48)
  1900. dAtA[offset+7] = uint8(v >> 56)
  1901. return offset + 8
  1902. }
  1903. func encodeFixed32Specs(dAtA []byte, offset int, v uint32) int {
  1904. dAtA[offset] = uint8(v)
  1905. dAtA[offset+1] = uint8(v >> 8)
  1906. dAtA[offset+2] = uint8(v >> 16)
  1907. dAtA[offset+3] = uint8(v >> 24)
  1908. return offset + 4
  1909. }
  1910. func encodeVarintSpecs(dAtA []byte, offset int, v uint64) int {
  1911. for v >= 1<<7 {
  1912. dAtA[offset] = uint8(v&0x7f | 0x80)
  1913. v >>= 7
  1914. offset++
  1915. }
  1916. dAtA[offset] = uint8(v)
  1917. return offset + 1
  1918. }
  1919. func (m *NodeSpec) Size() (n int) {
  1920. var l int
  1921. _ = l
  1922. l = m.Annotations.Size()
  1923. n += 1 + l + sovSpecs(uint64(l))
  1924. if m.DesiredRole != 0 {
  1925. n += 1 + sovSpecs(uint64(m.DesiredRole))
  1926. }
  1927. if m.Membership != 0 {
  1928. n += 1 + sovSpecs(uint64(m.Membership))
  1929. }
  1930. if m.Availability != 0 {
  1931. n += 1 + sovSpecs(uint64(m.Availability))
  1932. }
  1933. return n
  1934. }
  1935. func (m *ServiceSpec) Size() (n int) {
  1936. var l int
  1937. _ = l
  1938. l = m.Annotations.Size()
  1939. n += 1 + l + sovSpecs(uint64(l))
  1940. l = m.Task.Size()
  1941. n += 1 + l + sovSpecs(uint64(l))
  1942. if m.Mode != nil {
  1943. n += m.Mode.Size()
  1944. }
  1945. if m.Update != nil {
  1946. l = m.Update.Size()
  1947. n += 1 + l + sovSpecs(uint64(l))
  1948. }
  1949. if len(m.Networks) > 0 {
  1950. for _, e := range m.Networks {
  1951. l = e.Size()
  1952. n += 1 + l + sovSpecs(uint64(l))
  1953. }
  1954. }
  1955. if m.Endpoint != nil {
  1956. l = m.Endpoint.Size()
  1957. n += 1 + l + sovSpecs(uint64(l))
  1958. }
  1959. if m.Rollback != nil {
  1960. l = m.Rollback.Size()
  1961. n += 1 + l + sovSpecs(uint64(l))
  1962. }
  1963. return n
  1964. }
  1965. func (m *ServiceSpec_Replicated) Size() (n int) {
  1966. var l int
  1967. _ = l
  1968. if m.Replicated != nil {
  1969. l = m.Replicated.Size()
  1970. n += 1 + l + sovSpecs(uint64(l))
  1971. }
  1972. return n
  1973. }
  1974. func (m *ServiceSpec_Global) Size() (n int) {
  1975. var l int
  1976. _ = l
  1977. if m.Global != nil {
  1978. l = m.Global.Size()
  1979. n += 1 + l + sovSpecs(uint64(l))
  1980. }
  1981. return n
  1982. }
  1983. func (m *ReplicatedService) Size() (n int) {
  1984. var l int
  1985. _ = l
  1986. if m.Replicas != 0 {
  1987. n += 1 + sovSpecs(uint64(m.Replicas))
  1988. }
  1989. return n
  1990. }
  1991. func (m *GlobalService) Size() (n int) {
  1992. var l int
  1993. _ = l
  1994. return n
  1995. }
  1996. func (m *TaskSpec) Size() (n int) {
  1997. var l int
  1998. _ = l
  1999. if m.Runtime != nil {
  2000. n += m.Runtime.Size()
  2001. }
  2002. if m.Resources != nil {
  2003. l = m.Resources.Size()
  2004. n += 1 + l + sovSpecs(uint64(l))
  2005. }
  2006. if m.Restart != nil {
  2007. l = m.Restart.Size()
  2008. n += 1 + l + sovSpecs(uint64(l))
  2009. }
  2010. if m.Placement != nil {
  2011. l = m.Placement.Size()
  2012. n += 1 + l + sovSpecs(uint64(l))
  2013. }
  2014. if m.LogDriver != nil {
  2015. l = m.LogDriver.Size()
  2016. n += 1 + l + sovSpecs(uint64(l))
  2017. }
  2018. if len(m.Networks) > 0 {
  2019. for _, e := range m.Networks {
  2020. l = e.Size()
  2021. n += 1 + l + sovSpecs(uint64(l))
  2022. }
  2023. }
  2024. if m.ForceUpdate != 0 {
  2025. n += 1 + sovSpecs(uint64(m.ForceUpdate))
  2026. }
  2027. return n
  2028. }
  2029. func (m *TaskSpec_Container) Size() (n int) {
  2030. var l int
  2031. _ = l
  2032. if m.Container != nil {
  2033. l = m.Container.Size()
  2034. n += 1 + l + sovSpecs(uint64(l))
  2035. }
  2036. return n
  2037. }
  2038. func (m *TaskSpec_Attachment) Size() (n int) {
  2039. var l int
  2040. _ = l
  2041. if m.Attachment != nil {
  2042. l = m.Attachment.Size()
  2043. n += 1 + l + sovSpecs(uint64(l))
  2044. }
  2045. return n
  2046. }
  2047. func (m *TaskSpec_Generic) Size() (n int) {
  2048. var l int
  2049. _ = l
  2050. if m.Generic != nil {
  2051. l = m.Generic.Size()
  2052. n += 1 + l + sovSpecs(uint64(l))
  2053. }
  2054. return n
  2055. }
  2056. func (m *GenericRuntimeSpec) Size() (n int) {
  2057. var l int
  2058. _ = l
  2059. l = len(m.Kind)
  2060. if l > 0 {
  2061. n += 1 + l + sovSpecs(uint64(l))
  2062. }
  2063. if m.Payload != nil {
  2064. l = m.Payload.Size()
  2065. n += 1 + l + sovSpecs(uint64(l))
  2066. }
  2067. return n
  2068. }
  2069. func (m *NetworkAttachmentSpec) Size() (n int) {
  2070. var l int
  2071. _ = l
  2072. l = len(m.ContainerID)
  2073. if l > 0 {
  2074. n += 1 + l + sovSpecs(uint64(l))
  2075. }
  2076. return n
  2077. }
  2078. func (m *ContainerSpec) Size() (n int) {
  2079. var l int
  2080. _ = l
  2081. l = len(m.Image)
  2082. if l > 0 {
  2083. n += 1 + l + sovSpecs(uint64(l))
  2084. }
  2085. if len(m.Labels) > 0 {
  2086. for k, v := range m.Labels {
  2087. _ = k
  2088. _ = v
  2089. mapEntrySize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
  2090. n += mapEntrySize + 1 + sovSpecs(uint64(mapEntrySize))
  2091. }
  2092. }
  2093. if len(m.Command) > 0 {
  2094. for _, s := range m.Command {
  2095. l = len(s)
  2096. n += 1 + l + sovSpecs(uint64(l))
  2097. }
  2098. }
  2099. if len(m.Args) > 0 {
  2100. for _, s := range m.Args {
  2101. l = len(s)
  2102. n += 1 + l + sovSpecs(uint64(l))
  2103. }
  2104. }
  2105. if len(m.Env) > 0 {
  2106. for _, s := range m.Env {
  2107. l = len(s)
  2108. n += 1 + l + sovSpecs(uint64(l))
  2109. }
  2110. }
  2111. l = len(m.Dir)
  2112. if l > 0 {
  2113. n += 1 + l + sovSpecs(uint64(l))
  2114. }
  2115. l = len(m.User)
  2116. if l > 0 {
  2117. n += 1 + l + sovSpecs(uint64(l))
  2118. }
  2119. if len(m.Mounts) > 0 {
  2120. for _, e := range m.Mounts {
  2121. l = e.Size()
  2122. n += 1 + l + sovSpecs(uint64(l))
  2123. }
  2124. }
  2125. if m.StopGracePeriod != nil {
  2126. l = m.StopGracePeriod.Size()
  2127. n += 1 + l + sovSpecs(uint64(l))
  2128. }
  2129. if m.PullOptions != nil {
  2130. l = m.PullOptions.Size()
  2131. n += 1 + l + sovSpecs(uint64(l))
  2132. }
  2133. if len(m.Groups) > 0 {
  2134. for _, s := range m.Groups {
  2135. l = len(s)
  2136. n += 1 + l + sovSpecs(uint64(l))
  2137. }
  2138. }
  2139. if len(m.Secrets) > 0 {
  2140. for _, e := range m.Secrets {
  2141. l = e.Size()
  2142. n += 1 + l + sovSpecs(uint64(l))
  2143. }
  2144. }
  2145. if m.TTY {
  2146. n += 2
  2147. }
  2148. l = len(m.Hostname)
  2149. if l > 0 {
  2150. n += 1 + l + sovSpecs(uint64(l))
  2151. }
  2152. if m.DNSConfig != nil {
  2153. l = m.DNSConfig.Size()
  2154. n += 1 + l + sovSpecs(uint64(l))
  2155. }
  2156. if m.Healthcheck != nil {
  2157. l = m.Healthcheck.Size()
  2158. n += 2 + l + sovSpecs(uint64(l))
  2159. }
  2160. if len(m.Hosts) > 0 {
  2161. for _, s := range m.Hosts {
  2162. l = len(s)
  2163. n += 2 + l + sovSpecs(uint64(l))
  2164. }
  2165. }
  2166. if m.OpenStdin {
  2167. n += 3
  2168. }
  2169. if m.ReadOnly {
  2170. n += 3
  2171. }
  2172. l = len(m.StopSignal)
  2173. if l > 0 {
  2174. n += 2 + l + sovSpecs(uint64(l))
  2175. }
  2176. return n
  2177. }
  2178. func (m *ContainerSpec_PullOptions) Size() (n int) {
  2179. var l int
  2180. _ = l
  2181. l = len(m.RegistryAuth)
  2182. if l > 0 {
  2183. n += 2 + l + sovSpecs(uint64(l))
  2184. }
  2185. return n
  2186. }
  2187. func (m *ContainerSpec_DNSConfig) Size() (n int) {
  2188. var l int
  2189. _ = l
  2190. if len(m.Nameservers) > 0 {
  2191. for _, s := range m.Nameservers {
  2192. l = len(s)
  2193. n += 1 + l + sovSpecs(uint64(l))
  2194. }
  2195. }
  2196. if len(m.Search) > 0 {
  2197. for _, s := range m.Search {
  2198. l = len(s)
  2199. n += 1 + l + sovSpecs(uint64(l))
  2200. }
  2201. }
  2202. if len(m.Options) > 0 {
  2203. for _, s := range m.Options {
  2204. l = len(s)
  2205. n += 1 + l + sovSpecs(uint64(l))
  2206. }
  2207. }
  2208. return n
  2209. }
  2210. func (m *EndpointSpec) Size() (n int) {
  2211. var l int
  2212. _ = l
  2213. if m.Mode != 0 {
  2214. n += 1 + sovSpecs(uint64(m.Mode))
  2215. }
  2216. if len(m.Ports) > 0 {
  2217. for _, e := range m.Ports {
  2218. l = e.Size()
  2219. n += 1 + l + sovSpecs(uint64(l))
  2220. }
  2221. }
  2222. return n
  2223. }
  2224. func (m *NetworkSpec) Size() (n int) {
  2225. var l int
  2226. _ = l
  2227. l = m.Annotations.Size()
  2228. n += 1 + l + sovSpecs(uint64(l))
  2229. if m.DriverConfig != nil {
  2230. l = m.DriverConfig.Size()
  2231. n += 1 + l + sovSpecs(uint64(l))
  2232. }
  2233. if m.Ipv6Enabled {
  2234. n += 2
  2235. }
  2236. if m.Internal {
  2237. n += 2
  2238. }
  2239. if m.IPAM != nil {
  2240. l = m.IPAM.Size()
  2241. n += 1 + l + sovSpecs(uint64(l))
  2242. }
  2243. if m.Attachable {
  2244. n += 2
  2245. }
  2246. if m.Ingress {
  2247. n += 2
  2248. }
  2249. return n
  2250. }
  2251. func (m *ClusterSpec) Size() (n int) {
  2252. var l int
  2253. _ = l
  2254. l = m.Annotations.Size()
  2255. n += 1 + l + sovSpecs(uint64(l))
  2256. l = m.AcceptancePolicy.Size()
  2257. n += 1 + l + sovSpecs(uint64(l))
  2258. l = m.Orchestration.Size()
  2259. n += 1 + l + sovSpecs(uint64(l))
  2260. l = m.Raft.Size()
  2261. n += 1 + l + sovSpecs(uint64(l))
  2262. l = m.Dispatcher.Size()
  2263. n += 1 + l + sovSpecs(uint64(l))
  2264. l = m.CAConfig.Size()
  2265. n += 1 + l + sovSpecs(uint64(l))
  2266. l = m.TaskDefaults.Size()
  2267. n += 1 + l + sovSpecs(uint64(l))
  2268. l = m.EncryptionConfig.Size()
  2269. n += 1 + l + sovSpecs(uint64(l))
  2270. return n
  2271. }
  2272. func (m *SecretSpec) Size() (n int) {
  2273. var l int
  2274. _ = l
  2275. l = m.Annotations.Size()
  2276. n += 1 + l + sovSpecs(uint64(l))
  2277. l = len(m.Data)
  2278. if l > 0 {
  2279. n += 1 + l + sovSpecs(uint64(l))
  2280. }
  2281. return n
  2282. }
  2283. func sovSpecs(x uint64) (n int) {
  2284. for {
  2285. n++
  2286. x >>= 7
  2287. if x == 0 {
  2288. break
  2289. }
  2290. }
  2291. return n
  2292. }
  2293. func sozSpecs(x uint64) (n int) {
  2294. return sovSpecs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2295. }
  2296. func (this *NodeSpec) String() string {
  2297. if this == nil {
  2298. return "nil"
  2299. }
  2300. s := strings.Join([]string{`&NodeSpec{`,
  2301. `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
  2302. `DesiredRole:` + fmt.Sprintf("%v", this.DesiredRole) + `,`,
  2303. `Membership:` + fmt.Sprintf("%v", this.Membership) + `,`,
  2304. `Availability:` + fmt.Sprintf("%v", this.Availability) + `,`,
  2305. `}`,
  2306. }, "")
  2307. return s
  2308. }
  2309. func (this *ServiceSpec) String() string {
  2310. if this == nil {
  2311. return "nil"
  2312. }
  2313. s := strings.Join([]string{`&ServiceSpec{`,
  2314. `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
  2315. `Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskSpec", "TaskSpec", 1), `&`, ``, 1) + `,`,
  2316. `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
  2317. `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "UpdateConfig", "UpdateConfig", 1) + `,`,
  2318. `Networks:` + strings.Replace(fmt.Sprintf("%v", this.Networks), "NetworkAttachmentConfig", "NetworkAttachmentConfig", 1) + `,`,
  2319. `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "EndpointSpec", "EndpointSpec", 1) + `,`,
  2320. `Rollback:` + strings.Replace(fmt.Sprintf("%v", this.Rollback), "UpdateConfig", "UpdateConfig", 1) + `,`,
  2321. `}`,
  2322. }, "")
  2323. return s
  2324. }
  2325. func (this *ServiceSpec_Replicated) String() string {
  2326. if this == nil {
  2327. return "nil"
  2328. }
  2329. s := strings.Join([]string{`&ServiceSpec_Replicated{`,
  2330. `Replicated:` + strings.Replace(fmt.Sprintf("%v", this.Replicated), "ReplicatedService", "ReplicatedService", 1) + `,`,
  2331. `}`,
  2332. }, "")
  2333. return s
  2334. }
  2335. func (this *ServiceSpec_Global) String() string {
  2336. if this == nil {
  2337. return "nil"
  2338. }
  2339. s := strings.Join([]string{`&ServiceSpec_Global{`,
  2340. `Global:` + strings.Replace(fmt.Sprintf("%v", this.Global), "GlobalService", "GlobalService", 1) + `,`,
  2341. `}`,
  2342. }, "")
  2343. return s
  2344. }
  2345. func (this *ReplicatedService) String() string {
  2346. if this == nil {
  2347. return "nil"
  2348. }
  2349. s := strings.Join([]string{`&ReplicatedService{`,
  2350. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  2351. `}`,
  2352. }, "")
  2353. return s
  2354. }
  2355. func (this *GlobalService) String() string {
  2356. if this == nil {
  2357. return "nil"
  2358. }
  2359. s := strings.Join([]string{`&GlobalService{`,
  2360. `}`,
  2361. }, "")
  2362. return s
  2363. }
  2364. func (this *TaskSpec) String() string {
  2365. if this == nil {
  2366. return "nil"
  2367. }
  2368. s := strings.Join([]string{`&TaskSpec{`,
  2369. `Runtime:` + fmt.Sprintf("%v", this.Runtime) + `,`,
  2370. `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "ResourceRequirements", "ResourceRequirements", 1) + `,`,
  2371. `Restart:` + strings.Replace(fmt.Sprintf("%v", this.Restart), "RestartPolicy", "RestartPolicy", 1) + `,`,
  2372. `Placement:` + strings.Replace(fmt.Sprintf("%v", this.Placement), "Placement", "Placement", 1) + `,`,
  2373. `LogDriver:` + strings.Replace(fmt.Sprintf("%v", this.LogDriver), "Driver", "Driver", 1) + `,`,
  2374. `Networks:` + strings.Replace(fmt.Sprintf("%v", this.Networks), "NetworkAttachmentConfig", "NetworkAttachmentConfig", 1) + `,`,
  2375. `ForceUpdate:` + fmt.Sprintf("%v", this.ForceUpdate) + `,`,
  2376. `}`,
  2377. }, "")
  2378. return s
  2379. }
  2380. func (this *TaskSpec_Container) String() string {
  2381. if this == nil {
  2382. return "nil"
  2383. }
  2384. s := strings.Join([]string{`&TaskSpec_Container{`,
  2385. `Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "ContainerSpec", "ContainerSpec", 1) + `,`,
  2386. `}`,
  2387. }, "")
  2388. return s
  2389. }
  2390. func (this *TaskSpec_Attachment) String() string {
  2391. if this == nil {
  2392. return "nil"
  2393. }
  2394. s := strings.Join([]string{`&TaskSpec_Attachment{`,
  2395. `Attachment:` + strings.Replace(fmt.Sprintf("%v", this.Attachment), "NetworkAttachmentSpec", "NetworkAttachmentSpec", 1) + `,`,
  2396. `}`,
  2397. }, "")
  2398. return s
  2399. }
  2400. func (this *TaskSpec_Generic) String() string {
  2401. if this == nil {
  2402. return "nil"
  2403. }
  2404. s := strings.Join([]string{`&TaskSpec_Generic{`,
  2405. `Generic:` + strings.Replace(fmt.Sprintf("%v", this.Generic), "GenericRuntimeSpec", "GenericRuntimeSpec", 1) + `,`,
  2406. `}`,
  2407. }, "")
  2408. return s
  2409. }
  2410. func (this *GenericRuntimeSpec) String() string {
  2411. if this == nil {
  2412. return "nil"
  2413. }
  2414. s := strings.Join([]string{`&GenericRuntimeSpec{`,
  2415. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  2416. `Payload:` + strings.Replace(fmt.Sprintf("%v", this.Payload), "Any", "google_protobuf3.Any", 1) + `,`,
  2417. `}`,
  2418. }, "")
  2419. return s
  2420. }
  2421. func (this *NetworkAttachmentSpec) String() string {
  2422. if this == nil {
  2423. return "nil"
  2424. }
  2425. s := strings.Join([]string{`&NetworkAttachmentSpec{`,
  2426. `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
  2427. `}`,
  2428. }, "")
  2429. return s
  2430. }
  2431. func (this *ContainerSpec) String() string {
  2432. if this == nil {
  2433. return "nil"
  2434. }
  2435. keysForLabels := make([]string, 0, len(this.Labels))
  2436. for k, _ := range this.Labels {
  2437. keysForLabels = append(keysForLabels, k)
  2438. }
  2439. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  2440. mapStringForLabels := "map[string]string{"
  2441. for _, k := range keysForLabels {
  2442. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  2443. }
  2444. mapStringForLabels += "}"
  2445. s := strings.Join([]string{`&ContainerSpec{`,
  2446. `Image:` + fmt.Sprintf("%v", this.Image) + `,`,
  2447. `Labels:` + mapStringForLabels + `,`,
  2448. `Command:` + fmt.Sprintf("%v", this.Command) + `,`,
  2449. `Args:` + fmt.Sprintf("%v", this.Args) + `,`,
  2450. `Env:` + fmt.Sprintf("%v", this.Env) + `,`,
  2451. `Dir:` + fmt.Sprintf("%v", this.Dir) + `,`,
  2452. `User:` + fmt.Sprintf("%v", this.User) + `,`,
  2453. `Mounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "Mount", 1), `&`, ``, 1) + `,`,
  2454. `StopGracePeriod:` + strings.Replace(fmt.Sprintf("%v", this.StopGracePeriod), "Duration", "google_protobuf1.Duration", 1) + `,`,
  2455. `PullOptions:` + strings.Replace(fmt.Sprintf("%v", this.PullOptions), "ContainerSpec_PullOptions", "ContainerSpec_PullOptions", 1) + `,`,
  2456. `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  2457. `Secrets:` + strings.Replace(fmt.Sprintf("%v", this.Secrets), "SecretReference", "SecretReference", 1) + `,`,
  2458. `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`,
  2459. `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`,
  2460. `DNSConfig:` + strings.Replace(fmt.Sprintf("%v", this.DNSConfig), "ContainerSpec_DNSConfig", "ContainerSpec_DNSConfig", 1) + `,`,
  2461. `Healthcheck:` + strings.Replace(fmt.Sprintf("%v", this.Healthcheck), "HealthConfig", "HealthConfig", 1) + `,`,
  2462. `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`,
  2463. `OpenStdin:` + fmt.Sprintf("%v", this.OpenStdin) + `,`,
  2464. `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`,
  2465. `StopSignal:` + fmt.Sprintf("%v", this.StopSignal) + `,`,
  2466. `}`,
  2467. }, "")
  2468. return s
  2469. }
  2470. func (this *ContainerSpec_PullOptions) String() string {
  2471. if this == nil {
  2472. return "nil"
  2473. }
  2474. s := strings.Join([]string{`&ContainerSpec_PullOptions{`,
  2475. `RegistryAuth:` + fmt.Sprintf("%v", this.RegistryAuth) + `,`,
  2476. `}`,
  2477. }, "")
  2478. return s
  2479. }
  2480. func (this *ContainerSpec_DNSConfig) String() string {
  2481. if this == nil {
  2482. return "nil"
  2483. }
  2484. s := strings.Join([]string{`&ContainerSpec_DNSConfig{`,
  2485. `Nameservers:` + fmt.Sprintf("%v", this.Nameservers) + `,`,
  2486. `Search:` + fmt.Sprintf("%v", this.Search) + `,`,
  2487. `Options:` + fmt.Sprintf("%v", this.Options) + `,`,
  2488. `}`,
  2489. }, "")
  2490. return s
  2491. }
  2492. func (this *EndpointSpec) String() string {
  2493. if this == nil {
  2494. return "nil"
  2495. }
  2496. s := strings.Join([]string{`&EndpointSpec{`,
  2497. `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
  2498. `Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "PortConfig", "PortConfig", 1) + `,`,
  2499. `}`,
  2500. }, "")
  2501. return s
  2502. }
  2503. func (this *NetworkSpec) String() string {
  2504. if this == nil {
  2505. return "nil"
  2506. }
  2507. s := strings.Join([]string{`&NetworkSpec{`,
  2508. `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
  2509. `DriverConfig:` + strings.Replace(fmt.Sprintf("%v", this.DriverConfig), "Driver", "Driver", 1) + `,`,
  2510. `Ipv6Enabled:` + fmt.Sprintf("%v", this.Ipv6Enabled) + `,`,
  2511. `Internal:` + fmt.Sprintf("%v", this.Internal) + `,`,
  2512. `IPAM:` + strings.Replace(fmt.Sprintf("%v", this.IPAM), "IPAMOptions", "IPAMOptions", 1) + `,`,
  2513. `Attachable:` + fmt.Sprintf("%v", this.Attachable) + `,`,
  2514. `Ingress:` + fmt.Sprintf("%v", this.Ingress) + `,`,
  2515. `}`,
  2516. }, "")
  2517. return s
  2518. }
  2519. func (this *ClusterSpec) String() string {
  2520. if this == nil {
  2521. return "nil"
  2522. }
  2523. s := strings.Join([]string{`&ClusterSpec{`,
  2524. `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
  2525. `AcceptancePolicy:` + strings.Replace(strings.Replace(this.AcceptancePolicy.String(), "AcceptancePolicy", "AcceptancePolicy", 1), `&`, ``, 1) + `,`,
  2526. `Orchestration:` + strings.Replace(strings.Replace(this.Orchestration.String(), "OrchestrationConfig", "OrchestrationConfig", 1), `&`, ``, 1) + `,`,
  2527. `Raft:` + strings.Replace(strings.Replace(this.Raft.String(), "RaftConfig", "RaftConfig", 1), `&`, ``, 1) + `,`,
  2528. `Dispatcher:` + strings.Replace(strings.Replace(this.Dispatcher.String(), "DispatcherConfig", "DispatcherConfig", 1), `&`, ``, 1) + `,`,
  2529. `CAConfig:` + strings.Replace(strings.Replace(this.CAConfig.String(), "CAConfig", "CAConfig", 1), `&`, ``, 1) + `,`,
  2530. `TaskDefaults:` + strings.Replace(strings.Replace(this.TaskDefaults.String(), "TaskDefaults", "TaskDefaults", 1), `&`, ``, 1) + `,`,
  2531. `EncryptionConfig:` + strings.Replace(strings.Replace(this.EncryptionConfig.String(), "EncryptionConfig", "EncryptionConfig", 1), `&`, ``, 1) + `,`,
  2532. `}`,
  2533. }, "")
  2534. return s
  2535. }
  2536. func (this *SecretSpec) String() string {
  2537. if this == nil {
  2538. return "nil"
  2539. }
  2540. s := strings.Join([]string{`&SecretSpec{`,
  2541. `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
  2542. `Data:` + fmt.Sprintf("%v", this.Data) + `,`,
  2543. `}`,
  2544. }, "")
  2545. return s
  2546. }
  2547. func valueToStringSpecs(v interface{}) string {
  2548. rv := reflect.ValueOf(v)
  2549. if rv.IsNil() {
  2550. return "nil"
  2551. }
  2552. pv := reflect.Indirect(rv).Interface()
  2553. return fmt.Sprintf("*%v", pv)
  2554. }
  2555. func (m *NodeSpec) Unmarshal(dAtA []byte) error {
  2556. l := len(dAtA)
  2557. iNdEx := 0
  2558. for iNdEx < l {
  2559. preIndex := iNdEx
  2560. var wire uint64
  2561. for shift := uint(0); ; shift += 7 {
  2562. if shift >= 64 {
  2563. return ErrIntOverflowSpecs
  2564. }
  2565. if iNdEx >= l {
  2566. return io.ErrUnexpectedEOF
  2567. }
  2568. b := dAtA[iNdEx]
  2569. iNdEx++
  2570. wire |= (uint64(b) & 0x7F) << shift
  2571. if b < 0x80 {
  2572. break
  2573. }
  2574. }
  2575. fieldNum := int32(wire >> 3)
  2576. wireType := int(wire & 0x7)
  2577. if wireType == 4 {
  2578. return fmt.Errorf("proto: NodeSpec: wiretype end group for non-group")
  2579. }
  2580. if fieldNum <= 0 {
  2581. return fmt.Errorf("proto: NodeSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2582. }
  2583. switch fieldNum {
  2584. case 1:
  2585. if wireType != 2 {
  2586. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  2587. }
  2588. var msglen int
  2589. for shift := uint(0); ; shift += 7 {
  2590. if shift >= 64 {
  2591. return ErrIntOverflowSpecs
  2592. }
  2593. if iNdEx >= l {
  2594. return io.ErrUnexpectedEOF
  2595. }
  2596. b := dAtA[iNdEx]
  2597. iNdEx++
  2598. msglen |= (int(b) & 0x7F) << shift
  2599. if b < 0x80 {
  2600. break
  2601. }
  2602. }
  2603. if msglen < 0 {
  2604. return ErrInvalidLengthSpecs
  2605. }
  2606. postIndex := iNdEx + msglen
  2607. if postIndex > l {
  2608. return io.ErrUnexpectedEOF
  2609. }
  2610. if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2611. return err
  2612. }
  2613. iNdEx = postIndex
  2614. case 2:
  2615. if wireType != 0 {
  2616. return fmt.Errorf("proto: wrong wireType = %d for field DesiredRole", wireType)
  2617. }
  2618. m.DesiredRole = 0
  2619. for shift := uint(0); ; shift += 7 {
  2620. if shift >= 64 {
  2621. return ErrIntOverflowSpecs
  2622. }
  2623. if iNdEx >= l {
  2624. return io.ErrUnexpectedEOF
  2625. }
  2626. b := dAtA[iNdEx]
  2627. iNdEx++
  2628. m.DesiredRole |= (NodeRole(b) & 0x7F) << shift
  2629. if b < 0x80 {
  2630. break
  2631. }
  2632. }
  2633. case 3:
  2634. if wireType != 0 {
  2635. return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType)
  2636. }
  2637. m.Membership = 0
  2638. for shift := uint(0); ; shift += 7 {
  2639. if shift >= 64 {
  2640. return ErrIntOverflowSpecs
  2641. }
  2642. if iNdEx >= l {
  2643. return io.ErrUnexpectedEOF
  2644. }
  2645. b := dAtA[iNdEx]
  2646. iNdEx++
  2647. m.Membership |= (NodeSpec_Membership(b) & 0x7F) << shift
  2648. if b < 0x80 {
  2649. break
  2650. }
  2651. }
  2652. case 4:
  2653. if wireType != 0 {
  2654. return fmt.Errorf("proto: wrong wireType = %d for field Availability", wireType)
  2655. }
  2656. m.Availability = 0
  2657. for shift := uint(0); ; shift += 7 {
  2658. if shift >= 64 {
  2659. return ErrIntOverflowSpecs
  2660. }
  2661. if iNdEx >= l {
  2662. return io.ErrUnexpectedEOF
  2663. }
  2664. b := dAtA[iNdEx]
  2665. iNdEx++
  2666. m.Availability |= (NodeSpec_Availability(b) & 0x7F) << shift
  2667. if b < 0x80 {
  2668. break
  2669. }
  2670. }
  2671. default:
  2672. iNdEx = preIndex
  2673. skippy, err := skipSpecs(dAtA[iNdEx:])
  2674. if err != nil {
  2675. return err
  2676. }
  2677. if skippy < 0 {
  2678. return ErrInvalidLengthSpecs
  2679. }
  2680. if (iNdEx + skippy) > l {
  2681. return io.ErrUnexpectedEOF
  2682. }
  2683. iNdEx += skippy
  2684. }
  2685. }
  2686. if iNdEx > l {
  2687. return io.ErrUnexpectedEOF
  2688. }
  2689. return nil
  2690. }
  2691. func (m *ServiceSpec) Unmarshal(dAtA []byte) error {
  2692. l := len(dAtA)
  2693. iNdEx := 0
  2694. for iNdEx < l {
  2695. preIndex := iNdEx
  2696. var wire uint64
  2697. for shift := uint(0); ; shift += 7 {
  2698. if shift >= 64 {
  2699. return ErrIntOverflowSpecs
  2700. }
  2701. if iNdEx >= l {
  2702. return io.ErrUnexpectedEOF
  2703. }
  2704. b := dAtA[iNdEx]
  2705. iNdEx++
  2706. wire |= (uint64(b) & 0x7F) << shift
  2707. if b < 0x80 {
  2708. break
  2709. }
  2710. }
  2711. fieldNum := int32(wire >> 3)
  2712. wireType := int(wire & 0x7)
  2713. if wireType == 4 {
  2714. return fmt.Errorf("proto: ServiceSpec: wiretype end group for non-group")
  2715. }
  2716. if fieldNum <= 0 {
  2717. return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2718. }
  2719. switch fieldNum {
  2720. case 1:
  2721. if wireType != 2 {
  2722. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  2723. }
  2724. var msglen int
  2725. for shift := uint(0); ; shift += 7 {
  2726. if shift >= 64 {
  2727. return ErrIntOverflowSpecs
  2728. }
  2729. if iNdEx >= l {
  2730. return io.ErrUnexpectedEOF
  2731. }
  2732. b := dAtA[iNdEx]
  2733. iNdEx++
  2734. msglen |= (int(b) & 0x7F) << shift
  2735. if b < 0x80 {
  2736. break
  2737. }
  2738. }
  2739. if msglen < 0 {
  2740. return ErrInvalidLengthSpecs
  2741. }
  2742. postIndex := iNdEx + msglen
  2743. if postIndex > l {
  2744. return io.ErrUnexpectedEOF
  2745. }
  2746. if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2747. return err
  2748. }
  2749. iNdEx = postIndex
  2750. case 2:
  2751. if wireType != 2 {
  2752. return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType)
  2753. }
  2754. var msglen int
  2755. for shift := uint(0); ; shift += 7 {
  2756. if shift >= 64 {
  2757. return ErrIntOverflowSpecs
  2758. }
  2759. if iNdEx >= l {
  2760. return io.ErrUnexpectedEOF
  2761. }
  2762. b := dAtA[iNdEx]
  2763. iNdEx++
  2764. msglen |= (int(b) & 0x7F) << shift
  2765. if b < 0x80 {
  2766. break
  2767. }
  2768. }
  2769. if msglen < 0 {
  2770. return ErrInvalidLengthSpecs
  2771. }
  2772. postIndex := iNdEx + msglen
  2773. if postIndex > l {
  2774. return io.ErrUnexpectedEOF
  2775. }
  2776. if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2777. return err
  2778. }
  2779. iNdEx = postIndex
  2780. case 3:
  2781. if wireType != 2 {
  2782. return fmt.Errorf("proto: wrong wireType = %d for field Replicated", wireType)
  2783. }
  2784. var msglen int
  2785. for shift := uint(0); ; shift += 7 {
  2786. if shift >= 64 {
  2787. return ErrIntOverflowSpecs
  2788. }
  2789. if iNdEx >= l {
  2790. return io.ErrUnexpectedEOF
  2791. }
  2792. b := dAtA[iNdEx]
  2793. iNdEx++
  2794. msglen |= (int(b) & 0x7F) << shift
  2795. if b < 0x80 {
  2796. break
  2797. }
  2798. }
  2799. if msglen < 0 {
  2800. return ErrInvalidLengthSpecs
  2801. }
  2802. postIndex := iNdEx + msglen
  2803. if postIndex > l {
  2804. return io.ErrUnexpectedEOF
  2805. }
  2806. v := &ReplicatedService{}
  2807. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2808. return err
  2809. }
  2810. m.Mode = &ServiceSpec_Replicated{v}
  2811. iNdEx = postIndex
  2812. case 4:
  2813. if wireType != 2 {
  2814. return fmt.Errorf("proto: wrong wireType = %d for field Global", wireType)
  2815. }
  2816. var msglen int
  2817. for shift := uint(0); ; shift += 7 {
  2818. if shift >= 64 {
  2819. return ErrIntOverflowSpecs
  2820. }
  2821. if iNdEx >= l {
  2822. return io.ErrUnexpectedEOF
  2823. }
  2824. b := dAtA[iNdEx]
  2825. iNdEx++
  2826. msglen |= (int(b) & 0x7F) << shift
  2827. if b < 0x80 {
  2828. break
  2829. }
  2830. }
  2831. if msglen < 0 {
  2832. return ErrInvalidLengthSpecs
  2833. }
  2834. postIndex := iNdEx + msglen
  2835. if postIndex > l {
  2836. return io.ErrUnexpectedEOF
  2837. }
  2838. v := &GlobalService{}
  2839. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2840. return err
  2841. }
  2842. m.Mode = &ServiceSpec_Global{v}
  2843. iNdEx = postIndex
  2844. case 6:
  2845. if wireType != 2 {
  2846. return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
  2847. }
  2848. var msglen int
  2849. for shift := uint(0); ; shift += 7 {
  2850. if shift >= 64 {
  2851. return ErrIntOverflowSpecs
  2852. }
  2853. if iNdEx >= l {
  2854. return io.ErrUnexpectedEOF
  2855. }
  2856. b := dAtA[iNdEx]
  2857. iNdEx++
  2858. msglen |= (int(b) & 0x7F) << shift
  2859. if b < 0x80 {
  2860. break
  2861. }
  2862. }
  2863. if msglen < 0 {
  2864. return ErrInvalidLengthSpecs
  2865. }
  2866. postIndex := iNdEx + msglen
  2867. if postIndex > l {
  2868. return io.ErrUnexpectedEOF
  2869. }
  2870. if m.Update == nil {
  2871. m.Update = &UpdateConfig{}
  2872. }
  2873. if err := m.Update.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2874. return err
  2875. }
  2876. iNdEx = postIndex
  2877. case 7:
  2878. if wireType != 2 {
  2879. return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType)
  2880. }
  2881. var msglen int
  2882. for shift := uint(0); ; shift += 7 {
  2883. if shift >= 64 {
  2884. return ErrIntOverflowSpecs
  2885. }
  2886. if iNdEx >= l {
  2887. return io.ErrUnexpectedEOF
  2888. }
  2889. b := dAtA[iNdEx]
  2890. iNdEx++
  2891. msglen |= (int(b) & 0x7F) << shift
  2892. if b < 0x80 {
  2893. break
  2894. }
  2895. }
  2896. if msglen < 0 {
  2897. return ErrInvalidLengthSpecs
  2898. }
  2899. postIndex := iNdEx + msglen
  2900. if postIndex > l {
  2901. return io.ErrUnexpectedEOF
  2902. }
  2903. m.Networks = append(m.Networks, &NetworkAttachmentConfig{})
  2904. if err := m.Networks[len(m.Networks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2905. return err
  2906. }
  2907. iNdEx = postIndex
  2908. case 8:
  2909. if wireType != 2 {
  2910. return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType)
  2911. }
  2912. var msglen int
  2913. for shift := uint(0); ; shift += 7 {
  2914. if shift >= 64 {
  2915. return ErrIntOverflowSpecs
  2916. }
  2917. if iNdEx >= l {
  2918. return io.ErrUnexpectedEOF
  2919. }
  2920. b := dAtA[iNdEx]
  2921. iNdEx++
  2922. msglen |= (int(b) & 0x7F) << shift
  2923. if b < 0x80 {
  2924. break
  2925. }
  2926. }
  2927. if msglen < 0 {
  2928. return ErrInvalidLengthSpecs
  2929. }
  2930. postIndex := iNdEx + msglen
  2931. if postIndex > l {
  2932. return io.ErrUnexpectedEOF
  2933. }
  2934. if m.Endpoint == nil {
  2935. m.Endpoint = &EndpointSpec{}
  2936. }
  2937. if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2938. return err
  2939. }
  2940. iNdEx = postIndex
  2941. case 9:
  2942. if wireType != 2 {
  2943. return fmt.Errorf("proto: wrong wireType = %d for field Rollback", wireType)
  2944. }
  2945. var msglen int
  2946. for shift := uint(0); ; shift += 7 {
  2947. if shift >= 64 {
  2948. return ErrIntOverflowSpecs
  2949. }
  2950. if iNdEx >= l {
  2951. return io.ErrUnexpectedEOF
  2952. }
  2953. b := dAtA[iNdEx]
  2954. iNdEx++
  2955. msglen |= (int(b) & 0x7F) << shift
  2956. if b < 0x80 {
  2957. break
  2958. }
  2959. }
  2960. if msglen < 0 {
  2961. return ErrInvalidLengthSpecs
  2962. }
  2963. postIndex := iNdEx + msglen
  2964. if postIndex > l {
  2965. return io.ErrUnexpectedEOF
  2966. }
  2967. if m.Rollback == nil {
  2968. m.Rollback = &UpdateConfig{}
  2969. }
  2970. if err := m.Rollback.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2971. return err
  2972. }
  2973. iNdEx = postIndex
  2974. default:
  2975. iNdEx = preIndex
  2976. skippy, err := skipSpecs(dAtA[iNdEx:])
  2977. if err != nil {
  2978. return err
  2979. }
  2980. if skippy < 0 {
  2981. return ErrInvalidLengthSpecs
  2982. }
  2983. if (iNdEx + skippy) > l {
  2984. return io.ErrUnexpectedEOF
  2985. }
  2986. iNdEx += skippy
  2987. }
  2988. }
  2989. if iNdEx > l {
  2990. return io.ErrUnexpectedEOF
  2991. }
  2992. return nil
  2993. }
  2994. func (m *ReplicatedService) Unmarshal(dAtA []byte) error {
  2995. l := len(dAtA)
  2996. iNdEx := 0
  2997. for iNdEx < l {
  2998. preIndex := iNdEx
  2999. var wire uint64
  3000. for shift := uint(0); ; shift += 7 {
  3001. if shift >= 64 {
  3002. return ErrIntOverflowSpecs
  3003. }
  3004. if iNdEx >= l {
  3005. return io.ErrUnexpectedEOF
  3006. }
  3007. b := dAtA[iNdEx]
  3008. iNdEx++
  3009. wire |= (uint64(b) & 0x7F) << shift
  3010. if b < 0x80 {
  3011. break
  3012. }
  3013. }
  3014. fieldNum := int32(wire >> 3)
  3015. wireType := int(wire & 0x7)
  3016. if wireType == 4 {
  3017. return fmt.Errorf("proto: ReplicatedService: wiretype end group for non-group")
  3018. }
  3019. if fieldNum <= 0 {
  3020. return fmt.Errorf("proto: ReplicatedService: illegal tag %d (wire type %d)", fieldNum, wire)
  3021. }
  3022. switch fieldNum {
  3023. case 1:
  3024. if wireType != 0 {
  3025. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  3026. }
  3027. m.Replicas = 0
  3028. for shift := uint(0); ; shift += 7 {
  3029. if shift >= 64 {
  3030. return ErrIntOverflowSpecs
  3031. }
  3032. if iNdEx >= l {
  3033. return io.ErrUnexpectedEOF
  3034. }
  3035. b := dAtA[iNdEx]
  3036. iNdEx++
  3037. m.Replicas |= (uint64(b) & 0x7F) << shift
  3038. if b < 0x80 {
  3039. break
  3040. }
  3041. }
  3042. default:
  3043. iNdEx = preIndex
  3044. skippy, err := skipSpecs(dAtA[iNdEx:])
  3045. if err != nil {
  3046. return err
  3047. }
  3048. if skippy < 0 {
  3049. return ErrInvalidLengthSpecs
  3050. }
  3051. if (iNdEx + skippy) > l {
  3052. return io.ErrUnexpectedEOF
  3053. }
  3054. iNdEx += skippy
  3055. }
  3056. }
  3057. if iNdEx > l {
  3058. return io.ErrUnexpectedEOF
  3059. }
  3060. return nil
  3061. }
  3062. func (m *GlobalService) Unmarshal(dAtA []byte) error {
  3063. l := len(dAtA)
  3064. iNdEx := 0
  3065. for iNdEx < l {
  3066. preIndex := iNdEx
  3067. var wire uint64
  3068. for shift := uint(0); ; shift += 7 {
  3069. if shift >= 64 {
  3070. return ErrIntOverflowSpecs
  3071. }
  3072. if iNdEx >= l {
  3073. return io.ErrUnexpectedEOF
  3074. }
  3075. b := dAtA[iNdEx]
  3076. iNdEx++
  3077. wire |= (uint64(b) & 0x7F) << shift
  3078. if b < 0x80 {
  3079. break
  3080. }
  3081. }
  3082. fieldNum := int32(wire >> 3)
  3083. wireType := int(wire & 0x7)
  3084. if wireType == 4 {
  3085. return fmt.Errorf("proto: GlobalService: wiretype end group for non-group")
  3086. }
  3087. if fieldNum <= 0 {
  3088. return fmt.Errorf("proto: GlobalService: illegal tag %d (wire type %d)", fieldNum, wire)
  3089. }
  3090. switch fieldNum {
  3091. default:
  3092. iNdEx = preIndex
  3093. skippy, err := skipSpecs(dAtA[iNdEx:])
  3094. if err != nil {
  3095. return err
  3096. }
  3097. if skippy < 0 {
  3098. return ErrInvalidLengthSpecs
  3099. }
  3100. if (iNdEx + skippy) > l {
  3101. return io.ErrUnexpectedEOF
  3102. }
  3103. iNdEx += skippy
  3104. }
  3105. }
  3106. if iNdEx > l {
  3107. return io.ErrUnexpectedEOF
  3108. }
  3109. return nil
  3110. }
  3111. func (m *TaskSpec) Unmarshal(dAtA []byte) error {
  3112. l := len(dAtA)
  3113. iNdEx := 0
  3114. for iNdEx < l {
  3115. preIndex := iNdEx
  3116. var wire uint64
  3117. for shift := uint(0); ; shift += 7 {
  3118. if shift >= 64 {
  3119. return ErrIntOverflowSpecs
  3120. }
  3121. if iNdEx >= l {
  3122. return io.ErrUnexpectedEOF
  3123. }
  3124. b := dAtA[iNdEx]
  3125. iNdEx++
  3126. wire |= (uint64(b) & 0x7F) << shift
  3127. if b < 0x80 {
  3128. break
  3129. }
  3130. }
  3131. fieldNum := int32(wire >> 3)
  3132. wireType := int(wire & 0x7)
  3133. if wireType == 4 {
  3134. return fmt.Errorf("proto: TaskSpec: wiretype end group for non-group")
  3135. }
  3136. if fieldNum <= 0 {
  3137. return fmt.Errorf("proto: TaskSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  3138. }
  3139. switch fieldNum {
  3140. case 1:
  3141. if wireType != 2 {
  3142. return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType)
  3143. }
  3144. var msglen int
  3145. for shift := uint(0); ; shift += 7 {
  3146. if shift >= 64 {
  3147. return ErrIntOverflowSpecs
  3148. }
  3149. if iNdEx >= l {
  3150. return io.ErrUnexpectedEOF
  3151. }
  3152. b := dAtA[iNdEx]
  3153. iNdEx++
  3154. msglen |= (int(b) & 0x7F) << shift
  3155. if b < 0x80 {
  3156. break
  3157. }
  3158. }
  3159. if msglen < 0 {
  3160. return ErrInvalidLengthSpecs
  3161. }
  3162. postIndex := iNdEx + msglen
  3163. if postIndex > l {
  3164. return io.ErrUnexpectedEOF
  3165. }
  3166. v := &ContainerSpec{}
  3167. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3168. return err
  3169. }
  3170. m.Runtime = &TaskSpec_Container{v}
  3171. iNdEx = postIndex
  3172. case 2:
  3173. if wireType != 2 {
  3174. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  3175. }
  3176. var msglen int
  3177. for shift := uint(0); ; shift += 7 {
  3178. if shift >= 64 {
  3179. return ErrIntOverflowSpecs
  3180. }
  3181. if iNdEx >= l {
  3182. return io.ErrUnexpectedEOF
  3183. }
  3184. b := dAtA[iNdEx]
  3185. iNdEx++
  3186. msglen |= (int(b) & 0x7F) << shift
  3187. if b < 0x80 {
  3188. break
  3189. }
  3190. }
  3191. if msglen < 0 {
  3192. return ErrInvalidLengthSpecs
  3193. }
  3194. postIndex := iNdEx + msglen
  3195. if postIndex > l {
  3196. return io.ErrUnexpectedEOF
  3197. }
  3198. if m.Resources == nil {
  3199. m.Resources = &ResourceRequirements{}
  3200. }
  3201. if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3202. return err
  3203. }
  3204. iNdEx = postIndex
  3205. case 4:
  3206. if wireType != 2 {
  3207. return fmt.Errorf("proto: wrong wireType = %d for field Restart", wireType)
  3208. }
  3209. var msglen int
  3210. for shift := uint(0); ; shift += 7 {
  3211. if shift >= 64 {
  3212. return ErrIntOverflowSpecs
  3213. }
  3214. if iNdEx >= l {
  3215. return io.ErrUnexpectedEOF
  3216. }
  3217. b := dAtA[iNdEx]
  3218. iNdEx++
  3219. msglen |= (int(b) & 0x7F) << shift
  3220. if b < 0x80 {
  3221. break
  3222. }
  3223. }
  3224. if msglen < 0 {
  3225. return ErrInvalidLengthSpecs
  3226. }
  3227. postIndex := iNdEx + msglen
  3228. if postIndex > l {
  3229. return io.ErrUnexpectedEOF
  3230. }
  3231. if m.Restart == nil {
  3232. m.Restart = &RestartPolicy{}
  3233. }
  3234. if err := m.Restart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3235. return err
  3236. }
  3237. iNdEx = postIndex
  3238. case 5:
  3239. if wireType != 2 {
  3240. return fmt.Errorf("proto: wrong wireType = %d for field Placement", wireType)
  3241. }
  3242. var msglen int
  3243. for shift := uint(0); ; shift += 7 {
  3244. if shift >= 64 {
  3245. return ErrIntOverflowSpecs
  3246. }
  3247. if iNdEx >= l {
  3248. return io.ErrUnexpectedEOF
  3249. }
  3250. b := dAtA[iNdEx]
  3251. iNdEx++
  3252. msglen |= (int(b) & 0x7F) << shift
  3253. if b < 0x80 {
  3254. break
  3255. }
  3256. }
  3257. if msglen < 0 {
  3258. return ErrInvalidLengthSpecs
  3259. }
  3260. postIndex := iNdEx + msglen
  3261. if postIndex > l {
  3262. return io.ErrUnexpectedEOF
  3263. }
  3264. if m.Placement == nil {
  3265. m.Placement = &Placement{}
  3266. }
  3267. if err := m.Placement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3268. return err
  3269. }
  3270. iNdEx = postIndex
  3271. case 6:
  3272. if wireType != 2 {
  3273. return fmt.Errorf("proto: wrong wireType = %d for field LogDriver", wireType)
  3274. }
  3275. var msglen int
  3276. for shift := uint(0); ; shift += 7 {
  3277. if shift >= 64 {
  3278. return ErrIntOverflowSpecs
  3279. }
  3280. if iNdEx >= l {
  3281. return io.ErrUnexpectedEOF
  3282. }
  3283. b := dAtA[iNdEx]
  3284. iNdEx++
  3285. msglen |= (int(b) & 0x7F) << shift
  3286. if b < 0x80 {
  3287. break
  3288. }
  3289. }
  3290. if msglen < 0 {
  3291. return ErrInvalidLengthSpecs
  3292. }
  3293. postIndex := iNdEx + msglen
  3294. if postIndex > l {
  3295. return io.ErrUnexpectedEOF
  3296. }
  3297. if m.LogDriver == nil {
  3298. m.LogDriver = &Driver{}
  3299. }
  3300. if err := m.LogDriver.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3301. return err
  3302. }
  3303. iNdEx = postIndex
  3304. case 7:
  3305. if wireType != 2 {
  3306. return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType)
  3307. }
  3308. var msglen int
  3309. for shift := uint(0); ; shift += 7 {
  3310. if shift >= 64 {
  3311. return ErrIntOverflowSpecs
  3312. }
  3313. if iNdEx >= l {
  3314. return io.ErrUnexpectedEOF
  3315. }
  3316. b := dAtA[iNdEx]
  3317. iNdEx++
  3318. msglen |= (int(b) & 0x7F) << shift
  3319. if b < 0x80 {
  3320. break
  3321. }
  3322. }
  3323. if msglen < 0 {
  3324. return ErrInvalidLengthSpecs
  3325. }
  3326. postIndex := iNdEx + msglen
  3327. if postIndex > l {
  3328. return io.ErrUnexpectedEOF
  3329. }
  3330. m.Networks = append(m.Networks, &NetworkAttachmentConfig{})
  3331. if err := m.Networks[len(m.Networks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3332. return err
  3333. }
  3334. iNdEx = postIndex
  3335. case 8:
  3336. if wireType != 2 {
  3337. return fmt.Errorf("proto: wrong wireType = %d for field Attachment", wireType)
  3338. }
  3339. var msglen int
  3340. for shift := uint(0); ; shift += 7 {
  3341. if shift >= 64 {
  3342. return ErrIntOverflowSpecs
  3343. }
  3344. if iNdEx >= l {
  3345. return io.ErrUnexpectedEOF
  3346. }
  3347. b := dAtA[iNdEx]
  3348. iNdEx++
  3349. msglen |= (int(b) & 0x7F) << shift
  3350. if b < 0x80 {
  3351. break
  3352. }
  3353. }
  3354. if msglen < 0 {
  3355. return ErrInvalidLengthSpecs
  3356. }
  3357. postIndex := iNdEx + msglen
  3358. if postIndex > l {
  3359. return io.ErrUnexpectedEOF
  3360. }
  3361. v := &NetworkAttachmentSpec{}
  3362. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3363. return err
  3364. }
  3365. m.Runtime = &TaskSpec_Attachment{v}
  3366. iNdEx = postIndex
  3367. case 9:
  3368. if wireType != 0 {
  3369. return fmt.Errorf("proto: wrong wireType = %d for field ForceUpdate", wireType)
  3370. }
  3371. m.ForceUpdate = 0
  3372. for shift := uint(0); ; shift += 7 {
  3373. if shift >= 64 {
  3374. return ErrIntOverflowSpecs
  3375. }
  3376. if iNdEx >= l {
  3377. return io.ErrUnexpectedEOF
  3378. }
  3379. b := dAtA[iNdEx]
  3380. iNdEx++
  3381. m.ForceUpdate |= (uint64(b) & 0x7F) << shift
  3382. if b < 0x80 {
  3383. break
  3384. }
  3385. }
  3386. case 10:
  3387. if wireType != 2 {
  3388. return fmt.Errorf("proto: wrong wireType = %d for field Generic", wireType)
  3389. }
  3390. var msglen int
  3391. for shift := uint(0); ; shift += 7 {
  3392. if shift >= 64 {
  3393. return ErrIntOverflowSpecs
  3394. }
  3395. if iNdEx >= l {
  3396. return io.ErrUnexpectedEOF
  3397. }
  3398. b := dAtA[iNdEx]
  3399. iNdEx++
  3400. msglen |= (int(b) & 0x7F) << shift
  3401. if b < 0x80 {
  3402. break
  3403. }
  3404. }
  3405. if msglen < 0 {
  3406. return ErrInvalidLengthSpecs
  3407. }
  3408. postIndex := iNdEx + msglen
  3409. if postIndex > l {
  3410. return io.ErrUnexpectedEOF
  3411. }
  3412. v := &GenericRuntimeSpec{}
  3413. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3414. return err
  3415. }
  3416. m.Runtime = &TaskSpec_Generic{v}
  3417. iNdEx = postIndex
  3418. default:
  3419. iNdEx = preIndex
  3420. skippy, err := skipSpecs(dAtA[iNdEx:])
  3421. if err != nil {
  3422. return err
  3423. }
  3424. if skippy < 0 {
  3425. return ErrInvalidLengthSpecs
  3426. }
  3427. if (iNdEx + skippy) > l {
  3428. return io.ErrUnexpectedEOF
  3429. }
  3430. iNdEx += skippy
  3431. }
  3432. }
  3433. if iNdEx > l {
  3434. return io.ErrUnexpectedEOF
  3435. }
  3436. return nil
  3437. }
  3438. func (m *GenericRuntimeSpec) Unmarshal(dAtA []byte) error {
  3439. l := len(dAtA)
  3440. iNdEx := 0
  3441. for iNdEx < l {
  3442. preIndex := iNdEx
  3443. var wire uint64
  3444. for shift := uint(0); ; shift += 7 {
  3445. if shift >= 64 {
  3446. return ErrIntOverflowSpecs
  3447. }
  3448. if iNdEx >= l {
  3449. return io.ErrUnexpectedEOF
  3450. }
  3451. b := dAtA[iNdEx]
  3452. iNdEx++
  3453. wire |= (uint64(b) & 0x7F) << shift
  3454. if b < 0x80 {
  3455. break
  3456. }
  3457. }
  3458. fieldNum := int32(wire >> 3)
  3459. wireType := int(wire & 0x7)
  3460. if wireType == 4 {
  3461. return fmt.Errorf("proto: GenericRuntimeSpec: wiretype end group for non-group")
  3462. }
  3463. if fieldNum <= 0 {
  3464. return fmt.Errorf("proto: GenericRuntimeSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  3465. }
  3466. switch fieldNum {
  3467. case 1:
  3468. if wireType != 2 {
  3469. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  3470. }
  3471. var stringLen uint64
  3472. for shift := uint(0); ; shift += 7 {
  3473. if shift >= 64 {
  3474. return ErrIntOverflowSpecs
  3475. }
  3476. if iNdEx >= l {
  3477. return io.ErrUnexpectedEOF
  3478. }
  3479. b := dAtA[iNdEx]
  3480. iNdEx++
  3481. stringLen |= (uint64(b) & 0x7F) << shift
  3482. if b < 0x80 {
  3483. break
  3484. }
  3485. }
  3486. intStringLen := int(stringLen)
  3487. if intStringLen < 0 {
  3488. return ErrInvalidLengthSpecs
  3489. }
  3490. postIndex := iNdEx + intStringLen
  3491. if postIndex > l {
  3492. return io.ErrUnexpectedEOF
  3493. }
  3494. m.Kind = string(dAtA[iNdEx:postIndex])
  3495. iNdEx = postIndex
  3496. case 2:
  3497. if wireType != 2 {
  3498. return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
  3499. }
  3500. var msglen int
  3501. for shift := uint(0); ; shift += 7 {
  3502. if shift >= 64 {
  3503. return ErrIntOverflowSpecs
  3504. }
  3505. if iNdEx >= l {
  3506. return io.ErrUnexpectedEOF
  3507. }
  3508. b := dAtA[iNdEx]
  3509. iNdEx++
  3510. msglen |= (int(b) & 0x7F) << shift
  3511. if b < 0x80 {
  3512. break
  3513. }
  3514. }
  3515. if msglen < 0 {
  3516. return ErrInvalidLengthSpecs
  3517. }
  3518. postIndex := iNdEx + msglen
  3519. if postIndex > l {
  3520. return io.ErrUnexpectedEOF
  3521. }
  3522. if m.Payload == nil {
  3523. m.Payload = &google_protobuf3.Any{}
  3524. }
  3525. if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3526. return err
  3527. }
  3528. iNdEx = postIndex
  3529. default:
  3530. iNdEx = preIndex
  3531. skippy, err := skipSpecs(dAtA[iNdEx:])
  3532. if err != nil {
  3533. return err
  3534. }
  3535. if skippy < 0 {
  3536. return ErrInvalidLengthSpecs
  3537. }
  3538. if (iNdEx + skippy) > l {
  3539. return io.ErrUnexpectedEOF
  3540. }
  3541. iNdEx += skippy
  3542. }
  3543. }
  3544. if iNdEx > l {
  3545. return io.ErrUnexpectedEOF
  3546. }
  3547. return nil
  3548. }
  3549. func (m *NetworkAttachmentSpec) Unmarshal(dAtA []byte) error {
  3550. l := len(dAtA)
  3551. iNdEx := 0
  3552. for iNdEx < l {
  3553. preIndex := iNdEx
  3554. var wire uint64
  3555. for shift := uint(0); ; shift += 7 {
  3556. if shift >= 64 {
  3557. return ErrIntOverflowSpecs
  3558. }
  3559. if iNdEx >= l {
  3560. return io.ErrUnexpectedEOF
  3561. }
  3562. b := dAtA[iNdEx]
  3563. iNdEx++
  3564. wire |= (uint64(b) & 0x7F) << shift
  3565. if b < 0x80 {
  3566. break
  3567. }
  3568. }
  3569. fieldNum := int32(wire >> 3)
  3570. wireType := int(wire & 0x7)
  3571. if wireType == 4 {
  3572. return fmt.Errorf("proto: NetworkAttachmentSpec: wiretype end group for non-group")
  3573. }
  3574. if fieldNum <= 0 {
  3575. return fmt.Errorf("proto: NetworkAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  3576. }
  3577. switch fieldNum {
  3578. case 1:
  3579. if wireType != 2 {
  3580. return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
  3581. }
  3582. var stringLen uint64
  3583. for shift := uint(0); ; shift += 7 {
  3584. if shift >= 64 {
  3585. return ErrIntOverflowSpecs
  3586. }
  3587. if iNdEx >= l {
  3588. return io.ErrUnexpectedEOF
  3589. }
  3590. b := dAtA[iNdEx]
  3591. iNdEx++
  3592. stringLen |= (uint64(b) & 0x7F) << shift
  3593. if b < 0x80 {
  3594. break
  3595. }
  3596. }
  3597. intStringLen := int(stringLen)
  3598. if intStringLen < 0 {
  3599. return ErrInvalidLengthSpecs
  3600. }
  3601. postIndex := iNdEx + intStringLen
  3602. if postIndex > l {
  3603. return io.ErrUnexpectedEOF
  3604. }
  3605. m.ContainerID = string(dAtA[iNdEx:postIndex])
  3606. iNdEx = postIndex
  3607. default:
  3608. iNdEx = preIndex
  3609. skippy, err := skipSpecs(dAtA[iNdEx:])
  3610. if err != nil {
  3611. return err
  3612. }
  3613. if skippy < 0 {
  3614. return ErrInvalidLengthSpecs
  3615. }
  3616. if (iNdEx + skippy) > l {
  3617. return io.ErrUnexpectedEOF
  3618. }
  3619. iNdEx += skippy
  3620. }
  3621. }
  3622. if iNdEx > l {
  3623. return io.ErrUnexpectedEOF
  3624. }
  3625. return nil
  3626. }
  3627. func (m *ContainerSpec) Unmarshal(dAtA []byte) error {
  3628. l := len(dAtA)
  3629. iNdEx := 0
  3630. for iNdEx < l {
  3631. preIndex := iNdEx
  3632. var wire uint64
  3633. for shift := uint(0); ; shift += 7 {
  3634. if shift >= 64 {
  3635. return ErrIntOverflowSpecs
  3636. }
  3637. if iNdEx >= l {
  3638. return io.ErrUnexpectedEOF
  3639. }
  3640. b := dAtA[iNdEx]
  3641. iNdEx++
  3642. wire |= (uint64(b) & 0x7F) << shift
  3643. if b < 0x80 {
  3644. break
  3645. }
  3646. }
  3647. fieldNum := int32(wire >> 3)
  3648. wireType := int(wire & 0x7)
  3649. if wireType == 4 {
  3650. return fmt.Errorf("proto: ContainerSpec: wiretype end group for non-group")
  3651. }
  3652. if fieldNum <= 0 {
  3653. return fmt.Errorf("proto: ContainerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  3654. }
  3655. switch fieldNum {
  3656. case 1:
  3657. if wireType != 2 {
  3658. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  3659. }
  3660. var stringLen uint64
  3661. for shift := uint(0); ; shift += 7 {
  3662. if shift >= 64 {
  3663. return ErrIntOverflowSpecs
  3664. }
  3665. if iNdEx >= l {
  3666. return io.ErrUnexpectedEOF
  3667. }
  3668. b := dAtA[iNdEx]
  3669. iNdEx++
  3670. stringLen |= (uint64(b) & 0x7F) << shift
  3671. if b < 0x80 {
  3672. break
  3673. }
  3674. }
  3675. intStringLen := int(stringLen)
  3676. if intStringLen < 0 {
  3677. return ErrInvalidLengthSpecs
  3678. }
  3679. postIndex := iNdEx + intStringLen
  3680. if postIndex > l {
  3681. return io.ErrUnexpectedEOF
  3682. }
  3683. m.Image = string(dAtA[iNdEx:postIndex])
  3684. iNdEx = postIndex
  3685. case 2:
  3686. if wireType != 2 {
  3687. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  3688. }
  3689. var msglen int
  3690. for shift := uint(0); ; shift += 7 {
  3691. if shift >= 64 {
  3692. return ErrIntOverflowSpecs
  3693. }
  3694. if iNdEx >= l {
  3695. return io.ErrUnexpectedEOF
  3696. }
  3697. b := dAtA[iNdEx]
  3698. iNdEx++
  3699. msglen |= (int(b) & 0x7F) << shift
  3700. if b < 0x80 {
  3701. break
  3702. }
  3703. }
  3704. if msglen < 0 {
  3705. return ErrInvalidLengthSpecs
  3706. }
  3707. postIndex := iNdEx + msglen
  3708. if postIndex > l {
  3709. return io.ErrUnexpectedEOF
  3710. }
  3711. var keykey uint64
  3712. for shift := uint(0); ; shift += 7 {
  3713. if shift >= 64 {
  3714. return ErrIntOverflowSpecs
  3715. }
  3716. if iNdEx >= l {
  3717. return io.ErrUnexpectedEOF
  3718. }
  3719. b := dAtA[iNdEx]
  3720. iNdEx++
  3721. keykey |= (uint64(b) & 0x7F) << shift
  3722. if b < 0x80 {
  3723. break
  3724. }
  3725. }
  3726. var stringLenmapkey uint64
  3727. for shift := uint(0); ; shift += 7 {
  3728. if shift >= 64 {
  3729. return ErrIntOverflowSpecs
  3730. }
  3731. if iNdEx >= l {
  3732. return io.ErrUnexpectedEOF
  3733. }
  3734. b := dAtA[iNdEx]
  3735. iNdEx++
  3736. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  3737. if b < 0x80 {
  3738. break
  3739. }
  3740. }
  3741. intStringLenmapkey := int(stringLenmapkey)
  3742. if intStringLenmapkey < 0 {
  3743. return ErrInvalidLengthSpecs
  3744. }
  3745. postStringIndexmapkey := iNdEx + intStringLenmapkey
  3746. if postStringIndexmapkey > l {
  3747. return io.ErrUnexpectedEOF
  3748. }
  3749. mapkey := string(dAtA[iNdEx:postStringIndexmapkey])
  3750. iNdEx = postStringIndexmapkey
  3751. if m.Labels == nil {
  3752. m.Labels = make(map[string]string)
  3753. }
  3754. if iNdEx < postIndex {
  3755. var valuekey uint64
  3756. for shift := uint(0); ; shift += 7 {
  3757. if shift >= 64 {
  3758. return ErrIntOverflowSpecs
  3759. }
  3760. if iNdEx >= l {
  3761. return io.ErrUnexpectedEOF
  3762. }
  3763. b := dAtA[iNdEx]
  3764. iNdEx++
  3765. valuekey |= (uint64(b) & 0x7F) << shift
  3766. if b < 0x80 {
  3767. break
  3768. }
  3769. }
  3770. var stringLenmapvalue uint64
  3771. for shift := uint(0); ; shift += 7 {
  3772. if shift >= 64 {
  3773. return ErrIntOverflowSpecs
  3774. }
  3775. if iNdEx >= l {
  3776. return io.ErrUnexpectedEOF
  3777. }
  3778. b := dAtA[iNdEx]
  3779. iNdEx++
  3780. stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  3781. if b < 0x80 {
  3782. break
  3783. }
  3784. }
  3785. intStringLenmapvalue := int(stringLenmapvalue)
  3786. if intStringLenmapvalue < 0 {
  3787. return ErrInvalidLengthSpecs
  3788. }
  3789. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  3790. if postStringIndexmapvalue > l {
  3791. return io.ErrUnexpectedEOF
  3792. }
  3793. mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue])
  3794. iNdEx = postStringIndexmapvalue
  3795. m.Labels[mapkey] = mapvalue
  3796. } else {
  3797. var mapvalue string
  3798. m.Labels[mapkey] = mapvalue
  3799. }
  3800. iNdEx = postIndex
  3801. case 3:
  3802. if wireType != 2 {
  3803. return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType)
  3804. }
  3805. var stringLen uint64
  3806. for shift := uint(0); ; shift += 7 {
  3807. if shift >= 64 {
  3808. return ErrIntOverflowSpecs
  3809. }
  3810. if iNdEx >= l {
  3811. return io.ErrUnexpectedEOF
  3812. }
  3813. b := dAtA[iNdEx]
  3814. iNdEx++
  3815. stringLen |= (uint64(b) & 0x7F) << shift
  3816. if b < 0x80 {
  3817. break
  3818. }
  3819. }
  3820. intStringLen := int(stringLen)
  3821. if intStringLen < 0 {
  3822. return ErrInvalidLengthSpecs
  3823. }
  3824. postIndex := iNdEx + intStringLen
  3825. if postIndex > l {
  3826. return io.ErrUnexpectedEOF
  3827. }
  3828. m.Command = append(m.Command, string(dAtA[iNdEx:postIndex]))
  3829. iNdEx = postIndex
  3830. case 4:
  3831. if wireType != 2 {
  3832. return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
  3833. }
  3834. var stringLen uint64
  3835. for shift := uint(0); ; shift += 7 {
  3836. if shift >= 64 {
  3837. return ErrIntOverflowSpecs
  3838. }
  3839. if iNdEx >= l {
  3840. return io.ErrUnexpectedEOF
  3841. }
  3842. b := dAtA[iNdEx]
  3843. iNdEx++
  3844. stringLen |= (uint64(b) & 0x7F) << shift
  3845. if b < 0x80 {
  3846. break
  3847. }
  3848. }
  3849. intStringLen := int(stringLen)
  3850. if intStringLen < 0 {
  3851. return ErrInvalidLengthSpecs
  3852. }
  3853. postIndex := iNdEx + intStringLen
  3854. if postIndex > l {
  3855. return io.ErrUnexpectedEOF
  3856. }
  3857. m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
  3858. iNdEx = postIndex
  3859. case 5:
  3860. if wireType != 2 {
  3861. return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
  3862. }
  3863. var stringLen uint64
  3864. for shift := uint(0); ; shift += 7 {
  3865. if shift >= 64 {
  3866. return ErrIntOverflowSpecs
  3867. }
  3868. if iNdEx >= l {
  3869. return io.ErrUnexpectedEOF
  3870. }
  3871. b := dAtA[iNdEx]
  3872. iNdEx++
  3873. stringLen |= (uint64(b) & 0x7F) << shift
  3874. if b < 0x80 {
  3875. break
  3876. }
  3877. }
  3878. intStringLen := int(stringLen)
  3879. if intStringLen < 0 {
  3880. return ErrInvalidLengthSpecs
  3881. }
  3882. postIndex := iNdEx + intStringLen
  3883. if postIndex > l {
  3884. return io.ErrUnexpectedEOF
  3885. }
  3886. m.Env = append(m.Env, string(dAtA[iNdEx:postIndex]))
  3887. iNdEx = postIndex
  3888. case 6:
  3889. if wireType != 2 {
  3890. return fmt.Errorf("proto: wrong wireType = %d for field Dir", wireType)
  3891. }
  3892. var stringLen uint64
  3893. for shift := uint(0); ; shift += 7 {
  3894. if shift >= 64 {
  3895. return ErrIntOverflowSpecs
  3896. }
  3897. if iNdEx >= l {
  3898. return io.ErrUnexpectedEOF
  3899. }
  3900. b := dAtA[iNdEx]
  3901. iNdEx++
  3902. stringLen |= (uint64(b) & 0x7F) << shift
  3903. if b < 0x80 {
  3904. break
  3905. }
  3906. }
  3907. intStringLen := int(stringLen)
  3908. if intStringLen < 0 {
  3909. return ErrInvalidLengthSpecs
  3910. }
  3911. postIndex := iNdEx + intStringLen
  3912. if postIndex > l {
  3913. return io.ErrUnexpectedEOF
  3914. }
  3915. m.Dir = string(dAtA[iNdEx:postIndex])
  3916. iNdEx = postIndex
  3917. case 7:
  3918. if wireType != 2 {
  3919. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  3920. }
  3921. var stringLen uint64
  3922. for shift := uint(0); ; shift += 7 {
  3923. if shift >= 64 {
  3924. return ErrIntOverflowSpecs
  3925. }
  3926. if iNdEx >= l {
  3927. return io.ErrUnexpectedEOF
  3928. }
  3929. b := dAtA[iNdEx]
  3930. iNdEx++
  3931. stringLen |= (uint64(b) & 0x7F) << shift
  3932. if b < 0x80 {
  3933. break
  3934. }
  3935. }
  3936. intStringLen := int(stringLen)
  3937. if intStringLen < 0 {
  3938. return ErrInvalidLengthSpecs
  3939. }
  3940. postIndex := iNdEx + intStringLen
  3941. if postIndex > l {
  3942. return io.ErrUnexpectedEOF
  3943. }
  3944. m.User = string(dAtA[iNdEx:postIndex])
  3945. iNdEx = postIndex
  3946. case 8:
  3947. if wireType != 2 {
  3948. return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  3949. }
  3950. var msglen int
  3951. for shift := uint(0); ; shift += 7 {
  3952. if shift >= 64 {
  3953. return ErrIntOverflowSpecs
  3954. }
  3955. if iNdEx >= l {
  3956. return io.ErrUnexpectedEOF
  3957. }
  3958. b := dAtA[iNdEx]
  3959. iNdEx++
  3960. msglen |= (int(b) & 0x7F) << shift
  3961. if b < 0x80 {
  3962. break
  3963. }
  3964. }
  3965. if msglen < 0 {
  3966. return ErrInvalidLengthSpecs
  3967. }
  3968. postIndex := iNdEx + msglen
  3969. if postIndex > l {
  3970. return io.ErrUnexpectedEOF
  3971. }
  3972. m.Mounts = append(m.Mounts, Mount{})
  3973. if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3974. return err
  3975. }
  3976. iNdEx = postIndex
  3977. case 9:
  3978. if wireType != 2 {
  3979. return fmt.Errorf("proto: wrong wireType = %d for field StopGracePeriod", wireType)
  3980. }
  3981. var msglen int
  3982. for shift := uint(0); ; shift += 7 {
  3983. if shift >= 64 {
  3984. return ErrIntOverflowSpecs
  3985. }
  3986. if iNdEx >= l {
  3987. return io.ErrUnexpectedEOF
  3988. }
  3989. b := dAtA[iNdEx]
  3990. iNdEx++
  3991. msglen |= (int(b) & 0x7F) << shift
  3992. if b < 0x80 {
  3993. break
  3994. }
  3995. }
  3996. if msglen < 0 {
  3997. return ErrInvalidLengthSpecs
  3998. }
  3999. postIndex := iNdEx + msglen
  4000. if postIndex > l {
  4001. return io.ErrUnexpectedEOF
  4002. }
  4003. if m.StopGracePeriod == nil {
  4004. m.StopGracePeriod = &google_protobuf1.Duration{}
  4005. }
  4006. if err := m.StopGracePeriod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4007. return err
  4008. }
  4009. iNdEx = postIndex
  4010. case 10:
  4011. if wireType != 2 {
  4012. return fmt.Errorf("proto: wrong wireType = %d for field PullOptions", wireType)
  4013. }
  4014. var msglen int
  4015. for shift := uint(0); ; shift += 7 {
  4016. if shift >= 64 {
  4017. return ErrIntOverflowSpecs
  4018. }
  4019. if iNdEx >= l {
  4020. return io.ErrUnexpectedEOF
  4021. }
  4022. b := dAtA[iNdEx]
  4023. iNdEx++
  4024. msglen |= (int(b) & 0x7F) << shift
  4025. if b < 0x80 {
  4026. break
  4027. }
  4028. }
  4029. if msglen < 0 {
  4030. return ErrInvalidLengthSpecs
  4031. }
  4032. postIndex := iNdEx + msglen
  4033. if postIndex > l {
  4034. return io.ErrUnexpectedEOF
  4035. }
  4036. if m.PullOptions == nil {
  4037. m.PullOptions = &ContainerSpec_PullOptions{}
  4038. }
  4039. if err := m.PullOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4040. return err
  4041. }
  4042. iNdEx = postIndex
  4043. case 11:
  4044. if wireType != 2 {
  4045. return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  4046. }
  4047. var stringLen uint64
  4048. for shift := uint(0); ; shift += 7 {
  4049. if shift >= 64 {
  4050. return ErrIntOverflowSpecs
  4051. }
  4052. if iNdEx >= l {
  4053. return io.ErrUnexpectedEOF
  4054. }
  4055. b := dAtA[iNdEx]
  4056. iNdEx++
  4057. stringLen |= (uint64(b) & 0x7F) << shift
  4058. if b < 0x80 {
  4059. break
  4060. }
  4061. }
  4062. intStringLen := int(stringLen)
  4063. if intStringLen < 0 {
  4064. return ErrInvalidLengthSpecs
  4065. }
  4066. postIndex := iNdEx + intStringLen
  4067. if postIndex > l {
  4068. return io.ErrUnexpectedEOF
  4069. }
  4070. m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  4071. iNdEx = postIndex
  4072. case 12:
  4073. if wireType != 2 {
  4074. return fmt.Errorf("proto: wrong wireType = %d for field Secrets", wireType)
  4075. }
  4076. var msglen int
  4077. for shift := uint(0); ; shift += 7 {
  4078. if shift >= 64 {
  4079. return ErrIntOverflowSpecs
  4080. }
  4081. if iNdEx >= l {
  4082. return io.ErrUnexpectedEOF
  4083. }
  4084. b := dAtA[iNdEx]
  4085. iNdEx++
  4086. msglen |= (int(b) & 0x7F) << shift
  4087. if b < 0x80 {
  4088. break
  4089. }
  4090. }
  4091. if msglen < 0 {
  4092. return ErrInvalidLengthSpecs
  4093. }
  4094. postIndex := iNdEx + msglen
  4095. if postIndex > l {
  4096. return io.ErrUnexpectedEOF
  4097. }
  4098. m.Secrets = append(m.Secrets, &SecretReference{})
  4099. if err := m.Secrets[len(m.Secrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4100. return err
  4101. }
  4102. iNdEx = postIndex
  4103. case 13:
  4104. if wireType != 0 {
  4105. return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType)
  4106. }
  4107. var v int
  4108. for shift := uint(0); ; shift += 7 {
  4109. if shift >= 64 {
  4110. return ErrIntOverflowSpecs
  4111. }
  4112. if iNdEx >= l {
  4113. return io.ErrUnexpectedEOF
  4114. }
  4115. b := dAtA[iNdEx]
  4116. iNdEx++
  4117. v |= (int(b) & 0x7F) << shift
  4118. if b < 0x80 {
  4119. break
  4120. }
  4121. }
  4122. m.TTY = bool(v != 0)
  4123. case 14:
  4124. if wireType != 2 {
  4125. return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType)
  4126. }
  4127. var stringLen uint64
  4128. for shift := uint(0); ; shift += 7 {
  4129. if shift >= 64 {
  4130. return ErrIntOverflowSpecs
  4131. }
  4132. if iNdEx >= l {
  4133. return io.ErrUnexpectedEOF
  4134. }
  4135. b := dAtA[iNdEx]
  4136. iNdEx++
  4137. stringLen |= (uint64(b) & 0x7F) << shift
  4138. if b < 0x80 {
  4139. break
  4140. }
  4141. }
  4142. intStringLen := int(stringLen)
  4143. if intStringLen < 0 {
  4144. return ErrInvalidLengthSpecs
  4145. }
  4146. postIndex := iNdEx + intStringLen
  4147. if postIndex > l {
  4148. return io.ErrUnexpectedEOF
  4149. }
  4150. m.Hostname = string(dAtA[iNdEx:postIndex])
  4151. iNdEx = postIndex
  4152. case 15:
  4153. if wireType != 2 {
  4154. return fmt.Errorf("proto: wrong wireType = %d for field DNSConfig", wireType)
  4155. }
  4156. var msglen int
  4157. for shift := uint(0); ; shift += 7 {
  4158. if shift >= 64 {
  4159. return ErrIntOverflowSpecs
  4160. }
  4161. if iNdEx >= l {
  4162. return io.ErrUnexpectedEOF
  4163. }
  4164. b := dAtA[iNdEx]
  4165. iNdEx++
  4166. msglen |= (int(b) & 0x7F) << shift
  4167. if b < 0x80 {
  4168. break
  4169. }
  4170. }
  4171. if msglen < 0 {
  4172. return ErrInvalidLengthSpecs
  4173. }
  4174. postIndex := iNdEx + msglen
  4175. if postIndex > l {
  4176. return io.ErrUnexpectedEOF
  4177. }
  4178. if m.DNSConfig == nil {
  4179. m.DNSConfig = &ContainerSpec_DNSConfig{}
  4180. }
  4181. if err := m.DNSConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4182. return err
  4183. }
  4184. iNdEx = postIndex
  4185. case 16:
  4186. if wireType != 2 {
  4187. return fmt.Errorf("proto: wrong wireType = %d for field Healthcheck", wireType)
  4188. }
  4189. var msglen int
  4190. for shift := uint(0); ; shift += 7 {
  4191. if shift >= 64 {
  4192. return ErrIntOverflowSpecs
  4193. }
  4194. if iNdEx >= l {
  4195. return io.ErrUnexpectedEOF
  4196. }
  4197. b := dAtA[iNdEx]
  4198. iNdEx++
  4199. msglen |= (int(b) & 0x7F) << shift
  4200. if b < 0x80 {
  4201. break
  4202. }
  4203. }
  4204. if msglen < 0 {
  4205. return ErrInvalidLengthSpecs
  4206. }
  4207. postIndex := iNdEx + msglen
  4208. if postIndex > l {
  4209. return io.ErrUnexpectedEOF
  4210. }
  4211. if m.Healthcheck == nil {
  4212. m.Healthcheck = &HealthConfig{}
  4213. }
  4214. if err := m.Healthcheck.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4215. return err
  4216. }
  4217. iNdEx = postIndex
  4218. case 17:
  4219. if wireType != 2 {
  4220. return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType)
  4221. }
  4222. var stringLen uint64
  4223. for shift := uint(0); ; shift += 7 {
  4224. if shift >= 64 {
  4225. return ErrIntOverflowSpecs
  4226. }
  4227. if iNdEx >= l {
  4228. return io.ErrUnexpectedEOF
  4229. }
  4230. b := dAtA[iNdEx]
  4231. iNdEx++
  4232. stringLen |= (uint64(b) & 0x7F) << shift
  4233. if b < 0x80 {
  4234. break
  4235. }
  4236. }
  4237. intStringLen := int(stringLen)
  4238. if intStringLen < 0 {
  4239. return ErrInvalidLengthSpecs
  4240. }
  4241. postIndex := iNdEx + intStringLen
  4242. if postIndex > l {
  4243. return io.ErrUnexpectedEOF
  4244. }
  4245. m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex]))
  4246. iNdEx = postIndex
  4247. case 18:
  4248. if wireType != 0 {
  4249. return fmt.Errorf("proto: wrong wireType = %d for field OpenStdin", wireType)
  4250. }
  4251. var v int
  4252. for shift := uint(0); ; shift += 7 {
  4253. if shift >= 64 {
  4254. return ErrIntOverflowSpecs
  4255. }
  4256. if iNdEx >= l {
  4257. return io.ErrUnexpectedEOF
  4258. }
  4259. b := dAtA[iNdEx]
  4260. iNdEx++
  4261. v |= (int(b) & 0x7F) << shift
  4262. if b < 0x80 {
  4263. break
  4264. }
  4265. }
  4266. m.OpenStdin = bool(v != 0)
  4267. case 19:
  4268. if wireType != 0 {
  4269. return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
  4270. }
  4271. var v int
  4272. for shift := uint(0); ; shift += 7 {
  4273. if shift >= 64 {
  4274. return ErrIntOverflowSpecs
  4275. }
  4276. if iNdEx >= l {
  4277. return io.ErrUnexpectedEOF
  4278. }
  4279. b := dAtA[iNdEx]
  4280. iNdEx++
  4281. v |= (int(b) & 0x7F) << shift
  4282. if b < 0x80 {
  4283. break
  4284. }
  4285. }
  4286. m.ReadOnly = bool(v != 0)
  4287. case 20:
  4288. if wireType != 2 {
  4289. return fmt.Errorf("proto: wrong wireType = %d for field StopSignal", wireType)
  4290. }
  4291. var stringLen uint64
  4292. for shift := uint(0); ; shift += 7 {
  4293. if shift >= 64 {
  4294. return ErrIntOverflowSpecs
  4295. }
  4296. if iNdEx >= l {
  4297. return io.ErrUnexpectedEOF
  4298. }
  4299. b := dAtA[iNdEx]
  4300. iNdEx++
  4301. stringLen |= (uint64(b) & 0x7F) << shift
  4302. if b < 0x80 {
  4303. break
  4304. }
  4305. }
  4306. intStringLen := int(stringLen)
  4307. if intStringLen < 0 {
  4308. return ErrInvalidLengthSpecs
  4309. }
  4310. postIndex := iNdEx + intStringLen
  4311. if postIndex > l {
  4312. return io.ErrUnexpectedEOF
  4313. }
  4314. m.StopSignal = string(dAtA[iNdEx:postIndex])
  4315. iNdEx = postIndex
  4316. default:
  4317. iNdEx = preIndex
  4318. skippy, err := skipSpecs(dAtA[iNdEx:])
  4319. if err != nil {
  4320. return err
  4321. }
  4322. if skippy < 0 {
  4323. return ErrInvalidLengthSpecs
  4324. }
  4325. if (iNdEx + skippy) > l {
  4326. return io.ErrUnexpectedEOF
  4327. }
  4328. iNdEx += skippy
  4329. }
  4330. }
  4331. if iNdEx > l {
  4332. return io.ErrUnexpectedEOF
  4333. }
  4334. return nil
  4335. }
  4336. func (m *ContainerSpec_PullOptions) Unmarshal(dAtA []byte) error {
  4337. l := len(dAtA)
  4338. iNdEx := 0
  4339. for iNdEx < l {
  4340. preIndex := iNdEx
  4341. var wire uint64
  4342. for shift := uint(0); ; shift += 7 {
  4343. if shift >= 64 {
  4344. return ErrIntOverflowSpecs
  4345. }
  4346. if iNdEx >= l {
  4347. return io.ErrUnexpectedEOF
  4348. }
  4349. b := dAtA[iNdEx]
  4350. iNdEx++
  4351. wire |= (uint64(b) & 0x7F) << shift
  4352. if b < 0x80 {
  4353. break
  4354. }
  4355. }
  4356. fieldNum := int32(wire >> 3)
  4357. wireType := int(wire & 0x7)
  4358. if wireType == 4 {
  4359. return fmt.Errorf("proto: PullOptions: wiretype end group for non-group")
  4360. }
  4361. if fieldNum <= 0 {
  4362. return fmt.Errorf("proto: PullOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  4363. }
  4364. switch fieldNum {
  4365. case 64:
  4366. if wireType != 2 {
  4367. return fmt.Errorf("proto: wrong wireType = %d for field RegistryAuth", wireType)
  4368. }
  4369. var stringLen uint64
  4370. for shift := uint(0); ; shift += 7 {
  4371. if shift >= 64 {
  4372. return ErrIntOverflowSpecs
  4373. }
  4374. if iNdEx >= l {
  4375. return io.ErrUnexpectedEOF
  4376. }
  4377. b := dAtA[iNdEx]
  4378. iNdEx++
  4379. stringLen |= (uint64(b) & 0x7F) << shift
  4380. if b < 0x80 {
  4381. break
  4382. }
  4383. }
  4384. intStringLen := int(stringLen)
  4385. if intStringLen < 0 {
  4386. return ErrInvalidLengthSpecs
  4387. }
  4388. postIndex := iNdEx + intStringLen
  4389. if postIndex > l {
  4390. return io.ErrUnexpectedEOF
  4391. }
  4392. m.RegistryAuth = string(dAtA[iNdEx:postIndex])
  4393. iNdEx = postIndex
  4394. default:
  4395. iNdEx = preIndex
  4396. skippy, err := skipSpecs(dAtA[iNdEx:])
  4397. if err != nil {
  4398. return err
  4399. }
  4400. if skippy < 0 {
  4401. return ErrInvalidLengthSpecs
  4402. }
  4403. if (iNdEx + skippy) > l {
  4404. return io.ErrUnexpectedEOF
  4405. }
  4406. iNdEx += skippy
  4407. }
  4408. }
  4409. if iNdEx > l {
  4410. return io.ErrUnexpectedEOF
  4411. }
  4412. return nil
  4413. }
  4414. func (m *ContainerSpec_DNSConfig) Unmarshal(dAtA []byte) error {
  4415. l := len(dAtA)
  4416. iNdEx := 0
  4417. for iNdEx < l {
  4418. preIndex := iNdEx
  4419. var wire uint64
  4420. for shift := uint(0); ; shift += 7 {
  4421. if shift >= 64 {
  4422. return ErrIntOverflowSpecs
  4423. }
  4424. if iNdEx >= l {
  4425. return io.ErrUnexpectedEOF
  4426. }
  4427. b := dAtA[iNdEx]
  4428. iNdEx++
  4429. wire |= (uint64(b) & 0x7F) << shift
  4430. if b < 0x80 {
  4431. break
  4432. }
  4433. }
  4434. fieldNum := int32(wire >> 3)
  4435. wireType := int(wire & 0x7)
  4436. if wireType == 4 {
  4437. return fmt.Errorf("proto: DNSConfig: wiretype end group for non-group")
  4438. }
  4439. if fieldNum <= 0 {
  4440. return fmt.Errorf("proto: DNSConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  4441. }
  4442. switch fieldNum {
  4443. case 1:
  4444. if wireType != 2 {
  4445. return fmt.Errorf("proto: wrong wireType = %d for field Nameservers", wireType)
  4446. }
  4447. var stringLen uint64
  4448. for shift := uint(0); ; shift += 7 {
  4449. if shift >= 64 {
  4450. return ErrIntOverflowSpecs
  4451. }
  4452. if iNdEx >= l {
  4453. return io.ErrUnexpectedEOF
  4454. }
  4455. b := dAtA[iNdEx]
  4456. iNdEx++
  4457. stringLen |= (uint64(b) & 0x7F) << shift
  4458. if b < 0x80 {
  4459. break
  4460. }
  4461. }
  4462. intStringLen := int(stringLen)
  4463. if intStringLen < 0 {
  4464. return ErrInvalidLengthSpecs
  4465. }
  4466. postIndex := iNdEx + intStringLen
  4467. if postIndex > l {
  4468. return io.ErrUnexpectedEOF
  4469. }
  4470. m.Nameservers = append(m.Nameservers, string(dAtA[iNdEx:postIndex]))
  4471. iNdEx = postIndex
  4472. case 2:
  4473. if wireType != 2 {
  4474. return fmt.Errorf("proto: wrong wireType = %d for field Search", wireType)
  4475. }
  4476. var stringLen uint64
  4477. for shift := uint(0); ; shift += 7 {
  4478. if shift >= 64 {
  4479. return ErrIntOverflowSpecs
  4480. }
  4481. if iNdEx >= l {
  4482. return io.ErrUnexpectedEOF
  4483. }
  4484. b := dAtA[iNdEx]
  4485. iNdEx++
  4486. stringLen |= (uint64(b) & 0x7F) << shift
  4487. if b < 0x80 {
  4488. break
  4489. }
  4490. }
  4491. intStringLen := int(stringLen)
  4492. if intStringLen < 0 {
  4493. return ErrInvalidLengthSpecs
  4494. }
  4495. postIndex := iNdEx + intStringLen
  4496. if postIndex > l {
  4497. return io.ErrUnexpectedEOF
  4498. }
  4499. m.Search = append(m.Search, string(dAtA[iNdEx:postIndex]))
  4500. iNdEx = postIndex
  4501. case 3:
  4502. if wireType != 2 {
  4503. return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  4504. }
  4505. var stringLen uint64
  4506. for shift := uint(0); ; shift += 7 {
  4507. if shift >= 64 {
  4508. return ErrIntOverflowSpecs
  4509. }
  4510. if iNdEx >= l {
  4511. return io.ErrUnexpectedEOF
  4512. }
  4513. b := dAtA[iNdEx]
  4514. iNdEx++
  4515. stringLen |= (uint64(b) & 0x7F) << shift
  4516. if b < 0x80 {
  4517. break
  4518. }
  4519. }
  4520. intStringLen := int(stringLen)
  4521. if intStringLen < 0 {
  4522. return ErrInvalidLengthSpecs
  4523. }
  4524. postIndex := iNdEx + intStringLen
  4525. if postIndex > l {
  4526. return io.ErrUnexpectedEOF
  4527. }
  4528. m.Options = append(m.Options, string(dAtA[iNdEx:postIndex]))
  4529. iNdEx = postIndex
  4530. default:
  4531. iNdEx = preIndex
  4532. skippy, err := skipSpecs(dAtA[iNdEx:])
  4533. if err != nil {
  4534. return err
  4535. }
  4536. if skippy < 0 {
  4537. return ErrInvalidLengthSpecs
  4538. }
  4539. if (iNdEx + skippy) > l {
  4540. return io.ErrUnexpectedEOF
  4541. }
  4542. iNdEx += skippy
  4543. }
  4544. }
  4545. if iNdEx > l {
  4546. return io.ErrUnexpectedEOF
  4547. }
  4548. return nil
  4549. }
  4550. func (m *EndpointSpec) Unmarshal(dAtA []byte) error {
  4551. l := len(dAtA)
  4552. iNdEx := 0
  4553. for iNdEx < l {
  4554. preIndex := iNdEx
  4555. var wire uint64
  4556. for shift := uint(0); ; shift += 7 {
  4557. if shift >= 64 {
  4558. return ErrIntOverflowSpecs
  4559. }
  4560. if iNdEx >= l {
  4561. return io.ErrUnexpectedEOF
  4562. }
  4563. b := dAtA[iNdEx]
  4564. iNdEx++
  4565. wire |= (uint64(b) & 0x7F) << shift
  4566. if b < 0x80 {
  4567. break
  4568. }
  4569. }
  4570. fieldNum := int32(wire >> 3)
  4571. wireType := int(wire & 0x7)
  4572. if wireType == 4 {
  4573. return fmt.Errorf("proto: EndpointSpec: wiretype end group for non-group")
  4574. }
  4575. if fieldNum <= 0 {
  4576. return fmt.Errorf("proto: EndpointSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4577. }
  4578. switch fieldNum {
  4579. case 1:
  4580. if wireType != 0 {
  4581. return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  4582. }
  4583. m.Mode = 0
  4584. for shift := uint(0); ; shift += 7 {
  4585. if shift >= 64 {
  4586. return ErrIntOverflowSpecs
  4587. }
  4588. if iNdEx >= l {
  4589. return io.ErrUnexpectedEOF
  4590. }
  4591. b := dAtA[iNdEx]
  4592. iNdEx++
  4593. m.Mode |= (EndpointSpec_ResolutionMode(b) & 0x7F) << shift
  4594. if b < 0x80 {
  4595. break
  4596. }
  4597. }
  4598. case 2:
  4599. if wireType != 2 {
  4600. return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
  4601. }
  4602. var msglen int
  4603. for shift := uint(0); ; shift += 7 {
  4604. if shift >= 64 {
  4605. return ErrIntOverflowSpecs
  4606. }
  4607. if iNdEx >= l {
  4608. return io.ErrUnexpectedEOF
  4609. }
  4610. b := dAtA[iNdEx]
  4611. iNdEx++
  4612. msglen |= (int(b) & 0x7F) << shift
  4613. if b < 0x80 {
  4614. break
  4615. }
  4616. }
  4617. if msglen < 0 {
  4618. return ErrInvalidLengthSpecs
  4619. }
  4620. postIndex := iNdEx + msglen
  4621. if postIndex > l {
  4622. return io.ErrUnexpectedEOF
  4623. }
  4624. m.Ports = append(m.Ports, &PortConfig{})
  4625. if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4626. return err
  4627. }
  4628. iNdEx = postIndex
  4629. default:
  4630. iNdEx = preIndex
  4631. skippy, err := skipSpecs(dAtA[iNdEx:])
  4632. if err != nil {
  4633. return err
  4634. }
  4635. if skippy < 0 {
  4636. return ErrInvalidLengthSpecs
  4637. }
  4638. if (iNdEx + skippy) > l {
  4639. return io.ErrUnexpectedEOF
  4640. }
  4641. iNdEx += skippy
  4642. }
  4643. }
  4644. if iNdEx > l {
  4645. return io.ErrUnexpectedEOF
  4646. }
  4647. return nil
  4648. }
  4649. func (m *NetworkSpec) Unmarshal(dAtA []byte) error {
  4650. l := len(dAtA)
  4651. iNdEx := 0
  4652. for iNdEx < l {
  4653. preIndex := iNdEx
  4654. var wire uint64
  4655. for shift := uint(0); ; shift += 7 {
  4656. if shift >= 64 {
  4657. return ErrIntOverflowSpecs
  4658. }
  4659. if iNdEx >= l {
  4660. return io.ErrUnexpectedEOF
  4661. }
  4662. b := dAtA[iNdEx]
  4663. iNdEx++
  4664. wire |= (uint64(b) & 0x7F) << shift
  4665. if b < 0x80 {
  4666. break
  4667. }
  4668. }
  4669. fieldNum := int32(wire >> 3)
  4670. wireType := int(wire & 0x7)
  4671. if wireType == 4 {
  4672. return fmt.Errorf("proto: NetworkSpec: wiretype end group for non-group")
  4673. }
  4674. if fieldNum <= 0 {
  4675. return fmt.Errorf("proto: NetworkSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4676. }
  4677. switch fieldNum {
  4678. case 1:
  4679. if wireType != 2 {
  4680. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  4681. }
  4682. var msglen int
  4683. for shift := uint(0); ; shift += 7 {
  4684. if shift >= 64 {
  4685. return ErrIntOverflowSpecs
  4686. }
  4687. if iNdEx >= l {
  4688. return io.ErrUnexpectedEOF
  4689. }
  4690. b := dAtA[iNdEx]
  4691. iNdEx++
  4692. msglen |= (int(b) & 0x7F) << shift
  4693. if b < 0x80 {
  4694. break
  4695. }
  4696. }
  4697. if msglen < 0 {
  4698. return ErrInvalidLengthSpecs
  4699. }
  4700. postIndex := iNdEx + msglen
  4701. if postIndex > l {
  4702. return io.ErrUnexpectedEOF
  4703. }
  4704. if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4705. return err
  4706. }
  4707. iNdEx = postIndex
  4708. case 2:
  4709. if wireType != 2 {
  4710. return fmt.Errorf("proto: wrong wireType = %d for field DriverConfig", wireType)
  4711. }
  4712. var msglen int
  4713. for shift := uint(0); ; shift += 7 {
  4714. if shift >= 64 {
  4715. return ErrIntOverflowSpecs
  4716. }
  4717. if iNdEx >= l {
  4718. return io.ErrUnexpectedEOF
  4719. }
  4720. b := dAtA[iNdEx]
  4721. iNdEx++
  4722. msglen |= (int(b) & 0x7F) << shift
  4723. if b < 0x80 {
  4724. break
  4725. }
  4726. }
  4727. if msglen < 0 {
  4728. return ErrInvalidLengthSpecs
  4729. }
  4730. postIndex := iNdEx + msglen
  4731. if postIndex > l {
  4732. return io.ErrUnexpectedEOF
  4733. }
  4734. if m.DriverConfig == nil {
  4735. m.DriverConfig = &Driver{}
  4736. }
  4737. if err := m.DriverConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4738. return err
  4739. }
  4740. iNdEx = postIndex
  4741. case 3:
  4742. if wireType != 0 {
  4743. return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Enabled", wireType)
  4744. }
  4745. var v int
  4746. for shift := uint(0); ; shift += 7 {
  4747. if shift >= 64 {
  4748. return ErrIntOverflowSpecs
  4749. }
  4750. if iNdEx >= l {
  4751. return io.ErrUnexpectedEOF
  4752. }
  4753. b := dAtA[iNdEx]
  4754. iNdEx++
  4755. v |= (int(b) & 0x7F) << shift
  4756. if b < 0x80 {
  4757. break
  4758. }
  4759. }
  4760. m.Ipv6Enabled = bool(v != 0)
  4761. case 4:
  4762. if wireType != 0 {
  4763. return fmt.Errorf("proto: wrong wireType = %d for field Internal", wireType)
  4764. }
  4765. var v int
  4766. for shift := uint(0); ; shift += 7 {
  4767. if shift >= 64 {
  4768. return ErrIntOverflowSpecs
  4769. }
  4770. if iNdEx >= l {
  4771. return io.ErrUnexpectedEOF
  4772. }
  4773. b := dAtA[iNdEx]
  4774. iNdEx++
  4775. v |= (int(b) & 0x7F) << shift
  4776. if b < 0x80 {
  4777. break
  4778. }
  4779. }
  4780. m.Internal = bool(v != 0)
  4781. case 5:
  4782. if wireType != 2 {
  4783. return fmt.Errorf("proto: wrong wireType = %d for field IPAM", wireType)
  4784. }
  4785. var msglen int
  4786. for shift := uint(0); ; shift += 7 {
  4787. if shift >= 64 {
  4788. return ErrIntOverflowSpecs
  4789. }
  4790. if iNdEx >= l {
  4791. return io.ErrUnexpectedEOF
  4792. }
  4793. b := dAtA[iNdEx]
  4794. iNdEx++
  4795. msglen |= (int(b) & 0x7F) << shift
  4796. if b < 0x80 {
  4797. break
  4798. }
  4799. }
  4800. if msglen < 0 {
  4801. return ErrInvalidLengthSpecs
  4802. }
  4803. postIndex := iNdEx + msglen
  4804. if postIndex > l {
  4805. return io.ErrUnexpectedEOF
  4806. }
  4807. if m.IPAM == nil {
  4808. m.IPAM = &IPAMOptions{}
  4809. }
  4810. if err := m.IPAM.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4811. return err
  4812. }
  4813. iNdEx = postIndex
  4814. case 6:
  4815. if wireType != 0 {
  4816. return fmt.Errorf("proto: wrong wireType = %d for field Attachable", wireType)
  4817. }
  4818. var v int
  4819. for shift := uint(0); ; shift += 7 {
  4820. if shift >= 64 {
  4821. return ErrIntOverflowSpecs
  4822. }
  4823. if iNdEx >= l {
  4824. return io.ErrUnexpectedEOF
  4825. }
  4826. b := dAtA[iNdEx]
  4827. iNdEx++
  4828. v |= (int(b) & 0x7F) << shift
  4829. if b < 0x80 {
  4830. break
  4831. }
  4832. }
  4833. m.Attachable = bool(v != 0)
  4834. case 7:
  4835. if wireType != 0 {
  4836. return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType)
  4837. }
  4838. var v int
  4839. for shift := uint(0); ; shift += 7 {
  4840. if shift >= 64 {
  4841. return ErrIntOverflowSpecs
  4842. }
  4843. if iNdEx >= l {
  4844. return io.ErrUnexpectedEOF
  4845. }
  4846. b := dAtA[iNdEx]
  4847. iNdEx++
  4848. v |= (int(b) & 0x7F) << shift
  4849. if b < 0x80 {
  4850. break
  4851. }
  4852. }
  4853. m.Ingress = bool(v != 0)
  4854. default:
  4855. iNdEx = preIndex
  4856. skippy, err := skipSpecs(dAtA[iNdEx:])
  4857. if err != nil {
  4858. return err
  4859. }
  4860. if skippy < 0 {
  4861. return ErrInvalidLengthSpecs
  4862. }
  4863. if (iNdEx + skippy) > l {
  4864. return io.ErrUnexpectedEOF
  4865. }
  4866. iNdEx += skippy
  4867. }
  4868. }
  4869. if iNdEx > l {
  4870. return io.ErrUnexpectedEOF
  4871. }
  4872. return nil
  4873. }
  4874. func (m *ClusterSpec) Unmarshal(dAtA []byte) error {
  4875. l := len(dAtA)
  4876. iNdEx := 0
  4877. for iNdEx < l {
  4878. preIndex := iNdEx
  4879. var wire uint64
  4880. for shift := uint(0); ; shift += 7 {
  4881. if shift >= 64 {
  4882. return ErrIntOverflowSpecs
  4883. }
  4884. if iNdEx >= l {
  4885. return io.ErrUnexpectedEOF
  4886. }
  4887. b := dAtA[iNdEx]
  4888. iNdEx++
  4889. wire |= (uint64(b) & 0x7F) << shift
  4890. if b < 0x80 {
  4891. break
  4892. }
  4893. }
  4894. fieldNum := int32(wire >> 3)
  4895. wireType := int(wire & 0x7)
  4896. if wireType == 4 {
  4897. return fmt.Errorf("proto: ClusterSpec: wiretype end group for non-group")
  4898. }
  4899. if fieldNum <= 0 {
  4900. return fmt.Errorf("proto: ClusterSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4901. }
  4902. switch fieldNum {
  4903. case 1:
  4904. if wireType != 2 {
  4905. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  4906. }
  4907. var msglen int
  4908. for shift := uint(0); ; shift += 7 {
  4909. if shift >= 64 {
  4910. return ErrIntOverflowSpecs
  4911. }
  4912. if iNdEx >= l {
  4913. return io.ErrUnexpectedEOF
  4914. }
  4915. b := dAtA[iNdEx]
  4916. iNdEx++
  4917. msglen |= (int(b) & 0x7F) << shift
  4918. if b < 0x80 {
  4919. break
  4920. }
  4921. }
  4922. if msglen < 0 {
  4923. return ErrInvalidLengthSpecs
  4924. }
  4925. postIndex := iNdEx + msglen
  4926. if postIndex > l {
  4927. return io.ErrUnexpectedEOF
  4928. }
  4929. if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4930. return err
  4931. }
  4932. iNdEx = postIndex
  4933. case 2:
  4934. if wireType != 2 {
  4935. return fmt.Errorf("proto: wrong wireType = %d for field AcceptancePolicy", wireType)
  4936. }
  4937. var msglen int
  4938. for shift := uint(0); ; shift += 7 {
  4939. if shift >= 64 {
  4940. return ErrIntOverflowSpecs
  4941. }
  4942. if iNdEx >= l {
  4943. return io.ErrUnexpectedEOF
  4944. }
  4945. b := dAtA[iNdEx]
  4946. iNdEx++
  4947. msglen |= (int(b) & 0x7F) << shift
  4948. if b < 0x80 {
  4949. break
  4950. }
  4951. }
  4952. if msglen < 0 {
  4953. return ErrInvalidLengthSpecs
  4954. }
  4955. postIndex := iNdEx + msglen
  4956. if postIndex > l {
  4957. return io.ErrUnexpectedEOF
  4958. }
  4959. if err := m.AcceptancePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4960. return err
  4961. }
  4962. iNdEx = postIndex
  4963. case 3:
  4964. if wireType != 2 {
  4965. return fmt.Errorf("proto: wrong wireType = %d for field Orchestration", wireType)
  4966. }
  4967. var msglen int
  4968. for shift := uint(0); ; shift += 7 {
  4969. if shift >= 64 {
  4970. return ErrIntOverflowSpecs
  4971. }
  4972. if iNdEx >= l {
  4973. return io.ErrUnexpectedEOF
  4974. }
  4975. b := dAtA[iNdEx]
  4976. iNdEx++
  4977. msglen |= (int(b) & 0x7F) << shift
  4978. if b < 0x80 {
  4979. break
  4980. }
  4981. }
  4982. if msglen < 0 {
  4983. return ErrInvalidLengthSpecs
  4984. }
  4985. postIndex := iNdEx + msglen
  4986. if postIndex > l {
  4987. return io.ErrUnexpectedEOF
  4988. }
  4989. if err := m.Orchestration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4990. return err
  4991. }
  4992. iNdEx = postIndex
  4993. case 4:
  4994. if wireType != 2 {
  4995. return fmt.Errorf("proto: wrong wireType = %d for field Raft", wireType)
  4996. }
  4997. var msglen int
  4998. for shift := uint(0); ; shift += 7 {
  4999. if shift >= 64 {
  5000. return ErrIntOverflowSpecs
  5001. }
  5002. if iNdEx >= l {
  5003. return io.ErrUnexpectedEOF
  5004. }
  5005. b := dAtA[iNdEx]
  5006. iNdEx++
  5007. msglen |= (int(b) & 0x7F) << shift
  5008. if b < 0x80 {
  5009. break
  5010. }
  5011. }
  5012. if msglen < 0 {
  5013. return ErrInvalidLengthSpecs
  5014. }
  5015. postIndex := iNdEx + msglen
  5016. if postIndex > l {
  5017. return io.ErrUnexpectedEOF
  5018. }
  5019. if err := m.Raft.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5020. return err
  5021. }
  5022. iNdEx = postIndex
  5023. case 5:
  5024. if wireType != 2 {
  5025. return fmt.Errorf("proto: wrong wireType = %d for field Dispatcher", wireType)
  5026. }
  5027. var msglen int
  5028. for shift := uint(0); ; shift += 7 {
  5029. if shift >= 64 {
  5030. return ErrIntOverflowSpecs
  5031. }
  5032. if iNdEx >= l {
  5033. return io.ErrUnexpectedEOF
  5034. }
  5035. b := dAtA[iNdEx]
  5036. iNdEx++
  5037. msglen |= (int(b) & 0x7F) << shift
  5038. if b < 0x80 {
  5039. break
  5040. }
  5041. }
  5042. if msglen < 0 {
  5043. return ErrInvalidLengthSpecs
  5044. }
  5045. postIndex := iNdEx + msglen
  5046. if postIndex > l {
  5047. return io.ErrUnexpectedEOF
  5048. }
  5049. if err := m.Dispatcher.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5050. return err
  5051. }
  5052. iNdEx = postIndex
  5053. case 6:
  5054. if wireType != 2 {
  5055. return fmt.Errorf("proto: wrong wireType = %d for field CAConfig", wireType)
  5056. }
  5057. var msglen int
  5058. for shift := uint(0); ; shift += 7 {
  5059. if shift >= 64 {
  5060. return ErrIntOverflowSpecs
  5061. }
  5062. if iNdEx >= l {
  5063. return io.ErrUnexpectedEOF
  5064. }
  5065. b := dAtA[iNdEx]
  5066. iNdEx++
  5067. msglen |= (int(b) & 0x7F) << shift
  5068. if b < 0x80 {
  5069. break
  5070. }
  5071. }
  5072. if msglen < 0 {
  5073. return ErrInvalidLengthSpecs
  5074. }
  5075. postIndex := iNdEx + msglen
  5076. if postIndex > l {
  5077. return io.ErrUnexpectedEOF
  5078. }
  5079. if err := m.CAConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5080. return err
  5081. }
  5082. iNdEx = postIndex
  5083. case 7:
  5084. if wireType != 2 {
  5085. return fmt.Errorf("proto: wrong wireType = %d for field TaskDefaults", wireType)
  5086. }
  5087. var msglen int
  5088. for shift := uint(0); ; shift += 7 {
  5089. if shift >= 64 {
  5090. return ErrIntOverflowSpecs
  5091. }
  5092. if iNdEx >= l {
  5093. return io.ErrUnexpectedEOF
  5094. }
  5095. b := dAtA[iNdEx]
  5096. iNdEx++
  5097. msglen |= (int(b) & 0x7F) << shift
  5098. if b < 0x80 {
  5099. break
  5100. }
  5101. }
  5102. if msglen < 0 {
  5103. return ErrInvalidLengthSpecs
  5104. }
  5105. postIndex := iNdEx + msglen
  5106. if postIndex > l {
  5107. return io.ErrUnexpectedEOF
  5108. }
  5109. if err := m.TaskDefaults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5110. return err
  5111. }
  5112. iNdEx = postIndex
  5113. case 8:
  5114. if wireType != 2 {
  5115. return fmt.Errorf("proto: wrong wireType = %d for field EncryptionConfig", wireType)
  5116. }
  5117. var msglen int
  5118. for shift := uint(0); ; shift += 7 {
  5119. if shift >= 64 {
  5120. return ErrIntOverflowSpecs
  5121. }
  5122. if iNdEx >= l {
  5123. return io.ErrUnexpectedEOF
  5124. }
  5125. b := dAtA[iNdEx]
  5126. iNdEx++
  5127. msglen |= (int(b) & 0x7F) << shift
  5128. if b < 0x80 {
  5129. break
  5130. }
  5131. }
  5132. if msglen < 0 {
  5133. return ErrInvalidLengthSpecs
  5134. }
  5135. postIndex := iNdEx + msglen
  5136. if postIndex > l {
  5137. return io.ErrUnexpectedEOF
  5138. }
  5139. if err := m.EncryptionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5140. return err
  5141. }
  5142. iNdEx = postIndex
  5143. default:
  5144. iNdEx = preIndex
  5145. skippy, err := skipSpecs(dAtA[iNdEx:])
  5146. if err != nil {
  5147. return err
  5148. }
  5149. if skippy < 0 {
  5150. return ErrInvalidLengthSpecs
  5151. }
  5152. if (iNdEx + skippy) > l {
  5153. return io.ErrUnexpectedEOF
  5154. }
  5155. iNdEx += skippy
  5156. }
  5157. }
  5158. if iNdEx > l {
  5159. return io.ErrUnexpectedEOF
  5160. }
  5161. return nil
  5162. }
  5163. func (m *SecretSpec) Unmarshal(dAtA []byte) error {
  5164. l := len(dAtA)
  5165. iNdEx := 0
  5166. for iNdEx < l {
  5167. preIndex := iNdEx
  5168. var wire uint64
  5169. for shift := uint(0); ; shift += 7 {
  5170. if shift >= 64 {
  5171. return ErrIntOverflowSpecs
  5172. }
  5173. if iNdEx >= l {
  5174. return io.ErrUnexpectedEOF
  5175. }
  5176. b := dAtA[iNdEx]
  5177. iNdEx++
  5178. wire |= (uint64(b) & 0x7F) << shift
  5179. if b < 0x80 {
  5180. break
  5181. }
  5182. }
  5183. fieldNum := int32(wire >> 3)
  5184. wireType := int(wire & 0x7)
  5185. if wireType == 4 {
  5186. return fmt.Errorf("proto: SecretSpec: wiretype end group for non-group")
  5187. }
  5188. if fieldNum <= 0 {
  5189. return fmt.Errorf("proto: SecretSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  5190. }
  5191. switch fieldNum {
  5192. case 1:
  5193. if wireType != 2 {
  5194. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  5195. }
  5196. var msglen int
  5197. for shift := uint(0); ; shift += 7 {
  5198. if shift >= 64 {
  5199. return ErrIntOverflowSpecs
  5200. }
  5201. if iNdEx >= l {
  5202. return io.ErrUnexpectedEOF
  5203. }
  5204. b := dAtA[iNdEx]
  5205. iNdEx++
  5206. msglen |= (int(b) & 0x7F) << shift
  5207. if b < 0x80 {
  5208. break
  5209. }
  5210. }
  5211. if msglen < 0 {
  5212. return ErrInvalidLengthSpecs
  5213. }
  5214. postIndex := iNdEx + msglen
  5215. if postIndex > l {
  5216. return io.ErrUnexpectedEOF
  5217. }
  5218. if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5219. return err
  5220. }
  5221. iNdEx = postIndex
  5222. case 2:
  5223. if wireType != 2 {
  5224. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  5225. }
  5226. var byteLen int
  5227. for shift := uint(0); ; shift += 7 {
  5228. if shift >= 64 {
  5229. return ErrIntOverflowSpecs
  5230. }
  5231. if iNdEx >= l {
  5232. return io.ErrUnexpectedEOF
  5233. }
  5234. b := dAtA[iNdEx]
  5235. iNdEx++
  5236. byteLen |= (int(b) & 0x7F) << shift
  5237. if b < 0x80 {
  5238. break
  5239. }
  5240. }
  5241. if byteLen < 0 {
  5242. return ErrInvalidLengthSpecs
  5243. }
  5244. postIndex := iNdEx + byteLen
  5245. if postIndex > l {
  5246. return io.ErrUnexpectedEOF
  5247. }
  5248. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  5249. if m.Data == nil {
  5250. m.Data = []byte{}
  5251. }
  5252. iNdEx = postIndex
  5253. default:
  5254. iNdEx = preIndex
  5255. skippy, err := skipSpecs(dAtA[iNdEx:])
  5256. if err != nil {
  5257. return err
  5258. }
  5259. if skippy < 0 {
  5260. return ErrInvalidLengthSpecs
  5261. }
  5262. if (iNdEx + skippy) > l {
  5263. return io.ErrUnexpectedEOF
  5264. }
  5265. iNdEx += skippy
  5266. }
  5267. }
  5268. if iNdEx > l {
  5269. return io.ErrUnexpectedEOF
  5270. }
  5271. return nil
  5272. }
  5273. func skipSpecs(dAtA []byte) (n int, err error) {
  5274. l := len(dAtA)
  5275. iNdEx := 0
  5276. for iNdEx < l {
  5277. var wire uint64
  5278. for shift := uint(0); ; shift += 7 {
  5279. if shift >= 64 {
  5280. return 0, ErrIntOverflowSpecs
  5281. }
  5282. if iNdEx >= l {
  5283. return 0, io.ErrUnexpectedEOF
  5284. }
  5285. b := dAtA[iNdEx]
  5286. iNdEx++
  5287. wire |= (uint64(b) & 0x7F) << shift
  5288. if b < 0x80 {
  5289. break
  5290. }
  5291. }
  5292. wireType := int(wire & 0x7)
  5293. switch wireType {
  5294. case 0:
  5295. for shift := uint(0); ; shift += 7 {
  5296. if shift >= 64 {
  5297. return 0, ErrIntOverflowSpecs
  5298. }
  5299. if iNdEx >= l {
  5300. return 0, io.ErrUnexpectedEOF
  5301. }
  5302. iNdEx++
  5303. if dAtA[iNdEx-1] < 0x80 {
  5304. break
  5305. }
  5306. }
  5307. return iNdEx, nil
  5308. case 1:
  5309. iNdEx += 8
  5310. return iNdEx, nil
  5311. case 2:
  5312. var length int
  5313. for shift := uint(0); ; shift += 7 {
  5314. if shift >= 64 {
  5315. return 0, ErrIntOverflowSpecs
  5316. }
  5317. if iNdEx >= l {
  5318. return 0, io.ErrUnexpectedEOF
  5319. }
  5320. b := dAtA[iNdEx]
  5321. iNdEx++
  5322. length |= (int(b) & 0x7F) << shift
  5323. if b < 0x80 {
  5324. break
  5325. }
  5326. }
  5327. iNdEx += length
  5328. if length < 0 {
  5329. return 0, ErrInvalidLengthSpecs
  5330. }
  5331. return iNdEx, nil
  5332. case 3:
  5333. for {
  5334. var innerWire uint64
  5335. var start int = iNdEx
  5336. for shift := uint(0); ; shift += 7 {
  5337. if shift >= 64 {
  5338. return 0, ErrIntOverflowSpecs
  5339. }
  5340. if iNdEx >= l {
  5341. return 0, io.ErrUnexpectedEOF
  5342. }
  5343. b := dAtA[iNdEx]
  5344. iNdEx++
  5345. innerWire |= (uint64(b) & 0x7F) << shift
  5346. if b < 0x80 {
  5347. break
  5348. }
  5349. }
  5350. innerWireType := int(innerWire & 0x7)
  5351. if innerWireType == 4 {
  5352. break
  5353. }
  5354. next, err := skipSpecs(dAtA[start:])
  5355. if err != nil {
  5356. return 0, err
  5357. }
  5358. iNdEx = start + next
  5359. }
  5360. return iNdEx, nil
  5361. case 4:
  5362. return iNdEx, nil
  5363. case 5:
  5364. iNdEx += 4
  5365. return iNdEx, nil
  5366. default:
  5367. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5368. }
  5369. }
  5370. panic("unreachable")
  5371. }
  5372. var (
  5373. ErrInvalidLengthSpecs = fmt.Errorf("proto: negative length found during unmarshaling")
  5374. ErrIntOverflowSpecs = fmt.Errorf("proto: integer overflow")
  5375. )
  5376. func init() { proto.RegisterFile("specs.proto", fileDescriptorSpecs) }
  5377. var fileDescriptorSpecs = []byte{
  5378. // 1779 bytes of a gzipped FileDescriptorProto
  5379. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x57, 0x41, 0x73, 0x1b, 0x49,
  5380. 0x15, 0xb6, 0x6c, 0x59, 0x1a, 0xbd, 0x91, 0x13, 0xb9, 0xc9, 0x2e, 0x63, 0x85, 0x95, 0x15, 0x6d,
  5381. 0x08, 0x5e, 0xb6, 0x90, 0x0b, 0x43, 0x2d, 0x59, 0xc2, 0x16, 0x48, 0x96, 0x70, 0x8c, 0xb1, 0xa3,
  5382. 0x6a, 0x7b, 0x03, 0x39, 0xa9, 0xda, 0x33, 0x6d, 0x69, 0xca, 0xa3, 0xee, 0xa1, 0xa7, 0xc7, 0x5b,
  5383. 0xba, 0x71, 0xdc, 0xca, 0x99, 0xab, 0x8b, 0x03, 0x7f, 0x26, 0x37, 0x28, 0x4e, 0x9c, 0x5c, 0xac,
  5384. 0xfe, 0x02, 0x3f, 0x00, 0xaa, 0x7b, 0x7a, 0xa4, 0x51, 0x32, 0x4e, 0x52, 0x45, 0x6e, 0xfd, 0x5e,
  5385. 0x7f, 0xdf, 0x9b, 0xd7, 0xaf, 0xbf, 0xee, 0xd7, 0x03, 0x76, 0x14, 0x52, 0x37, 0x6a, 0x87, 0x82,
  5386. 0x4b, 0x8e, 0x90, 0xc7, 0xdd, 0x4b, 0x2a, 0xda, 0xd1, 0x37, 0x44, 0x4c, 0x2e, 0x7d, 0xd9, 0xbe,
  5387. 0xfa, 0x69, 0xdd, 0x96, 0xd3, 0x90, 0x1a, 0x40, 0xfd, 0xde, 0x88, 0x8f, 0xb8, 0x1e, 0xee, 0xaa,
  5388. 0x91, 0xf1, 0x36, 0x46, 0x9c, 0x8f, 0x02, 0xba, 0xab, 0xad, 0xf3, 0xf8, 0x62, 0xd7, 0x8b, 0x05,
  5389. 0x91, 0x3e, 0x67, 0x66, 0x7e, 0xeb, 0xf5, 0x79, 0xc2, 0xa6, 0xc9, 0x54, 0xeb, 0xba, 0x08, 0xd6,
  5390. 0x09, 0xf7, 0xe8, 0x69, 0x48, 0x5d, 0x74, 0x00, 0x36, 0x61, 0x8c, 0x4b, 0xcd, 0x8d, 0x9c, 0x42,
  5391. 0xb3, 0xb0, 0x63, 0xef, 0x6d, 0xb7, 0xdf, 0x4c, 0xaa, 0xdd, 0x59, 0xc0, 0xba, 0xc5, 0x57, 0x37,
  5392. 0xdb, 0x2b, 0x38, 0xcb, 0x44, 0xbf, 0x86, 0xaa, 0x47, 0x23, 0x5f, 0x50, 0x6f, 0x28, 0x78, 0x40,
  5393. 0x9d, 0xd5, 0x66, 0x61, 0xe7, 0xce, 0xde, 0x0f, 0xf2, 0x22, 0xa9, 0x8f, 0x63, 0x1e, 0x50, 0x6c,
  5394. 0x1b, 0x86, 0x32, 0xd0, 0x01, 0xc0, 0x84, 0x4e, 0xce, 0xa9, 0x88, 0xc6, 0x7e, 0xe8, 0xac, 0x69,
  5395. 0xfa, 0x8f, 0x6e, 0xa3, 0xab, 0xdc, 0xdb, 0xc7, 0x73, 0x38, 0xce, 0x50, 0xd1, 0x31, 0x54, 0xc9,
  5396. 0x15, 0xf1, 0x03, 0x72, 0xee, 0x07, 0xbe, 0x9c, 0x3a, 0x45, 0x1d, 0xea, 0xb3, 0xb7, 0x86, 0xea,
  5397. 0x64, 0x08, 0x78, 0x89, 0xde, 0xf2, 0x00, 0x16, 0x1f, 0x42, 0x8f, 0xa0, 0x3c, 0xe8, 0x9f, 0xf4,
  5398. 0x0e, 0x4f, 0x0e, 0x6a, 0x2b, 0xf5, 0xad, 0x97, 0xd7, 0xcd, 0x8f, 0x54, 0x8c, 0x05, 0x60, 0x40,
  5399. 0x99, 0xe7, 0xb3, 0x11, 0xda, 0x01, 0xab, 0xb3, 0xbf, 0xdf, 0x1f, 0x9c, 0xf5, 0x7b, 0xb5, 0x42,
  5400. 0xbd, 0xfe, 0xf2, 0xba, 0xf9, 0xf1, 0x32, 0xb0, 0xe3, 0xba, 0x34, 0x94, 0xd4, 0xab, 0x17, 0xbf,
  5401. 0xfd, 0x5b, 0x63, 0xa5, 0xf5, 0x6d, 0x01, 0xaa, 0xd9, 0x24, 0xd0, 0x23, 0x28, 0x75, 0xf6, 0xcf,
  5402. 0x0e, 0x9f, 0xf7, 0x6b, 0x2b, 0x0b, 0x7a, 0x16, 0xd1, 0x71, 0xa5, 0x7f, 0x45, 0xd1, 0x43, 0x58,
  5403. 0x1f, 0x74, 0xbe, 0x3e, 0xed, 0xd7, 0x0a, 0x8b, 0x74, 0xb2, 0xb0, 0x01, 0x89, 0x23, 0x8d, 0xea,
  5404. 0xe1, 0xce, 0xe1, 0x49, 0x6d, 0x35, 0x1f, 0xd5, 0x13, 0xc4, 0x67, 0x26, 0x95, 0xbf, 0x16, 0xc1,
  5405. 0x3e, 0xa5, 0xe2, 0xca, 0x77, 0x3f, 0xb0, 0x44, 0xbe, 0x80, 0xa2, 0x24, 0xd1, 0xa5, 0x96, 0x86,
  5406. 0x9d, 0x2f, 0x8d, 0x33, 0x12, 0x5d, 0xaa, 0x8f, 0x1a, 0xba, 0xc6, 0x2b, 0x65, 0x08, 0x1a, 0x06,
  5407. 0xbe, 0x4b, 0x24, 0xf5, 0xb4, 0x32, 0xec, 0xbd, 0x1f, 0xe6, 0xb1, 0xf1, 0x1c, 0x65, 0xf2, 0x7f,
  5408. 0xba, 0x82, 0x33, 0x54, 0xf4, 0x04, 0x4a, 0xa3, 0x80, 0x9f, 0x93, 0x40, 0x6b, 0xc2, 0xde, 0x7b,
  5409. 0x90, 0x17, 0xe4, 0x40, 0x23, 0x16, 0x01, 0x0c, 0x05, 0x3d, 0x86, 0x52, 0x1c, 0x7a, 0x44, 0x52,
  5410. 0xa7, 0xa4, 0xc9, 0xcd, 0x3c, 0xf2, 0xd7, 0x1a, 0xb1, 0xcf, 0xd9, 0x85, 0x3f, 0xc2, 0x06, 0x8f,
  5411. 0x8e, 0xc0, 0x62, 0x54, 0x7e, 0xc3, 0xc5, 0x65, 0xe4, 0x94, 0x9b, 0x6b, 0x3b, 0xf6, 0xde, 0xe7,
  5412. 0xb9, 0x62, 0x4c, 0x30, 0x1d, 0x29, 0x89, 0x3b, 0x9e, 0x50, 0x26, 0x93, 0x30, 0xdd, 0x55, 0xa7,
  5413. 0x80, 0xe7, 0x01, 0xd0, 0xaf, 0xc0, 0xa2, 0xcc, 0x0b, 0xb9, 0xcf, 0xa4, 0x63, 0xdd, 0x9e, 0x48,
  5414. 0xdf, 0x60, 0x54, 0x31, 0xf1, 0x9c, 0xa1, 0xd8, 0x82, 0x07, 0xc1, 0x39, 0x71, 0x2f, 0x9d, 0xca,
  5415. 0x7b, 0x2e, 0x63, 0xce, 0xe8, 0x96, 0xa0, 0x38, 0xe1, 0x1e, 0x6d, 0xed, 0xc2, 0xe6, 0x1b, 0xa5,
  5416. 0x46, 0x75, 0xb0, 0x4c, 0xa9, 0x13, 0x8d, 0x14, 0xf1, 0xdc, 0x6e, 0xdd, 0x85, 0x8d, 0xa5, 0xb2,
  5417. 0xb6, 0xfe, 0x59, 0x04, 0x2b, 0xdd, 0x6b, 0xd4, 0x81, 0x8a, 0xcb, 0x99, 0x24, 0x3e, 0xa3, 0xc2,
  5418. 0xc8, 0x2b, 0x77, 0x67, 0xf6, 0x53, 0x90, 0x62, 0x3d, 0x5d, 0xc1, 0x0b, 0x16, 0xfa, 0x2d, 0x54,
  5419. 0x04, 0x8d, 0x78, 0x2c, 0x5c, 0x1a, 0x19, 0x7d, 0xed, 0xe4, 0x2b, 0x24, 0x01, 0x61, 0xfa, 0xa7,
  5420. 0xd8, 0x17, 0x54, 0x55, 0x39, 0xc2, 0x0b, 0x2a, 0x7a, 0x02, 0x65, 0x41, 0x23, 0x49, 0x84, 0x7c,
  5421. 0x9b, 0x44, 0x70, 0x02, 0x19, 0xf0, 0xc0, 0x77, 0xa7, 0x38, 0x65, 0xa0, 0x27, 0x50, 0x09, 0x03,
  5422. 0xe2, 0xea, 0xa8, 0xce, 0xba, 0xa6, 0x7f, 0x92, 0x47, 0x1f, 0xa4, 0x20, 0xbc, 0xc0, 0xa3, 0x2f,
  5423. 0x01, 0x02, 0x3e, 0x1a, 0x7a, 0xc2, 0xbf, 0xa2, 0xc2, 0x48, 0xac, 0x9e, 0xc7, 0xee, 0x69, 0x04,
  5424. 0xae, 0x04, 0x7c, 0x94, 0x0c, 0xd1, 0xc1, 0xff, 0xa5, 0xaf, 0x8c, 0xb6, 0x8e, 0x00, 0xc8, 0x7c,
  5425. 0xd6, 0xa8, 0xeb, 0xb3, 0xf7, 0x0a, 0x65, 0x76, 0x24, 0x43, 0x47, 0x0f, 0xa0, 0x7a, 0xc1, 0x85,
  5426. 0x4b, 0x87, 0xe6, 0xd4, 0x54, 0xb4, 0x26, 0x6c, 0xed, 0x4b, 0xf4, 0x85, 0xba, 0x50, 0x1e, 0x51,
  5427. 0x46, 0x85, 0xef, 0x3a, 0xa0, 0x3f, 0xf6, 0x28, 0xf7, 0x40, 0x26, 0x10, 0x1c, 0x33, 0xe9, 0x4f,
  5428. 0xa8, 0xf9, 0x52, 0x4a, 0xec, 0x56, 0xa0, 0x2c, 0x92, 0x99, 0xd6, 0x1f, 0x01, 0xbd, 0x89, 0x45,
  5429. 0x08, 0x8a, 0x97, 0x3e, 0xf3, 0xb4, 0xb0, 0x2a, 0x58, 0x8f, 0x51, 0x1b, 0xca, 0x21, 0x99, 0x06,
  5430. 0x9c, 0x78, 0x46, 0x2c, 0xf7, 0xda, 0x49, 0xbf, 0x6c, 0xa7, 0xfd, 0xb2, 0xdd, 0x61, 0x53, 0x9c,
  5431. 0x82, 0x5a, 0x47, 0xf0, 0x51, 0xee, 0x92, 0xd1, 0x1e, 0x54, 0xe7, 0x22, 0x1c, 0xfa, 0xe6, 0x23,
  5432. 0xdd, 0xbb, 0xb3, 0x9b, 0x6d, 0x7b, 0xae, 0xd6, 0xc3, 0x1e, 0xb6, 0xe7, 0xa0, 0x43, 0xaf, 0xf5,
  5433. 0x17, 0x0b, 0x36, 0x96, 0xa4, 0x8c, 0xee, 0xc1, 0xba, 0x3f, 0x21, 0x23, 0x6a, 0x72, 0x4c, 0x0c,
  5434. 0xd4, 0x87, 0x52, 0x40, 0xce, 0x69, 0xa0, 0x04, 0xad, 0x36, 0xf5, 0x27, 0xef, 0x3c, 0x13, 0xed,
  5435. 0xdf, 0x6b, 0x7c, 0x9f, 0x49, 0x31, 0xc5, 0x86, 0x8c, 0x1c, 0x28, 0xbb, 0x7c, 0x32, 0x21, 0x4c,
  5436. 0x5d, 0x9d, 0x6b, 0x3b, 0x15, 0x9c, 0x9a, 0xaa, 0x32, 0x44, 0x8c, 0x22, 0xa7, 0xa8, 0xdd, 0x7a,
  5437. 0x8c, 0x6a, 0xb0, 0x46, 0xd9, 0x95, 0xb3, 0xae, 0x5d, 0x6a, 0xa8, 0x3c, 0x9e, 0x9f, 0x28, 0xb2,
  5438. 0x82, 0xd5, 0x50, 0xf1, 0xe2, 0x88, 0x0a, 0xa7, 0x9c, 0x54, 0x54, 0x8d, 0xd1, 0x2f, 0xa0, 0x34,
  5439. 0xe1, 0x31, 0x93, 0x91, 0x63, 0xe9, 0x64, 0xb7, 0xf2, 0x92, 0x3d, 0x56, 0x08, 0x73, 0xb5, 0x1b,
  5440. 0x38, 0xea, 0xc3, 0x66, 0x24, 0x79, 0x38, 0x1c, 0x09, 0xe2, 0xd2, 0x61, 0x48, 0x85, 0xcf, 0x3d,
  5441. 0x73, 0x35, 0x6d, 0xbd, 0xb1, 0x29, 0x3d, 0xf3, 0xc8, 0xc1, 0x77, 0x15, 0xe7, 0x40, 0x51, 0x06,
  5442. 0x9a, 0x81, 0x06, 0x50, 0x0d, 0xe3, 0x20, 0x18, 0xf2, 0x30, 0xe9, 0x52, 0x89, 0x9e, 0xde, 0xa3,
  5443. 0x64, 0x83, 0x38, 0x08, 0x9e, 0x25, 0x24, 0x6c, 0x87, 0x0b, 0x03, 0x7d, 0x0c, 0xa5, 0x91, 0xe0,
  5444. 0x71, 0x18, 0x39, 0xb6, 0x2e, 0x86, 0xb1, 0xd0, 0x57, 0x50, 0x8e, 0xa8, 0x2b, 0xa8, 0x8c, 0x9c,
  5445. 0xaa, 0x5e, 0xea, 0xa7, 0x79, 0x1f, 0x39, 0xd5, 0x10, 0x4c, 0x2f, 0xa8, 0xa0, 0xcc, 0xa5, 0x38,
  5446. 0xe5, 0xa0, 0x2d, 0x58, 0x93, 0x72, 0xea, 0x6c, 0x34, 0x0b, 0x3b, 0x56, 0xb7, 0x3c, 0xbb, 0xd9,
  5447. 0x5e, 0x3b, 0x3b, 0x7b, 0x81, 0x95, 0x4f, 0xdd, 0xa0, 0x63, 0x1e, 0x49, 0x46, 0x26, 0xd4, 0xb9,
  5448. 0xa3, 0x6b, 0x3b, 0xb7, 0xd1, 0x0b, 0x00, 0x8f, 0x45, 0x43, 0x57, 0x1f, 0x59, 0xe7, 0xae, 0x5e,
  5449. 0xdd, 0xe7, 0xef, 0x5e, 0x5d, 0xef, 0xe4, 0xd4, 0x74, 0x91, 0x8d, 0xd9, 0xcd, 0x76, 0x65, 0x6e,
  5450. 0xe2, 0x8a, 0xc7, 0xa2, 0x64, 0x88, 0xba, 0x60, 0x8f, 0x29, 0x09, 0xe4, 0xd8, 0x1d, 0x53, 0xf7,
  5451. 0xd2, 0xa9, 0xdd, 0xde, 0x16, 0x9e, 0x6a, 0x98, 0x89, 0x90, 0x25, 0x29, 0x05, 0xab, 0x54, 0x23,
  5452. 0x67, 0x53, 0xd7, 0x2a, 0x31, 0xd0, 0x27, 0x00, 0x3c, 0xa4, 0x6c, 0x18, 0x49, 0xcf, 0x67, 0x0e,
  5453. 0x52, 0x4b, 0xc6, 0x15, 0xe5, 0x39, 0x55, 0x0e, 0x74, 0x5f, 0x5d, 0xda, 0xc4, 0x1b, 0x72, 0x16,
  5454. 0x4c, 0x9d, 0xef, 0xe9, 0x59, 0x4b, 0x39, 0x9e, 0xb1, 0x60, 0x8a, 0xb6, 0xc1, 0xd6, 0xba, 0x88,
  5455. 0xfc, 0x11, 0x23, 0x81, 0x73, 0x4f, 0xd7, 0x03, 0x94, 0xeb, 0x54, 0x7b, 0xea, 0x5f, 0x82, 0x9d,
  5456. 0x91, 0xbb, 0x92, 0xe9, 0x25, 0x9d, 0x9a, 0x13, 0xa4, 0x86, 0x2a, 0xa7, 0x2b, 0x12, 0xc4, 0xc9,
  5457. 0x53, 0xb4, 0x82, 0x13, 0xe3, 0x97, 0xab, 0x8f, 0x0b, 0xf5, 0x3d, 0xb0, 0x33, 0xdb, 0x8e, 0x3e,
  5458. 0x85, 0x0d, 0x41, 0x47, 0x7e, 0x24, 0xc5, 0x74, 0x48, 0x62, 0x39, 0x76, 0x7e, 0xa3, 0x09, 0xd5,
  5459. 0xd4, 0xd9, 0x89, 0xe5, 0xb8, 0x3e, 0x84, 0x45, 0xf5, 0x50, 0x13, 0x6c, 0xb5, 0x2b, 0x11, 0x15,
  5460. 0x57, 0x54, 0xa8, 0x76, 0xa7, 0x16, 0x9d, 0x75, 0x29, 0xf5, 0x44, 0x94, 0x08, 0x77, 0xac, 0x0f,
  5461. 0x6f, 0x05, 0x1b, 0x4b, 0x9d, 0xc6, 0x54, 0xa2, 0xe6, 0x34, 0x1a, 0xb3, 0xf5, 0x9f, 0x02, 0x54,
  5462. 0xb3, 0x5d, 0x1b, 0xed, 0x27, 0xdd, 0x56, 0x2f, 0xe9, 0xce, 0xde, 0xee, 0xbb, 0xba, 0xbc, 0xee,
  5463. 0x6d, 0x41, 0xac, 0x82, 0x1d, 0xab, 0x07, 0xb6, 0x26, 0xa3, 0x9f, 0xc3, 0x7a, 0xc8, 0x85, 0x4c,
  5464. 0xef, 0x90, 0x46, 0x6e, 0x3f, 0xe2, 0x22, 0xed, 0x05, 0x09, 0xb8, 0x35, 0x86, 0x3b, 0xcb, 0xd1,
  5465. 0xd0, 0x43, 0x58, 0x7b, 0x7e, 0x38, 0xa8, 0xad, 0xd4, 0xef, 0xbf, 0xbc, 0x6e, 0x7e, 0x7f, 0x79,
  5466. 0xf2, 0xb9, 0x2f, 0x64, 0x4c, 0x82, 0xc3, 0x01, 0xfa, 0x31, 0xac, 0xf7, 0x4e, 0x4e, 0x31, 0xae,
  5467. 0x15, 0xea, 0xdb, 0x2f, 0xaf, 0x9b, 0xf7, 0x97, 0x71, 0x6a, 0x8a, 0xc7, 0xcc, 0xc3, 0xfc, 0x7c,
  5468. 0xfe, 0xd8, 0xfc, 0xfb, 0x2a, 0xd8, 0xe6, 0x6a, 0xfd, 0xd0, 0xff, 0x23, 0x1b, 0x49, 0x2f, 0x4d,
  5469. 0xcf, 0xcc, 0xea, 0x3b, 0x5b, 0x6a, 0x35, 0x21, 0x98, 0x3d, 0x7e, 0x00, 0x55, 0x3f, 0xbc, 0xfa,
  5470. 0x62, 0x48, 0x19, 0x39, 0x0f, 0xcc, 0xbb, 0xd3, 0xc2, 0xb6, 0xf2, 0xf5, 0x13, 0x97, 0x3a, 0xb0,
  5471. 0x3e, 0x93, 0x54, 0x30, 0xf3, 0xa2, 0xb4, 0xf0, 0xdc, 0x46, 0x5f, 0x41, 0xd1, 0x0f, 0xc9, 0xc4,
  5472. 0xbc, 0x03, 0x72, 0x57, 0x70, 0x38, 0xe8, 0x1c, 0x1b, 0x0d, 0x76, 0xad, 0xd9, 0xcd, 0x76, 0x51,
  5473. 0x39, 0xb0, 0xa6, 0xa1, 0x46, 0xda, 0x8a, 0xd5, 0x97, 0xf4, 0xe5, 0x6b, 0xe1, 0x8c, 0x47, 0xe9,
  5474. 0xc8, 0x67, 0x23, 0x41, 0xa3, 0x48, 0x5f, 0xc3, 0x16, 0x4e, 0xcd, 0xd6, 0x7f, 0x8b, 0x60, 0xef,
  5475. 0x07, 0x71, 0x24, 0x4d, 0x73, 0xf9, 0x60, 0x15, 0x7d, 0x01, 0x9b, 0x44, 0xff, 0xb4, 0x10, 0xa6,
  5476. 0x6e, 0x6a, 0xfd, 0xf8, 0x31, 0x55, 0x7d, 0x98, 0x1b, 0x6e, 0x0e, 0x4e, 0x1e, 0x4a, 0xdd, 0x92,
  5477. 0x8a, 0xe9, 0x14, 0x70, 0x8d, 0xbc, 0x36, 0x83, 0x4e, 0x61, 0x83, 0x0b, 0x77, 0x4c, 0x23, 0x99,
  5478. 0xdc, 0xef, 0xe6, 0x91, 0x9f, 0xfb, 0xfb, 0xf7, 0x2c, 0x0b, 0x34, 0x97, 0x5b, 0x92, 0xed, 0x72,
  5479. 0x0c, 0xf4, 0x18, 0x8a, 0x82, 0x5c, 0xa4, 0x0f, 0xb9, 0x5c, 0xe5, 0x63, 0x72, 0x21, 0x97, 0x42,
  5480. 0x68, 0x06, 0xfa, 0x1d, 0x80, 0xe7, 0x47, 0x21, 0x91, 0xee, 0x98, 0x0a, 0xb3, 0x83, 0xb9, 0x4b,
  5481. 0xec, 0xcd, 0x51, 0x4b, 0x51, 0x32, 0x6c, 0x74, 0x04, 0x15, 0x97, 0xa4, 0x1a, 0x2c, 0xdd, 0xfe,
  5482. 0xe7, 0xb3, 0xdf, 0x31, 0x21, 0x6a, 0x2a, 0xc4, 0xec, 0x66, 0xdb, 0x4a, 0x3d, 0xd8, 0x72, 0x89,
  5483. 0xd1, 0xe4, 0x11, 0x6c, 0xa8, 0x3f, 0xa2, 0xa1, 0x47, 0x2f, 0x48, 0x1c, 0xc8, 0x64, 0xef, 0x6f,
  5484. 0xb9, 0xac, 0xd5, 0xf3, 0xba, 0x67, 0x70, 0x26, 0xaf, 0xaa, 0xcc, 0xf8, 0xd0, 0x1f, 0x60, 0x93,
  5485. 0x32, 0x57, 0x4c, 0xb5, 0x02, 0xd3, 0x0c, 0xad, 0xdb, 0x17, 0xdb, 0x9f, 0x83, 0x97, 0x16, 0x5b,
  5486. 0xa3, 0xaf, 0xf9, 0x5b, 0x3e, 0x40, 0xd2, 0xfe, 0x3e, 0xac, 0xfe, 0x10, 0x14, 0x3d, 0x22, 0x89,
  5487. 0x96, 0x5c, 0x15, 0xeb, 0x71, 0xd7, 0x79, 0xf5, 0x5d, 0x63, 0xe5, 0x5f, 0xdf, 0x35, 0x56, 0xfe,
  5488. 0x3c, 0x6b, 0x14, 0x5e, 0xcd, 0x1a, 0x85, 0x7f, 0xcc, 0x1a, 0x85, 0x7f, 0xcf, 0x1a, 0x85, 0xf3,
  5489. 0x92, 0x7e, 0x34, 0xfc, 0xec, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x3e, 0xe8, 0xcb, 0x6d,
  5490. 0x11, 0x00, 0x00,
  5491. }