specs.pb.go 171 KB

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