12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: github.com/docker/swarmkit/api/specs.proto
- package api
- import (
- fmt "fmt"
- github_com_docker_swarmkit_api_deepcopy "github.com/docker/swarmkit/api/deepcopy"
- _ "github.com/gogo/protobuf/gogoproto"
- proto "github.com/gogo/protobuf/proto"
- github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
- types "github.com/gogo/protobuf/types"
- io "io"
- math "math"
- reflect "reflect"
- strings "strings"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
- type NodeSpec_Membership int32
- const (
- NodeMembershipPending NodeSpec_Membership = 0
- NodeMembershipAccepted NodeSpec_Membership = 1
- )
- var NodeSpec_Membership_name = map[int32]string{
- 0: "PENDING",
- 1: "ACCEPTED",
- }
- var NodeSpec_Membership_value = map[string]int32{
- "PENDING": 0,
- "ACCEPTED": 1,
- }
- func (x NodeSpec_Membership) String() string {
- return proto.EnumName(NodeSpec_Membership_name, int32(x))
- }
- func (NodeSpec_Membership) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{0, 0}
- }
- type NodeSpec_Availability int32
- const (
- // Active nodes.
- NodeAvailabilityActive NodeSpec_Availability = 0
- // Paused nodes won't be considered by the scheduler, preventing any
- // further task to run on them.
- NodeAvailabilityPause NodeSpec_Availability = 1
- // Drained nodes are paused and any task already running on them will
- // be evicted.
- NodeAvailabilityDrain NodeSpec_Availability = 2
- )
- var NodeSpec_Availability_name = map[int32]string{
- 0: "ACTIVE",
- 1: "PAUSE",
- 2: "DRAIN",
- }
- var NodeSpec_Availability_value = map[string]int32{
- "ACTIVE": 0,
- "PAUSE": 1,
- "DRAIN": 2,
- }
- func (x NodeSpec_Availability) String() string {
- return proto.EnumName(NodeSpec_Availability_name, int32(x))
- }
- func (NodeSpec_Availability) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{0, 1}
- }
- type ContainerSpec_Isolation int32
- const (
- // ISOLATION_DEFAULT uses whatever default value from the container runtime
- ContainerIsolationDefault ContainerSpec_Isolation = 0
- // ISOLATION_PROCESS forces windows container isolation
- ContainerIsolationProcess ContainerSpec_Isolation = 1
- // ISOLATION_HYPERV forces Hyper-V isolation
- ContainerIsolationHyperV ContainerSpec_Isolation = 2
- )
- var ContainerSpec_Isolation_name = map[int32]string{
- 0: "ISOLATION_DEFAULT",
- 1: "ISOLATION_PROCESS",
- 2: "ISOLATION_HYPERV",
- }
- var ContainerSpec_Isolation_value = map[string]int32{
- "ISOLATION_DEFAULT": 0,
- "ISOLATION_PROCESS": 1,
- "ISOLATION_HYPERV": 2,
- }
- func (x ContainerSpec_Isolation) String() string {
- return proto.EnumName(ContainerSpec_Isolation_name, int32(x))
- }
- func (ContainerSpec_Isolation) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{10, 0}
- }
- // ResolutionMode specifies the mode of resolution to use for
- // internal loadbalancing between tasks which are all within
- // the cluster. This is sometimes calls east-west data path.
- type EndpointSpec_ResolutionMode int32
- const (
- // VIP resolution mode specifies that the
- // service resolves to a logical IP and the requests
- // are sent to that logical IP. Packets hitting that
- // logical IP are load balanced to a chosen backend.
- ResolutionModeVirtualIP EndpointSpec_ResolutionMode = 0
- // DNSRR resolution mode specifies that the
- // service directly gets resolved to one of the
- // backend IP and the client directly initiates a
- // request towards the actual backend. This requires
- // that the client does not cache the DNS responses
- // when the DNS response TTL is 0.
- ResolutionModeDNSRoundRobin EndpointSpec_ResolutionMode = 1
- )
- var EndpointSpec_ResolutionMode_name = map[int32]string{
- 0: "VIP",
- 1: "DNSRR",
- }
- var EndpointSpec_ResolutionMode_value = map[string]int32{
- "VIP": 0,
- "DNSRR": 1,
- }
- func (x EndpointSpec_ResolutionMode) String() string {
- return proto.EnumName(EndpointSpec_ResolutionMode_name, int32(x))
- }
- func (EndpointSpec_ResolutionMode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{11, 0}
- }
- type NodeSpec struct {
- Annotations Annotations `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations"`
- // DesiredRole defines the role the node should have.
- DesiredRole NodeRole `protobuf:"varint,2,opt,name=desired_role,json=desiredRole,proto3,enum=docker.swarmkit.v1.NodeRole" json:"desired_role,omitempty"`
- // Membership controls the admission of the node into the cluster.
- Membership NodeSpec_Membership `protobuf:"varint,3,opt,name=membership,proto3,enum=docker.swarmkit.v1.NodeSpec_Membership" json:"membership,omitempty"`
- // Availability allows a user to control the current scheduling status of a
- // node.
- Availability NodeSpec_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=docker.swarmkit.v1.NodeSpec_Availability" json:"availability,omitempty"`
- }
- func (m *NodeSpec) Reset() { *m = NodeSpec{} }
- func (*NodeSpec) ProtoMessage() {}
- func (*NodeSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{0}
- }
- func (m *NodeSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *NodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_NodeSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *NodeSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NodeSpec.Merge(m, src)
- }
- func (m *NodeSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *NodeSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_NodeSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_NodeSpec proto.InternalMessageInfo
- // ServiceSpec defines the properties of a service.
- //
- // A service instructs the cluster in orchestrating repeated instances of a
- // template, implemented as tasks. Based on the number of instances, scheduling
- // strategy and restart policy, a number of application-level behaviors can be
- // defined.
- type ServiceSpec struct {
- Annotations Annotations `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations"`
- // Task defines the task template this service will spawn.
- Task TaskSpec `protobuf:"bytes,2,opt,name=task,proto3" json:"task"`
- // Types that are valid to be assigned to Mode:
- // *ServiceSpec_Replicated
- // *ServiceSpec_Global
- // *ServiceSpec_ReplicatedJob
- // *ServiceSpec_GlobalJob
- Mode isServiceSpec_Mode `protobuf_oneof:"mode"`
- // Update contains settings which affect updates.
- Update *UpdateConfig `protobuf:"bytes,6,opt,name=update,proto3" json:"update,omitempty"`
- // Rollback contains settings which affect rollbacks of updates.
- Rollback *UpdateConfig `protobuf:"bytes,9,opt,name=rollback,proto3" json:"rollback,omitempty"`
- // ServiceSpec.Networks has been deprecated and is replaced by
- // Networks field in Task (TaskSpec.Networks).
- // This field (ServiceSpec.Networks) is kept for compatibility.
- // In case TaskSpec.Networks does not exist, ServiceSpec.Networks
- // is still honored if it exists.
- Networks []*NetworkAttachmentConfig `protobuf:"bytes,7,rep,name=networks,proto3" json:"networks,omitempty"` // Deprecated: Do not use.
- // Service endpoint specifies the user provided configuration
- // to properly discover and load balance a service.
- Endpoint *EndpointSpec `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
- }
- func (m *ServiceSpec) Reset() { *m = ServiceSpec{} }
- func (*ServiceSpec) ProtoMessage() {}
- func (*ServiceSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{1}
- }
- func (m *ServiceSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ServiceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ServiceSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ServiceSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ServiceSpec.Merge(m, src)
- }
- func (m *ServiceSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *ServiceSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_ServiceSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_ServiceSpec proto.InternalMessageInfo
- type isServiceSpec_Mode interface {
- isServiceSpec_Mode()
- MarshalTo([]byte) (int, error)
- Size() int
- }
- type ServiceSpec_Replicated struct {
- Replicated *ReplicatedService `protobuf:"bytes,3,opt,name=replicated,proto3,oneof"`
- }
- type ServiceSpec_Global struct {
- Global *GlobalService `protobuf:"bytes,4,opt,name=global,proto3,oneof"`
- }
- type ServiceSpec_ReplicatedJob struct {
- ReplicatedJob *ReplicatedJob `protobuf:"bytes,10,opt,name=replicated_job,json=replicatedJob,proto3,oneof"`
- }
- type ServiceSpec_GlobalJob struct {
- GlobalJob *GlobalJob `protobuf:"bytes,11,opt,name=global_job,json=globalJob,proto3,oneof"`
- }
- func (*ServiceSpec_Replicated) isServiceSpec_Mode() {}
- func (*ServiceSpec_Global) isServiceSpec_Mode() {}
- func (*ServiceSpec_ReplicatedJob) isServiceSpec_Mode() {}
- func (*ServiceSpec_GlobalJob) isServiceSpec_Mode() {}
- func (m *ServiceSpec) GetMode() isServiceSpec_Mode {
- if m != nil {
- return m.Mode
- }
- return nil
- }
- func (m *ServiceSpec) GetReplicated() *ReplicatedService {
- if x, ok := m.GetMode().(*ServiceSpec_Replicated); ok {
- return x.Replicated
- }
- return nil
- }
- func (m *ServiceSpec) GetGlobal() *GlobalService {
- if x, ok := m.GetMode().(*ServiceSpec_Global); ok {
- return x.Global
- }
- return nil
- }
- func (m *ServiceSpec) GetReplicatedJob() *ReplicatedJob {
- if x, ok := m.GetMode().(*ServiceSpec_ReplicatedJob); ok {
- return x.ReplicatedJob
- }
- return nil
- }
- func (m *ServiceSpec) GetGlobalJob() *GlobalJob {
- if x, ok := m.GetMode().(*ServiceSpec_GlobalJob); ok {
- return x.GlobalJob
- }
- return nil
- }
- // XXX_OneofFuncs is for the internal use of the proto package.
- 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{}) {
- return _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{
- (*ServiceSpec_Replicated)(nil),
- (*ServiceSpec_Global)(nil),
- (*ServiceSpec_ReplicatedJob)(nil),
- (*ServiceSpec_GlobalJob)(nil),
- }
- }
- func _ServiceSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
- m := msg.(*ServiceSpec)
- // mode
- switch x := m.Mode.(type) {
- case *ServiceSpec_Replicated:
- _ = b.EncodeVarint(3<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.Replicated); err != nil {
- return err
- }
- case *ServiceSpec_Global:
- _ = b.EncodeVarint(4<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.Global); err != nil {
- return err
- }
- case *ServiceSpec_ReplicatedJob:
- _ = b.EncodeVarint(10<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ReplicatedJob); err != nil {
- return err
- }
- case *ServiceSpec_GlobalJob:
- _ = b.EncodeVarint(11<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.GlobalJob); err != nil {
- return err
- }
- case nil:
- default:
- return fmt.Errorf("ServiceSpec.Mode has unexpected type %T", x)
- }
- return nil
- }
- func _ServiceSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
- m := msg.(*ServiceSpec)
- switch tag {
- case 3: // mode.replicated
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(ReplicatedService)
- err := b.DecodeMessage(msg)
- m.Mode = &ServiceSpec_Replicated{msg}
- return true, err
- case 4: // mode.global
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(GlobalService)
- err := b.DecodeMessage(msg)
- m.Mode = &ServiceSpec_Global{msg}
- return true, err
- case 10: // mode.replicated_job
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(ReplicatedJob)
- err := b.DecodeMessage(msg)
- m.Mode = &ServiceSpec_ReplicatedJob{msg}
- return true, err
- case 11: // mode.global_job
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(GlobalJob)
- err := b.DecodeMessage(msg)
- m.Mode = &ServiceSpec_GlobalJob{msg}
- return true, err
- default:
- return false, nil
- }
- }
- func _ServiceSpec_OneofSizer(msg proto.Message) (n int) {
- m := msg.(*ServiceSpec)
- // mode
- switch x := m.Mode.(type) {
- case *ServiceSpec_Replicated:
- s := proto.Size(x.Replicated)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *ServiceSpec_Global:
- s := proto.Size(x.Global)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *ServiceSpec_ReplicatedJob:
- s := proto.Size(x.ReplicatedJob)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *ServiceSpec_GlobalJob:
- s := proto.Size(x.GlobalJob)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- return n
- }
- // ReplicatedService sets the reconciliation target to certain number of replicas.
- type ReplicatedService struct {
- Replicas uint64 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"`
- }
- func (m *ReplicatedService) Reset() { *m = ReplicatedService{} }
- func (*ReplicatedService) ProtoMessage() {}
- func (*ReplicatedService) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{2}
- }
- func (m *ReplicatedService) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ReplicatedService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ReplicatedService.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ReplicatedService) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ReplicatedService.Merge(m, src)
- }
- func (m *ReplicatedService) XXX_Size() int {
- return m.Size()
- }
- func (m *ReplicatedService) XXX_DiscardUnknown() {
- xxx_messageInfo_ReplicatedService.DiscardUnknown(m)
- }
- var xxx_messageInfo_ReplicatedService proto.InternalMessageInfo
- // GlobalService represents global service.
- type GlobalService struct {
- }
- func (m *GlobalService) Reset() { *m = GlobalService{} }
- func (*GlobalService) ProtoMessage() {}
- func (*GlobalService) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{3}
- }
- func (m *GlobalService) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalService.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalService) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalService.Merge(m, src)
- }
- func (m *GlobalService) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalService) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalService.DiscardUnknown(m)
- }
- var xxx_messageInfo_GlobalService proto.InternalMessageInfo
- // ReplicatedJob is a certain type of one-off job which executes many Tasks in
- // parallel until the specified number of Tasks have succeeded.
- type ReplicatedJob struct {
- // MaxConcurrent indicates the maximum number of Tasks that should be
- // executing simultaneously at any given time.
- MaxConcurrent uint64 `protobuf:"varint,1,opt,name=max_concurrent,json=maxConcurrent,proto3" json:"max_concurrent,omitempty"`
- // TotalCompletions sets the total number of Tasks desired to run to
- // completion. This is also the absolute maximum number of Tasks that will
- // be executed in parallel. That is, if this number is smaller than
- // MaxConcurrent, only this many replicas will run.
- TotalCompletions uint64 `protobuf:"varint,2,opt,name=total_completions,json=totalCompletions,proto3" json:"total_completions,omitempty"`
- }
- func (m *ReplicatedJob) Reset() { *m = ReplicatedJob{} }
- func (*ReplicatedJob) ProtoMessage() {}
- func (*ReplicatedJob) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{4}
- }
- func (m *ReplicatedJob) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ReplicatedJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ReplicatedJob.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ReplicatedJob) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ReplicatedJob.Merge(m, src)
- }
- func (m *ReplicatedJob) XXX_Size() int {
- return m.Size()
- }
- func (m *ReplicatedJob) XXX_DiscardUnknown() {
- xxx_messageInfo_ReplicatedJob.DiscardUnknown(m)
- }
- var xxx_messageInfo_ReplicatedJob proto.InternalMessageInfo
- // GlobalJob is a type of one-off job which executes one Task on every node
- // matching the service's placement constraints.
- type GlobalJob struct {
- }
- func (m *GlobalJob) Reset() { *m = GlobalJob{} }
- func (*GlobalJob) ProtoMessage() {}
- func (*GlobalJob) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{5}
- }
- func (m *GlobalJob) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalJob.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalJob) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalJob.Merge(m, src)
- }
- func (m *GlobalJob) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalJob) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalJob.DiscardUnknown(m)
- }
- var xxx_messageInfo_GlobalJob proto.InternalMessageInfo
- type TaskSpec struct {
- // Types that are valid to be assigned to Runtime:
- // *TaskSpec_Attachment
- // *TaskSpec_Container
- // *TaskSpec_Generic
- Runtime isTaskSpec_Runtime `protobuf_oneof:"runtime"`
- // Resource requirements for the container.
- Resources *ResourceRequirements `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"`
- // RestartPolicy specifies what to do when a task fails or finishes.
- Restart *RestartPolicy `protobuf:"bytes,4,opt,name=restart,proto3" json:"restart,omitempty"`
- // Placement specifies node selection constraints
- Placement *Placement `protobuf:"bytes,5,opt,name=placement,proto3" json:"placement,omitempty"`
- // LogDriver specifies the log driver to use for the task. Any runtime will
- // direct logs into the specified driver for the duration of the task.
- LogDriver *Driver `protobuf:"bytes,6,opt,name=log_driver,json=logDriver,proto3" json:"log_driver,omitempty"`
- // Networks specifies the list of network attachment
- // configurations (which specify the network and per-network
- // aliases) that this task spec is bound to.
- Networks []*NetworkAttachmentConfig `protobuf:"bytes,7,rep,name=networks,proto3" json:"networks,omitempty"`
- // ForceUpdate is a counter that triggers an update even if no relevant
- // parameters have been changed. We do this to allow forced restarts
- // using the same reconciliation-based mechanism that performs rolling
- // updates.
- ForceUpdate uint64 `protobuf:"varint,9,opt,name=force_update,json=forceUpdate,proto3" json:"force_update,omitempty"`
- // ResourceReferences provides a generic way to specify resources that
- // are used by this task, and should be sent down to agents along with
- // the task. Inside the runtime field there may be more specific
- // information about how to use the resource, but ResourceReferences
- // establishes the relationship at the store level, and instructs the
- // dispatcher to send the related objects.
- //
- // ResourceReferences is a list of ResourceReferences used by the task.
- ResourceReferences []ResourceReference `protobuf:"bytes,11,rep,name=resource_references,json=resourceReferences,proto3" json:"resource_references"`
- }
- func (m *TaskSpec) Reset() { *m = TaskSpec{} }
- func (*TaskSpec) ProtoMessage() {}
- func (*TaskSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{6}
- }
- func (m *TaskSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_TaskSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *TaskSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_TaskSpec.Merge(m, src)
- }
- func (m *TaskSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *TaskSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_TaskSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_TaskSpec proto.InternalMessageInfo
- type isTaskSpec_Runtime interface {
- isTaskSpec_Runtime()
- MarshalTo([]byte) (int, error)
- Size() int
- }
- type TaskSpec_Attachment struct {
- Attachment *NetworkAttachmentSpec `protobuf:"bytes,8,opt,name=attachment,proto3,oneof"`
- }
- type TaskSpec_Container struct {
- Container *ContainerSpec `protobuf:"bytes,1,opt,name=container,proto3,oneof"`
- }
- type TaskSpec_Generic struct {
- Generic *GenericRuntimeSpec `protobuf:"bytes,10,opt,name=generic,proto3,oneof"`
- }
- func (*TaskSpec_Attachment) isTaskSpec_Runtime() {}
- func (*TaskSpec_Container) isTaskSpec_Runtime() {}
- func (*TaskSpec_Generic) isTaskSpec_Runtime() {}
- func (m *TaskSpec) GetRuntime() isTaskSpec_Runtime {
- if m != nil {
- return m.Runtime
- }
- return nil
- }
- func (m *TaskSpec) GetAttachment() *NetworkAttachmentSpec {
- if x, ok := m.GetRuntime().(*TaskSpec_Attachment); ok {
- return x.Attachment
- }
- return nil
- }
- func (m *TaskSpec) GetContainer() *ContainerSpec {
- if x, ok := m.GetRuntime().(*TaskSpec_Container); ok {
- return x.Container
- }
- return nil
- }
- func (m *TaskSpec) GetGeneric() *GenericRuntimeSpec {
- if x, ok := m.GetRuntime().(*TaskSpec_Generic); ok {
- return x.Generic
- }
- return nil
- }
- // XXX_OneofFuncs is for the internal use of the proto package.
- 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{}) {
- return _TaskSpec_OneofMarshaler, _TaskSpec_OneofUnmarshaler, _TaskSpec_OneofSizer, []interface{}{
- (*TaskSpec_Attachment)(nil),
- (*TaskSpec_Container)(nil),
- (*TaskSpec_Generic)(nil),
- }
- }
- func _TaskSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
- m := msg.(*TaskSpec)
- // runtime
- switch x := m.Runtime.(type) {
- case *TaskSpec_Attachment:
- _ = b.EncodeVarint(8<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.Attachment); err != nil {
- return err
- }
- case *TaskSpec_Container:
- _ = b.EncodeVarint(1<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.Container); err != nil {
- return err
- }
- case *TaskSpec_Generic:
- _ = b.EncodeVarint(10<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.Generic); err != nil {
- return err
- }
- case nil:
- default:
- return fmt.Errorf("TaskSpec.Runtime has unexpected type %T", x)
- }
- return nil
- }
- func _TaskSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
- m := msg.(*TaskSpec)
- switch tag {
- case 8: // runtime.attachment
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(NetworkAttachmentSpec)
- err := b.DecodeMessage(msg)
- m.Runtime = &TaskSpec_Attachment{msg}
- return true, err
- case 1: // runtime.container
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(ContainerSpec)
- err := b.DecodeMessage(msg)
- m.Runtime = &TaskSpec_Container{msg}
- return true, err
- case 10: // runtime.generic
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(GenericRuntimeSpec)
- err := b.DecodeMessage(msg)
- m.Runtime = &TaskSpec_Generic{msg}
- return true, err
- default:
- return false, nil
- }
- }
- func _TaskSpec_OneofSizer(msg proto.Message) (n int) {
- m := msg.(*TaskSpec)
- // runtime
- switch x := m.Runtime.(type) {
- case *TaskSpec_Attachment:
- s := proto.Size(x.Attachment)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *TaskSpec_Container:
- s := proto.Size(x.Container)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *TaskSpec_Generic:
- s := proto.Size(x.Generic)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- return n
- }
- type ResourceReference struct {
- ResourceID string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
- ResourceType ResourceType `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=docker.swarmkit.v1.ResourceType" json:"resource_type,omitempty"`
- }
- func (m *ResourceReference) Reset() { *m = ResourceReference{} }
- func (*ResourceReference) ProtoMessage() {}
- func (*ResourceReference) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{7}
- }
- func (m *ResourceReference) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ResourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ResourceReference.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ResourceReference) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ResourceReference.Merge(m, src)
- }
- func (m *ResourceReference) XXX_Size() int {
- return m.Size()
- }
- func (m *ResourceReference) XXX_DiscardUnknown() {
- xxx_messageInfo_ResourceReference.DiscardUnknown(m)
- }
- var xxx_messageInfo_ResourceReference proto.InternalMessageInfo
- type GenericRuntimeSpec struct {
- Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
- Payload *types.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
- }
- func (m *GenericRuntimeSpec) Reset() { *m = GenericRuntimeSpec{} }
- func (*GenericRuntimeSpec) ProtoMessage() {}
- func (*GenericRuntimeSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{8}
- }
- func (m *GenericRuntimeSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GenericRuntimeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GenericRuntimeSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GenericRuntimeSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GenericRuntimeSpec.Merge(m, src)
- }
- func (m *GenericRuntimeSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *GenericRuntimeSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_GenericRuntimeSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_GenericRuntimeSpec proto.InternalMessageInfo
- // NetworkAttachmentSpec specifies runtime parameters required to attach
- // a container to a network.
- type NetworkAttachmentSpec struct {
- // ContainerID specifies a unique ID of the container for which
- // this attachment is for.
- ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
- }
- func (m *NetworkAttachmentSpec) Reset() { *m = NetworkAttachmentSpec{} }
- func (*NetworkAttachmentSpec) ProtoMessage() {}
- func (*NetworkAttachmentSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{9}
- }
- func (m *NetworkAttachmentSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *NetworkAttachmentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_NetworkAttachmentSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *NetworkAttachmentSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkAttachmentSpec.Merge(m, src)
- }
- func (m *NetworkAttachmentSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *NetworkAttachmentSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkAttachmentSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkAttachmentSpec proto.InternalMessageInfo
- // Container specifies runtime parameters for a container.
- type ContainerSpec struct {
- // image defines the image reference, as specified in the
- // distribution/reference package. This may include a registry host, name,
- // tag or digest.
- //
- // The field will be directly passed to the engine pulling. Well-behaved
- // service definitions will used immutable references, either through tags
- // that don't change or verifiable digests.
- Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
- // Labels defines labels to be added to the container at creation time. If
- // collisions with system labels occur, these labels will be overridden.
- //
- // This field *must* remain compatible with the Labels field of
- // Annotations.
- Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- // Command to run the the container. The first element is a path to the
- // executable and the following elements are treated as arguments.
- //
- // If command is empty, execution will fall back to the image's entrypoint.
- //
- // Command should only be used when overriding entrypoint.
- Command []string `protobuf:"bytes,3,rep,name=command,proto3" json:"command,omitempty"`
- // Args specifies arguments provided to the image's entrypoint.
- //
- // If Command and Args are provided, Args will be appended to Command.
- Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
- // Hostname specifies the hostname that will be set on containers created by docker swarm.
- // All containers for a given service will have the same hostname
- Hostname string `protobuf:"bytes,14,opt,name=hostname,proto3" json:"hostname,omitempty"`
- // Env specifies the environment variables for the container in NAME=VALUE
- // format. These must be compliant with [IEEE Std
- // 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).
- Env []string `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"`
- // Dir defines the working directory to set for the container process.
- Dir string `protobuf:"bytes,6,opt,name=dir,proto3" json:"dir,omitempty"`
- // User specifies the user that should be employed to run the container.
- //
- // Note that the primary group may be specified by appending the group name
- // or id to the user name, separated by a `:`. This syntax is
- // `<user>:<group>`.
- User string `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`
- // Groups specifies supplementary groups available to the user.
- Groups []string `protobuf:"bytes,11,rep,name=groups,proto3" json:"groups,omitempty"`
- // Privileges specifies security configuration/permissions.
- Privileges *Privileges `protobuf:"bytes,22,opt,name=privileges,proto3" json:"privileges,omitempty"`
- // Init declares that a custom init will be running inside the container, if null, use the daemon's configured settings
- Init *types.BoolValue `protobuf:"bytes,23,opt,name=init,proto3" json:"init,omitempty"`
- // TTY declares that a TTY should be attached to the standard streams,
- // including stdin if it is still open.
- TTY bool `protobuf:"varint,13,opt,name=tty,proto3" json:"tty,omitempty"`
- // OpenStdin declares that the standard input (stdin) should be open.
- OpenStdin bool `protobuf:"varint,18,opt,name=open_stdin,json=openStdin,proto3" json:"open_stdin,omitempty"`
- // ReadOnly declares that the container root filesystem is read-only.
- // This only impacts the root filesystem, not additional mounts (including
- // tmpfs). For additional mounts that are not part of the initial rootfs,
- // they will be decided by the modes passed in the mount definition.
- ReadOnly bool `protobuf:"varint,19,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
- // StopSignal defines the signal to stop the container.
- StopSignal string `protobuf:"bytes,20,opt,name=stop_signal,json=stopSignal,proto3" json:"stop_signal,omitempty"`
- Mounts []Mount `protobuf:"bytes,8,rep,name=mounts,proto3" json:"mounts"`
- // StopGracePeriod the grace period for stopping the container before
- // forcefully killing the container.
- // Note: Can't use stdduration here because this needs to be nullable.
- StopGracePeriod *types.Duration `protobuf:"bytes,9,opt,name=stop_grace_period,json=stopGracePeriod,proto3" json:"stop_grace_period,omitempty"`
- // PullOptions parameterize the behavior of image pulls.
- PullOptions *ContainerSpec_PullOptions `protobuf:"bytes,10,opt,name=pull_options,json=pullOptions,proto3" json:"pull_options,omitempty"`
- // SecretReference contains references to zero or more secrets that
- // will be exposed to the container.
- Secrets []*SecretReference `protobuf:"bytes,12,rep,name=secrets,proto3" json:"secrets,omitempty"`
- // ConfigReference contains references to zero or more configs that
- // will be exposed to the container.
- Configs []*ConfigReference `protobuf:"bytes,21,rep,name=configs,proto3" json:"configs,omitempty"`
- // Hosts allow additional entries to be specified in /etc/hosts
- // that associates IP addresses with hostnames.
- // Detailed documentation is available in:
- // http://man7.org/linux/man-pages/man5/hosts.5.html
- // IP_address canonical_hostname [aliases...]
- //
- // The format of the Hosts in swarmkit follows the same as
- // above.
- // This is different from `docker run --add-host <hostname>:<ip>`
- // where format is `<hostname>:<ip>`
- Hosts []string `protobuf:"bytes,17,rep,name=hosts,proto3" json:"hosts,omitempty"`
- // DNSConfig allows one to specify DNS related configuration in resolv.conf
- DNSConfig *ContainerSpec_DNSConfig `protobuf:"bytes,15,opt,name=dns_config,json=dnsConfig,proto3" json:"dns_config,omitempty"`
- // Healthcheck describes how to check the container is healthy. If the
- // container is considered unhealthy, it will be destroyed, its creating
- // task will exit and a new task will be rescheduled elsewhere. A container
- // is considered unhealthy after `Retries` number of consecutive failures.
- Healthcheck *HealthConfig `protobuf:"bytes,16,opt,name=healthcheck,proto3" json:"healthcheck,omitempty"`
- // Isolation defines the isolation level for windows containers (default, process, hyperv).
- // Runtimes that don't support it ignore that field
- Isolation ContainerSpec_Isolation `protobuf:"varint,24,opt,name=isolation,proto3,enum=docker.swarmkit.v1.ContainerSpec_Isolation" json:"isolation,omitempty"`
- // PidsLimit prevents from OS resource damage by applications inside the container
- // using fork bomb attack.
- PidsLimit int64 `protobuf:"varint,25,opt,name=pidsLimit,proto3" json:"pidsLimit,omitempty"`
- // Sysctls sets namespaced kernel parameters (sysctls) in the container. This
- // option is equivalent to passing --sysctl to docker run.
- //
- // Note that while options are subject to the same restrictions as arguments
- // passed to the --sysctl flag on docker run, those options are not further
- // validated to ensure that they are safe or sensible in a clustered
- // environment.
- //
- // Additionally, sysctls are not validated for support in the underlying
- // daemon. For information about supported options, refer to the
- // documentation at:
- //
- // https://docs.docker.com/engine/reference/commandline/run/#configure-namespaced-kernel-parameters-sysctls-at-runtime
- Sysctls map[string]string `protobuf:"bytes,26,rep,name=sysctls,proto3" json:"sysctls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- // CapabilityAdd sets the list of capabilities to add to the default capability list
- CapabilityAdd []string `protobuf:"bytes,27,rep,name=capability_add,json=capabilityAdd,proto3" json:"capability_add,omitempty"`
- // CapabilityDrop sets the list of capabilities to drop from the default capability list
- CapabilityDrop []string `protobuf:"bytes,28,rep,name=capability_drop,json=capabilityDrop,proto3" json:"capability_drop,omitempty"`
- }
- func (m *ContainerSpec) Reset() { *m = ContainerSpec{} }
- func (*ContainerSpec) ProtoMessage() {}
- func (*ContainerSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{10}
- }
- func (m *ContainerSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ContainerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ContainerSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ContainerSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ContainerSpec.Merge(m, src)
- }
- func (m *ContainerSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *ContainerSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_ContainerSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_ContainerSpec proto.InternalMessageInfo
- // PullOptions allows one to parameterize an image pull.
- type ContainerSpec_PullOptions struct {
- // RegistryAuth is the registry auth token obtained from the client, required
- // to pull private images. This is the unmodified JSON used as part of
- // the `X-Registry-Auth` header.
- // TODO(nishanttotla): This field will later be deprecated
- RegistryAuth string `protobuf:"bytes,64,opt,name=registry_auth,json=registryAuth,proto3" json:"registry_auth,omitempty"`
- }
- func (m *ContainerSpec_PullOptions) Reset() { *m = ContainerSpec_PullOptions{} }
- func (*ContainerSpec_PullOptions) ProtoMessage() {}
- func (*ContainerSpec_PullOptions) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{10, 1}
- }
- func (m *ContainerSpec_PullOptions) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ContainerSpec_PullOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ContainerSpec_PullOptions.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ContainerSpec_PullOptions) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ContainerSpec_PullOptions.Merge(m, src)
- }
- func (m *ContainerSpec_PullOptions) XXX_Size() int {
- return m.Size()
- }
- func (m *ContainerSpec_PullOptions) XXX_DiscardUnknown() {
- xxx_messageInfo_ContainerSpec_PullOptions.DiscardUnknown(m)
- }
- var xxx_messageInfo_ContainerSpec_PullOptions proto.InternalMessageInfo
- // DNSConfig specifies DNS related configurations in resolver configuration file (resolv.conf)
- // Detailed documentation is available in:
- // http://man7.org/linux/man-pages/man5/resolv.conf.5.html
- // TODO: domain is not supported yet
- type ContainerSpec_DNSConfig struct {
- // Nameservers specifies the IP addresses of the name servers
- Nameservers []string `protobuf:"bytes,1,rep,name=nameservers,proto3" json:"nameservers,omitempty"`
- // Search specifies the search list for host-name lookup
- Search []string `protobuf:"bytes,2,rep,name=search,proto3" json:"search,omitempty"`
- // Options allows certain internal resolver variables to be modified
- Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
- }
- func (m *ContainerSpec_DNSConfig) Reset() { *m = ContainerSpec_DNSConfig{} }
- func (*ContainerSpec_DNSConfig) ProtoMessage() {}
- func (*ContainerSpec_DNSConfig) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{10, 2}
- }
- func (m *ContainerSpec_DNSConfig) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ContainerSpec_DNSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ContainerSpec_DNSConfig.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ContainerSpec_DNSConfig) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ContainerSpec_DNSConfig.Merge(m, src)
- }
- func (m *ContainerSpec_DNSConfig) XXX_Size() int {
- return m.Size()
- }
- func (m *ContainerSpec_DNSConfig) XXX_DiscardUnknown() {
- xxx_messageInfo_ContainerSpec_DNSConfig.DiscardUnknown(m)
- }
- var xxx_messageInfo_ContainerSpec_DNSConfig proto.InternalMessageInfo
- // EndpointSpec defines the properties that can be configured to
- // access and loadbalance the service.
- type EndpointSpec struct {
- Mode EndpointSpec_ResolutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=docker.swarmkit.v1.EndpointSpec_ResolutionMode" json:"mode,omitempty"`
- // List of exposed ports that this service is accessible from
- // external to the cluster.
- Ports []*PortConfig `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"`
- }
- func (m *EndpointSpec) Reset() { *m = EndpointSpec{} }
- func (*EndpointSpec) ProtoMessage() {}
- func (*EndpointSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{11}
- }
- func (m *EndpointSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *EndpointSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_EndpointSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *EndpointSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_EndpointSpec.Merge(m, src)
- }
- func (m *EndpointSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *EndpointSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_EndpointSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_EndpointSpec proto.InternalMessageInfo
- // NetworkSpec specifies user defined network parameters.
- type NetworkSpec struct {
- Annotations Annotations `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations"`
- // DriverConfig specific configuration consumed by the network driver.
- DriverConfig *Driver `protobuf:"bytes,2,opt,name=driver_config,json=driverConfig,proto3" json:"driver_config,omitempty"`
- // IPv6Enabled enables support for IPv6 on the network.
- Ipv6Enabled bool `protobuf:"varint,3,opt,name=ipv6_enabled,json=ipv6Enabled,proto3" json:"ipv6_enabled,omitempty"`
- // internal restricts external access to the network. This may be
- // accomplished by disabling the default gateway or through other means.
- Internal bool `protobuf:"varint,4,opt,name=internal,proto3" json:"internal,omitempty"`
- IPAM *IPAMOptions `protobuf:"bytes,5,opt,name=ipam,proto3" json:"ipam,omitempty"`
- // Attachable allows external(to swarm) entities to manually
- // attach to this network. With this flag enabled, external
- // entities such as containers running in an worker node in
- // the cluster can manually attach to this network and access
- // the services attached to this network. If this flag is not
- // enabled(default case) no manual attachment to this network
- // can happen.
- Attachable bool `protobuf:"varint,6,opt,name=attachable,proto3" json:"attachable,omitempty"`
- // Ingress indicates this network will provide the routing-mesh.
- // In older versions, the network providing the routing mesh was
- // swarm internally created only and it was identified by the name
- // "ingress" and the label "com.docker.swarm.internal": "true".
- Ingress bool `protobuf:"varint,7,opt,name=ingress,proto3" json:"ingress,omitempty"`
- // ConfigFrom is the source of the configuration for this network.
- //
- // Types that are valid to be assigned to ConfigFrom:
- // *NetworkSpec_Network
- ConfigFrom isNetworkSpec_ConfigFrom `protobuf_oneof:"config_from"`
- }
- func (m *NetworkSpec) Reset() { *m = NetworkSpec{} }
- func (*NetworkSpec) ProtoMessage() {}
- func (*NetworkSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{12}
- }
- func (m *NetworkSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *NetworkSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_NetworkSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *NetworkSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkSpec.Merge(m, src)
- }
- func (m *NetworkSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *NetworkSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkSpec proto.InternalMessageInfo
- type isNetworkSpec_ConfigFrom interface {
- isNetworkSpec_ConfigFrom()
- MarshalTo([]byte) (int, error)
- Size() int
- }
- type NetworkSpec_Network struct {
- Network string `protobuf:"bytes,8,opt,name=network,proto3,oneof"`
- }
- func (*NetworkSpec_Network) isNetworkSpec_ConfigFrom() {}
- func (m *NetworkSpec) GetConfigFrom() isNetworkSpec_ConfigFrom {
- if m != nil {
- return m.ConfigFrom
- }
- return nil
- }
- func (m *NetworkSpec) GetNetwork() string {
- if x, ok := m.GetConfigFrom().(*NetworkSpec_Network); ok {
- return x.Network
- }
- return ""
- }
- // XXX_OneofFuncs is for the internal use of the proto package.
- 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{}) {
- return _NetworkSpec_OneofMarshaler, _NetworkSpec_OneofUnmarshaler, _NetworkSpec_OneofSizer, []interface{}{
- (*NetworkSpec_Network)(nil),
- }
- }
- func _NetworkSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
- m := msg.(*NetworkSpec)
- // config_from
- switch x := m.ConfigFrom.(type) {
- case *NetworkSpec_Network:
- _ = b.EncodeVarint(8<<3 | proto.WireBytes)
- _ = b.EncodeStringBytes(x.Network)
- case nil:
- default:
- return fmt.Errorf("NetworkSpec.ConfigFrom has unexpected type %T", x)
- }
- return nil
- }
- func _NetworkSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
- m := msg.(*NetworkSpec)
- switch tag {
- case 8: // config_from.network
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeStringBytes()
- m.ConfigFrom = &NetworkSpec_Network{x}
- return true, err
- default:
- return false, nil
- }
- }
- func _NetworkSpec_OneofSizer(msg proto.Message) (n int) {
- m := msg.(*NetworkSpec)
- // config_from
- switch x := m.ConfigFrom.(type) {
- case *NetworkSpec_Network:
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(len(x.Network)))
- n += len(x.Network)
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- return n
- }
- // ClusterSpec specifies global cluster settings.
- type ClusterSpec struct {
- Annotations Annotations `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations"`
- // DEPRECATED: AcceptancePolicy defines the certificate issuance policy.
- // Acceptance policy is no longer customizable, and secrets have been
- // replaced with join tokens.
- AcceptancePolicy AcceptancePolicy `protobuf:"bytes,2,opt,name=acceptance_policy,json=acceptancePolicy,proto3" json:"acceptance_policy"` // Deprecated: Do not use.
- // Orchestration defines cluster-level orchestration settings.
- Orchestration OrchestrationConfig `protobuf:"bytes,3,opt,name=orchestration,proto3" json:"orchestration"`
- // Raft defines the cluster's raft settings.
- Raft RaftConfig `protobuf:"bytes,4,opt,name=raft,proto3" json:"raft"`
- // Dispatcher defines cluster-level dispatcher settings.
- Dispatcher DispatcherConfig `protobuf:"bytes,5,opt,name=dispatcher,proto3" json:"dispatcher"`
- // CAConfig defines cluster-level certificate authority settings.
- CAConfig CAConfig `protobuf:"bytes,6,opt,name=ca_config,json=caConfig,proto3" json:"ca_config"`
- // TaskDefaults specifies the default values to use for task creation.
- TaskDefaults TaskDefaults `protobuf:"bytes,7,opt,name=task_defaults,json=taskDefaults,proto3" json:"task_defaults"`
- // EncryptionConfig defines the cluster's encryption settings.
- EncryptionConfig EncryptionConfig `protobuf:"bytes,8,opt,name=encryption_config,json=encryptionConfig,proto3" json:"encryption_config"`
- }
- func (m *ClusterSpec) Reset() { *m = ClusterSpec{} }
- func (*ClusterSpec) ProtoMessage() {}
- func (*ClusterSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{13}
- }
- func (m *ClusterSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ClusterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ClusterSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ClusterSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ClusterSpec.Merge(m, src)
- }
- func (m *ClusterSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *ClusterSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_ClusterSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_ClusterSpec proto.InternalMessageInfo
- // SecretSpec specifies a user-provided secret.
- type SecretSpec struct {
- Annotations Annotations `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations"`
- // Data is the secret payload - the maximum size is 500KB (that is, 500*1024 bytes)
- Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
- // Templating controls whether and how to evaluate the secret payload as
- // a template. If it is not set, no templating is used.
- //
- // The currently recognized values are:
- // - golang: Go templating
- Templating *Driver `protobuf:"bytes,3,opt,name=templating,proto3" json:"templating,omitempty"`
- // Driver is the the secret driver that is used to store the specified secret
- Driver *Driver `protobuf:"bytes,4,opt,name=driver,proto3" json:"driver,omitempty"`
- }
- func (m *SecretSpec) Reset() { *m = SecretSpec{} }
- func (*SecretSpec) ProtoMessage() {}
- func (*SecretSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{14}
- }
- func (m *SecretSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *SecretSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SecretSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *SecretSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SecretSpec.Merge(m, src)
- }
- func (m *SecretSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *SecretSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_SecretSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_SecretSpec proto.InternalMessageInfo
- // ConfigSpec specifies user-provided configuration files.
- type ConfigSpec struct {
- Annotations Annotations `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations"`
- // Data is the config payload - the maximum size is 500KB (that is, 500*1024 bytes)
- // TODO(aaronl): Do we want to revise this to include multiple payloads in a single
- // ConfigSpec? Define this to be a tar? etc...
- Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
- // Templating controls whether and how to evaluate the secret payload as
- // a template. If it is not set, no templating is used.
- //
- // The currently recognized values are:
- // - golang: Go templating
- Templating *Driver `protobuf:"bytes,3,opt,name=templating,proto3" json:"templating,omitempty"`
- }
- func (m *ConfigSpec) Reset() { *m = ConfigSpec{} }
- func (*ConfigSpec) ProtoMessage() {}
- func (*ConfigSpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{15}
- }
- func (m *ConfigSpec) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ConfigSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ConfigSpec.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *ConfigSpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ConfigSpec.Merge(m, src)
- }
- func (m *ConfigSpec) XXX_Size() int {
- return m.Size()
- }
- func (m *ConfigSpec) XXX_DiscardUnknown() {
- xxx_messageInfo_ConfigSpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_ConfigSpec proto.InternalMessageInfo
- func init() {
- proto.RegisterEnum("docker.swarmkit.v1.NodeSpec_Membership", NodeSpec_Membership_name, NodeSpec_Membership_value)
- proto.RegisterEnum("docker.swarmkit.v1.NodeSpec_Availability", NodeSpec_Availability_name, NodeSpec_Availability_value)
- proto.RegisterEnum("docker.swarmkit.v1.ContainerSpec_Isolation", ContainerSpec_Isolation_name, ContainerSpec_Isolation_value)
- proto.RegisterEnum("docker.swarmkit.v1.EndpointSpec_ResolutionMode", EndpointSpec_ResolutionMode_name, EndpointSpec_ResolutionMode_value)
- proto.RegisterType((*NodeSpec)(nil), "docker.swarmkit.v1.NodeSpec")
- proto.RegisterType((*ServiceSpec)(nil), "docker.swarmkit.v1.ServiceSpec")
- proto.RegisterType((*ReplicatedService)(nil), "docker.swarmkit.v1.ReplicatedService")
- proto.RegisterType((*GlobalService)(nil), "docker.swarmkit.v1.GlobalService")
- proto.RegisterType((*ReplicatedJob)(nil), "docker.swarmkit.v1.ReplicatedJob")
- proto.RegisterType((*GlobalJob)(nil), "docker.swarmkit.v1.GlobalJob")
- proto.RegisterType((*TaskSpec)(nil), "docker.swarmkit.v1.TaskSpec")
- proto.RegisterType((*ResourceReference)(nil), "docker.swarmkit.v1.ResourceReference")
- proto.RegisterType((*GenericRuntimeSpec)(nil), "docker.swarmkit.v1.GenericRuntimeSpec")
- proto.RegisterType((*NetworkAttachmentSpec)(nil), "docker.swarmkit.v1.NetworkAttachmentSpec")
- proto.RegisterType((*ContainerSpec)(nil), "docker.swarmkit.v1.ContainerSpec")
- proto.RegisterMapType((map[string]string)(nil), "docker.swarmkit.v1.ContainerSpec.LabelsEntry")
- proto.RegisterMapType((map[string]string)(nil), "docker.swarmkit.v1.ContainerSpec.SysctlsEntry")
- proto.RegisterType((*ContainerSpec_PullOptions)(nil), "docker.swarmkit.v1.ContainerSpec.PullOptions")
- proto.RegisterType((*ContainerSpec_DNSConfig)(nil), "docker.swarmkit.v1.ContainerSpec.DNSConfig")
- proto.RegisterType((*EndpointSpec)(nil), "docker.swarmkit.v1.EndpointSpec")
- proto.RegisterType((*NetworkSpec)(nil), "docker.swarmkit.v1.NetworkSpec")
- proto.RegisterType((*ClusterSpec)(nil), "docker.swarmkit.v1.ClusterSpec")
- proto.RegisterType((*SecretSpec)(nil), "docker.swarmkit.v1.SecretSpec")
- proto.RegisterType((*ConfigSpec)(nil), "docker.swarmkit.v1.ConfigSpec")
- }
- func init() {
- proto.RegisterFile("github.com/docker/swarmkit/api/specs.proto", fileDescriptor_6589acc608f7d4fd)
- }
- var fileDescriptor_6589acc608f7d4fd = []byte{
- // 2311 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4d, 0x73, 0x1b, 0xc7,
- 0xd1, 0x06, 0x48, 0x10, 0x1f, 0xbd, 0x00, 0x05, 0x8e, 0x65, 0x7b, 0x09, 0xc9, 0x20, 0x0c, 0xcb,
- 0x36, 0x6d, 0xd7, 0x0b, 0xd6, 0xcb, 0xb8, 0x1c, 0x7f, 0xc4, 0x49, 0x00, 0x02, 0x96, 0x60, 0x49,
- 0x14, 0x6a, 0x40, 0x2b, 0x51, 0x55, 0xaa, 0x50, 0x83, 0xdd, 0x21, 0xb0, 0xe1, 0x62, 0x67, 0x33,
- 0x3b, 0xa0, 0x8d, 0x5b, 0x8e, 0x2e, 0xe6, 0x92, 0x3f, 0xc0, 0x53, 0x2a, 0xa7, 0x5c, 0x92, 0x4b,
- 0x7e, 0x83, 0x8f, 0x3e, 0x3a, 0x17, 0x56, 0x4c, 0xff, 0x84, 0xdc, 0x72, 0x49, 0x6a, 0x66, 0x67,
- 0x17, 0x0b, 0x0a, 0x10, 0x95, 0x8a, 0x0e, 0xb9, 0xcd, 0xf4, 0x3e, 0x4f, 0x4f, 0xf7, 0x4c, 0x77,
- 0x4f, 0xcf, 0xc2, 0xbb, 0x23, 0x47, 0x8c, 0xa7, 0xc3, 0x86, 0xc5, 0x26, 0x7b, 0x36, 0xb3, 0x4e,
- 0x28, 0xdf, 0x0b, 0xbe, 0x24, 0x7c, 0x72, 0xe2, 0x88, 0x3d, 0xe2, 0x3b, 0x7b, 0x81, 0x4f, 0xad,
- 0xa0, 0xe1, 0x73, 0x26, 0x18, 0x42, 0x21, 0xa0, 0x11, 0x01, 0x1a, 0xa7, 0xff, 0x5f, 0xb9, 0x8e,
- 0x2f, 0x66, 0x3e, 0xd5, 0xfc, 0xca, 0xcd, 0x11, 0x1b, 0x31, 0x35, 0xdc, 0x93, 0x23, 0x2d, 0xad,
- 0x8e, 0x18, 0x1b, 0xb9, 0x74, 0x4f, 0xcd, 0x86, 0xd3, 0xe3, 0x3d, 0x7b, 0xca, 0x89, 0x70, 0x98,
- 0xa7, 0xbf, 0x6f, 0x5f, 0xfd, 0x4e, 0xbc, 0xd9, 0x2a, 0xea, 0x97, 0x9c, 0xf8, 0x3e, 0xe5, 0x7a,
- 0xc1, 0xfa, 0x79, 0x06, 0xf2, 0x87, 0xcc, 0xa6, 0x7d, 0x9f, 0x5a, 0xe8, 0x2e, 0x18, 0xc4, 0xf3,
- 0x98, 0x50, 0xba, 0x03, 0x33, 0x5d, 0x4b, 0xef, 0x1a, 0xfb, 0x3b, 0x8d, 0xa7, 0x7d, 0x6a, 0x34,
- 0xe7, 0xb0, 0x56, 0xe6, 0x9b, 0x8b, 0x9d, 0x14, 0x4e, 0x32, 0xd1, 0xcf, 0xa0, 0x68, 0xd3, 0xc0,
- 0xe1, 0xd4, 0x1e, 0x70, 0xe6, 0x52, 0x73, 0xad, 0x96, 0xde, 0xdd, 0xdc, 0xbf, 0xbd, 0x4c, 0x93,
- 0x5c, 0x1c, 0x33, 0x97, 0x62, 0x43, 0x33, 0xe4, 0x04, 0xdd, 0x05, 0x98, 0xd0, 0xc9, 0x90, 0xf2,
- 0x60, 0xec, 0xf8, 0xe6, 0xba, 0xa2, 0xbf, 0xbd, 0x8a, 0x2e, 0x6d, 0x6f, 0x3c, 0x8c, 0xe1, 0x38,
- 0x41, 0x45, 0x0f, 0xa1, 0x48, 0x4e, 0x89, 0xe3, 0x92, 0xa1, 0xe3, 0x3a, 0x62, 0x66, 0x66, 0x94,
- 0xaa, 0x77, 0x9e, 0xa9, 0xaa, 0x99, 0x20, 0xe0, 0x05, 0x7a, 0xdd, 0x06, 0x98, 0x2f, 0x84, 0xde,
- 0x82, 0x5c, 0xaf, 0x73, 0xd8, 0xee, 0x1e, 0xde, 0x2d, 0xa7, 0x2a, 0xdb, 0x67, 0xe7, 0xb5, 0x97,
- 0xa5, 0x8e, 0x39, 0xa0, 0x47, 0x3d, 0xdb, 0xf1, 0x46, 0x68, 0x17, 0xf2, 0xcd, 0x83, 0x83, 0x4e,
- 0xef, 0xa8, 0xd3, 0x2e, 0xa7, 0x2b, 0x95, 0xb3, 0xf3, 0xda, 0x2b, 0x8b, 0xc0, 0xa6, 0x65, 0x51,
- 0x5f, 0x50, 0xbb, 0x92, 0xf9, 0xfa, 0x0f, 0xd5, 0x54, 0xfd, 0xeb, 0x34, 0x14, 0x93, 0x46, 0xa0,
- 0xb7, 0x20, 0xdb, 0x3c, 0x38, 0xea, 0x3e, 0xee, 0x94, 0x53, 0x73, 0x7a, 0x12, 0xd1, 0xb4, 0x84,
- 0x73, 0x4a, 0xd1, 0x1d, 0xd8, 0xe8, 0x35, 0xbf, 0xe8, 0x77, 0xca, 0xe9, 0xb9, 0x39, 0x49, 0x58,
- 0x8f, 0x4c, 0x03, 0x85, 0x6a, 0xe3, 0x66, 0xf7, 0xb0, 0xbc, 0xb6, 0x1c, 0xd5, 0xe6, 0xc4, 0xf1,
- 0xb4, 0x29, 0x7f, 0xda, 0x00, 0xa3, 0x4f, 0xf9, 0xa9, 0x63, 0xbd, 0xe0, 0x10, 0xf9, 0x00, 0x32,
- 0x82, 0x04, 0x27, 0x2a, 0x34, 0x8c, 0xe5, 0xa1, 0x71, 0x44, 0x82, 0x13, 0xb9, 0xa8, 0xa6, 0x2b,
- 0xbc, 0x8c, 0x0c, 0x4e, 0x7d, 0xd7, 0xb1, 0x88, 0xa0, 0xb6, 0x8a, 0x0c, 0x63, 0xff, 0xcd, 0x65,
- 0x6c, 0x1c, 0xa3, 0xb4, 0xfd, 0xf7, 0x52, 0x38, 0x41, 0x45, 0x9f, 0x40, 0x76, 0xe4, 0xb2, 0x21,
- 0x71, 0x55, 0x4c, 0x18, 0xfb, 0xaf, 0x2f, 0x53, 0x72, 0x57, 0x21, 0xe6, 0x0a, 0x34, 0x05, 0x7d,
- 0x0e, 0x9b, 0x73, 0x55, 0x83, 0x5f, 0xb3, 0xa1, 0x09, 0xab, 0x95, 0xcc, 0x2d, 0xf9, 0x9c, 0x0d,
- 0xef, 0xa5, 0x70, 0x89, 0x27, 0x05, 0xe8, 0xa7, 0x00, 0xa1, 0x56, 0xa5, 0xc7, 0x50, 0x7a, 0x5e,
- 0x5b, 0x6d, 0x4c, 0xa8, 0xa3, 0x30, 0x8a, 0x26, 0xe8, 0x43, 0xc8, 0x4e, 0x7d, 0x9b, 0x08, 0x6a,
- 0x66, 0x15, 0xb7, 0xb6, 0x8c, 0xfb, 0x85, 0x42, 0x1c, 0x30, 0xef, 0xd8, 0x19, 0x61, 0x8d, 0x47,
- 0x3f, 0x81, 0x3c, 0x67, 0xae, 0x3b, 0x24, 0xd6, 0x89, 0x59, 0x78, 0x4e, 0x6e, 0xcc, 0x40, 0xf7,
- 0x21, 0xef, 0x51, 0xf1, 0x25, 0xe3, 0x27, 0x81, 0x99, 0xab, 0xad, 0xef, 0x1a, 0xfb, 0xef, 0x2d,
- 0x4d, 0xab, 0x10, 0xd3, 0x14, 0x82, 0x58, 0xe3, 0x09, 0xf5, 0x44, 0xa8, 0xa8, 0xb5, 0x66, 0xa6,
- 0x71, 0xac, 0x40, 0x9a, 0x42, 0x3d, 0xdb, 0x67, 0x8e, 0x27, 0xcc, 0xfc, 0x6a, 0x53, 0x3a, 0x1a,
- 0x23, 0xc3, 0x02, 0xc7, 0x8c, 0x56, 0x16, 0x32, 0x13, 0x66, 0xd3, 0xfa, 0x1e, 0x6c, 0x3d, 0x75,
- 0xec, 0xa8, 0x02, 0x79, 0xbd, 0xe1, 0x61, 0xbc, 0x66, 0x70, 0x3c, 0xaf, 0xdf, 0x80, 0xd2, 0xc2,
- 0x11, 0xd7, 0x2d, 0x28, 0x2d, 0x1c, 0x17, 0x7a, 0x13, 0x36, 0x27, 0xe4, 0xab, 0x81, 0xc5, 0x3c,
- 0x6b, 0xca, 0x39, 0xf5, 0x84, 0xd6, 0x51, 0x9a, 0x90, 0xaf, 0x0e, 0x62, 0x21, 0x7a, 0x0f, 0xb6,
- 0x04, 0x13, 0xc4, 0x1d, 0x58, 0x6c, 0xe2, 0xbb, 0x34, 0xcc, 0x8e, 0x35, 0x85, 0x2c, 0xab, 0x0f,
- 0x07, 0x73, 0x79, 0xdd, 0x80, 0x42, 0x7c, 0x96, 0xf5, 0x3f, 0x6f, 0x40, 0x3e, 0x8a, 0x74, 0x74,
- 0x1f, 0x80, 0xc4, 0x1b, 0xa5, 0x37, 0xe2, 0x9d, 0xe7, 0xda, 0x55, 0x49, 0x97, 0x11, 0x3e, 0xa7,
- 0xa3, 0x26, 0x14, 0x2c, 0xe6, 0x09, 0xe2, 0x78, 0x94, 0xeb, 0x4c, 0x5d, 0x1a, 0x9f, 0x07, 0x11,
- 0x48, 0xeb, 0x98, 0xb3, 0x50, 0x0b, 0x72, 0x23, 0xea, 0x51, 0xee, 0x58, 0x3a, 0xc0, 0xdf, 0x5a,
- 0x1a, 0x98, 0x21, 0x04, 0x4f, 0x3d, 0xe1, 0x4c, 0xa8, 0xd6, 0x12, 0x11, 0xd1, 0x67, 0x50, 0xe0,
- 0x34, 0x60, 0x53, 0x6e, 0xd1, 0x40, 0xa7, 0xfb, 0xee, 0xf2, 0x34, 0x09, 0x41, 0x98, 0xfe, 0x66,
- 0xea, 0x70, 0x2a, 0x5d, 0x08, 0xf0, 0x9c, 0x8a, 0x3e, 0x81, 0x1c, 0xa7, 0x81, 0x20, 0x5c, 0x3c,
- 0x2b, 0x63, 0x71, 0x08, 0xe9, 0x31, 0xd7, 0xb1, 0x66, 0x38, 0x62, 0xa0, 0x4f, 0xa0, 0xe0, 0xbb,
- 0xc4, 0x52, 0x5a, 0xcd, 0x8d, 0xd5, 0x39, 0xd6, 0x8b, 0x40, 0x78, 0x8e, 0x47, 0x1f, 0x01, 0xb8,
- 0x6c, 0x34, 0xb0, 0xb9, 0x73, 0x4a, 0xb9, 0xce, 0xb2, 0xca, 0x32, 0x76, 0x5b, 0x21, 0x70, 0xc1,
- 0x65, 0xa3, 0x70, 0x88, 0xee, 0xfe, 0x57, 0x49, 0x92, 0x48, 0x90, 0xd7, 0xa1, 0x78, 0xcc, 0xb8,
- 0x45, 0x07, 0x3a, 0xd7, 0x0b, 0x2a, 0xb6, 0x0c, 0x25, 0x0b, 0x13, 0x14, 0xfd, 0x0a, 0x5e, 0x8a,
- 0x76, 0x6b, 0xc0, 0xe9, 0x31, 0xe5, 0xd4, 0x93, 0x5b, 0x6e, 0xa8, 0x65, 0xdf, 0x7c, 0xf6, 0x96,
- 0x6b, 0xb4, 0x2e, 0xb5, 0x88, 0x5f, 0xfd, 0x10, 0xb4, 0x0a, 0x90, 0xe3, 0xe1, 0x01, 0xd7, 0x7f,
- 0x97, 0x96, 0x79, 0x76, 0x05, 0x81, 0xf6, 0xc0, 0x88, 0x97, 0x77, 0x6c, 0x15, 0x70, 0x85, 0xd6,
- 0xe6, 0xe5, 0xc5, 0x0e, 0x44, 0xd8, 0x6e, 0x5b, 0x56, 0x60, 0x3d, 0xb6, 0x51, 0x07, 0x4a, 0x31,
- 0x41, 0x36, 0x41, 0xba, 0x4d, 0xa8, 0x3d, 0xcb, 0xd2, 0xa3, 0x99, 0x4f, 0x71, 0x91, 0x27, 0x66,
- 0xf5, 0x5f, 0x02, 0x7a, 0x3a, 0x00, 0x11, 0x82, 0xcc, 0x89, 0xe3, 0x69, 0x33, 0xb0, 0x1a, 0xa3,
- 0x06, 0xe4, 0x7c, 0x32, 0x73, 0x19, 0xb1, 0x75, 0x1c, 0xde, 0x6c, 0x84, 0xed, 0x51, 0x23, 0x6a,
- 0x8f, 0x1a, 0x4d, 0x6f, 0x86, 0x23, 0x50, 0xfd, 0x3e, 0xbc, 0xbc, 0x34, 0xcf, 0xd0, 0x3e, 0x14,
- 0xe3, 0x1c, 0x99, 0xfb, 0x7a, 0xe3, 0xf2, 0x62, 0xc7, 0x88, 0x93, 0xa9, 0xdb, 0xc6, 0x46, 0x0c,
- 0xea, 0xda, 0xf5, 0xbf, 0x96, 0xa0, 0xb4, 0x90, 0x69, 0xe8, 0x26, 0x6c, 0x38, 0x13, 0x32, 0xa2,
- 0xda, 0xc6, 0x70, 0x82, 0x3a, 0x90, 0x75, 0xc9, 0x90, 0xba, 0x32, 0x57, 0xe4, 0xc1, 0xfd, 0xdf,
- 0xb5, 0x29, 0xdb, 0x78, 0xa0, 0xf0, 0x1d, 0x4f, 0xf0, 0x19, 0xd6, 0x64, 0x64, 0x42, 0xce, 0x62,
- 0x93, 0x09, 0xf1, 0xe4, 0x25, 0xb9, 0xbe, 0x5b, 0xc0, 0xd1, 0x54, 0xee, 0x0c, 0xe1, 0xa3, 0xc0,
- 0xcc, 0x28, 0xb1, 0x1a, 0xcb, 0x1a, 0x39, 0x66, 0x81, 0xf0, 0xc8, 0x84, 0x9a, 0x9b, 0xca, 0x9a,
- 0x78, 0x8e, 0xca, 0xb0, 0x4e, 0xbd, 0x53, 0x73, 0x43, 0xc1, 0xe5, 0x50, 0x4a, 0x6c, 0x27, 0x4c,
- 0x84, 0x02, 0x96, 0x43, 0xa9, 0x73, 0x1a, 0x50, 0x6e, 0xe6, 0xc2, 0xdd, 0x96, 0x63, 0xf4, 0x0a,
- 0x64, 0x47, 0x9c, 0x4d, 0xfd, 0x30, 0x02, 0x0b, 0x58, 0xcf, 0xe4, 0x7d, 0xe7, 0x73, 0xe7, 0xd4,
- 0x71, 0xe9, 0x88, 0x06, 0xe6, 0x2b, 0xea, 0x20, 0xaa, 0x4b, 0x73, 0x31, 0x46, 0xe1, 0x04, 0x03,
- 0x35, 0x20, 0xe3, 0x78, 0x8e, 0x30, 0x5f, 0xd5, 0x79, 0x78, 0xf5, 0x08, 0x5b, 0x8c, 0xb9, 0x8f,
- 0x89, 0x3b, 0xa5, 0x58, 0xe1, 0xd0, 0x36, 0xac, 0x0b, 0x31, 0x33, 0x4b, 0xb5, 0xf4, 0x6e, 0xbe,
- 0x95, 0xbb, 0xbc, 0xd8, 0x59, 0x3f, 0x3a, 0x7a, 0x82, 0xa5, 0x0c, 0xbd, 0x06, 0xc0, 0x7c, 0xea,
- 0x0d, 0x02, 0x61, 0x3b, 0x9e, 0x89, 0x24, 0x02, 0x17, 0xa4, 0xa4, 0x2f, 0x05, 0xe8, 0x96, 0xac,
- 0x5c, 0xc4, 0x1e, 0x30, 0xcf, 0x9d, 0x99, 0x2f, 0xa9, 0xaf, 0x79, 0x29, 0x78, 0xe4, 0xb9, 0x33,
- 0xb4, 0x03, 0x46, 0x20, 0x98, 0x3f, 0x08, 0x9c, 0x91, 0x47, 0x5c, 0xf3, 0xa6, 0xf2, 0x1c, 0xa4,
- 0xa8, 0xaf, 0x24, 0xe8, 0xc7, 0x90, 0x9d, 0xb0, 0xa9, 0x27, 0x02, 0x33, 0xaf, 0x0e, 0x72, 0x7b,
- 0x99, 0x8f, 0x0f, 0x25, 0x42, 0x67, 0x9d, 0x86, 0xa3, 0x0e, 0x6c, 0x29, 0xcd, 0x23, 0x4e, 0x2c,
- 0x3a, 0xf0, 0x29, 0x77, 0x98, 0xad, 0xef, 0xe7, 0xed, 0xa7, 0xbc, 0x6d, 0xeb, 0xa7, 0x00, 0xbe,
- 0x21, 0x39, 0x77, 0x25, 0xa5, 0xa7, 0x18, 0xa8, 0x07, 0x45, 0x7f, 0xea, 0xba, 0x03, 0xe6, 0x87,
- 0xb7, 0x51, 0x58, 0xc0, 0x9f, 0x23, 0x9c, 0x7a, 0x53, 0xd7, 0x7d, 0x14, 0x92, 0xb0, 0xe1, 0xcf,
- 0x27, 0xe8, 0x53, 0xc8, 0x05, 0xd4, 0xe2, 0x54, 0x04, 0x66, 0x51, 0xb9, 0xf4, 0xc6, 0x32, 0x65,
- 0x7d, 0x05, 0x89, 0xeb, 0x02, 0x8e, 0x38, 0x92, 0x6e, 0xa9, 0xb2, 0x16, 0x98, 0x2f, 0xaf, 0xa6,
- 0xeb, 0xca, 0x37, 0xa7, 0x6b, 0x8e, 0x4c, 0x17, 0x19, 0x93, 0x81, 0xb9, 0xa5, 0xc2, 0x29, 0x9c,
- 0xa0, 0x27, 0x00, 0xb6, 0x17, 0x0c, 0x42, 0x90, 0x79, 0x43, 0xf9, 0xf8, 0xde, 0xf5, 0x3e, 0xb6,
- 0x0f, 0xfb, 0xba, 0x0f, 0x29, 0x5d, 0x5e, 0xec, 0x14, 0xe2, 0x29, 0x2e, 0xd8, 0x5e, 0x10, 0x0e,
- 0x51, 0x0b, 0x8c, 0x31, 0x25, 0xae, 0x18, 0x5b, 0x63, 0x6a, 0x9d, 0x98, 0xe5, 0xd5, 0x6d, 0xc9,
- 0x3d, 0x05, 0xd3, 0x1a, 0x92, 0x24, 0xd4, 0x85, 0x82, 0x13, 0x30, 0x57, 0x1d, 0x91, 0x69, 0xaa,
- 0xfa, 0xf6, 0x1c, 0xd6, 0x75, 0x23, 0x0a, 0x9e, 0xb3, 0xd1, 0x6d, 0x28, 0xf8, 0x8e, 0x1d, 0x3c,
- 0x70, 0x26, 0x8e, 0x30, 0xb7, 0x6b, 0xe9, 0xdd, 0x75, 0x3c, 0x17, 0xa0, 0x7b, 0x90, 0x0b, 0x66,
- 0x81, 0x25, 0xdc, 0xc0, 0xac, 0xa8, 0xcd, 0x6d, 0x5c, 0xbf, 0x4c, 0x3f, 0x24, 0x84, 0x85, 0x23,
- 0xa2, 0xcb, 0x8e, 0xc7, 0x22, 0xbe, 0x7e, 0x0b, 0x0c, 0x88, 0x6d, 0x9b, 0xb7, 0xd4, 0x86, 0x97,
- 0xe6, 0xd2, 0xa6, 0x6d, 0xa3, 0xb7, 0xe1, 0x46, 0x02, 0x66, 0x73, 0xe6, 0x9b, 0xb7, 0x15, 0x2e,
- 0xc1, 0x6e, 0x73, 0xe6, 0x57, 0x3e, 0x02, 0x23, 0x51, 0xa0, 0x64, 0xf1, 0x38, 0xa1, 0x33, 0x5d,
- 0xf3, 0xe4, 0x50, 0x1e, 0xec, 0xa9, 0xcc, 0x57, 0x55, 0x94, 0x0b, 0x38, 0x9c, 0x7c, 0xbc, 0xf6,
- 0x61, 0xba, 0xb2, 0x0f, 0x46, 0x22, 0x18, 0xd1, 0x1b, 0xf2, 0xc2, 0x18, 0x39, 0x81, 0xe0, 0xb3,
- 0x01, 0x99, 0x8a, 0xb1, 0xf9, 0x73, 0x45, 0x28, 0x46, 0xc2, 0xe6, 0x54, 0x8c, 0x2b, 0x03, 0x98,
- 0x9f, 0x26, 0xaa, 0x81, 0x21, 0x6b, 0x58, 0x40, 0xf9, 0x29, 0xe5, 0xb2, 0xfd, 0x93, 0x06, 0x26,
- 0x45, 0xb2, 0x4a, 0x05, 0x94, 0x70, 0x6b, 0xac, 0xca, 0x6d, 0x01, 0xeb, 0x99, 0xac, 0x9f, 0x51,
- 0xe2, 0xe8, 0xfa, 0xa9, 0xa7, 0x95, 0x8f, 0xa1, 0x98, 0xdc, 0xb8, 0xff, 0xc4, 0xa1, 0xfa, 0x5f,
- 0xd2, 0x50, 0x88, 0x0f, 0x17, 0xbd, 0x0f, 0x5b, 0xdd, 0xfe, 0xa3, 0x07, 0xcd, 0xa3, 0xee, 0xa3,
- 0xc3, 0x41, 0xbb, 0xf3, 0x59, 0xf3, 0x8b, 0x07, 0x47, 0xe5, 0x54, 0xe5, 0xb5, 0xb3, 0xf3, 0xda,
- 0xf6, 0xfc, 0x1e, 0x89, 0xe0, 0x6d, 0x7a, 0x4c, 0xa6, 0xae, 0x58, 0x64, 0xf5, 0xf0, 0xa3, 0x83,
- 0x4e, 0xbf, 0x5f, 0x4e, 0xaf, 0x62, 0xf5, 0x38, 0xb3, 0x68, 0x10, 0xa0, 0x7d, 0x28, 0xcf, 0x59,
- 0xf7, 0x9e, 0xf4, 0x3a, 0xf8, 0x71, 0x79, 0xad, 0x72, 0xfb, 0xec, 0xbc, 0x66, 0x3e, 0x4d, 0xba,
- 0x37, 0xf3, 0x29, 0x7f, 0xac, 0x9f, 0x80, 0xff, 0x48, 0x43, 0x31, 0xd9, 0x77, 0xa3, 0x83, 0xb0,
- 0xdb, 0x56, 0x1e, 0x6f, 0xee, 0xef, 0x5d, 0xd7, 0xa7, 0xab, 0xbb, 0xdb, 0x9d, 0x4a, 0xbd, 0x0f,
- 0xe5, 0x63, 0x5f, 0x91, 0xd1, 0xfb, 0xb0, 0xe1, 0x33, 0x2e, 0xa2, 0x5b, 0x6e, 0xf9, 0x05, 0xc0,
- 0x78, 0xd4, 0x08, 0x85, 0xe0, 0xfa, 0x18, 0x36, 0x17, 0xb5, 0xa1, 0x3b, 0xb0, 0xfe, 0xb8, 0xdb,
- 0x2b, 0xa7, 0x2a, 0xb7, 0xce, 0xce, 0x6b, 0xaf, 0x2e, 0x7e, 0x7c, 0xec, 0x70, 0x31, 0x25, 0x6e,
- 0xb7, 0x87, 0xde, 0x85, 0x8d, 0xf6, 0x61, 0x1f, 0xe3, 0x72, 0xba, 0xb2, 0x73, 0x76, 0x5e, 0xbb,
- 0xb5, 0x88, 0x93, 0x9f, 0xd8, 0xd4, 0xb3, 0x31, 0x1b, 0xc6, 0x0f, 0xdf, 0x7f, 0xae, 0x81, 0xa1,
- 0x2f, 0xff, 0x17, 0xfd, 0x6f, 0xa4, 0x14, 0x36, 0x92, 0x51, 0xcd, 0x5a, 0xbb, 0xb6, 0x9f, 0x2c,
- 0x86, 0x04, 0x1d, 0xd3, 0xaf, 0x43, 0xd1, 0xf1, 0x4f, 0x3f, 0x18, 0x50, 0x8f, 0x0c, 0x5d, 0xfd,
- 0x06, 0xce, 0x63, 0x43, 0xca, 0x3a, 0xa1, 0x48, 0x5e, 0xe7, 0x8e, 0x27, 0x28, 0xf7, 0xf4, 0xeb,
- 0x36, 0x8f, 0xe3, 0x39, 0xfa, 0x14, 0x32, 0x8e, 0x4f, 0x26, 0xba, 0x09, 0x5e, 0xea, 0x41, 0xb7,
- 0xd7, 0x7c, 0xa8, 0x73, 0xae, 0x95, 0xbf, 0xbc, 0xd8, 0xc9, 0x48, 0x01, 0x56, 0x34, 0x54, 0x8d,
- 0x5e, 0x28, 0x72, 0x25, 0xd5, 0x02, 0xe4, 0x71, 0x42, 0x22, 0xf3, 0xc6, 0xf1, 0x46, 0x9c, 0x06,
- 0x81, 0x6a, 0x06, 0xf2, 0x38, 0x9a, 0xa2, 0x0a, 0xe4, 0x74, 0x37, 0xab, 0x1e, 0x36, 0x05, 0xf9,
- 0x46, 0xd0, 0x82, 0x56, 0x09, 0x8c, 0x70, 0x37, 0x06, 0xc7, 0x9c, 0x4d, 0xea, 0xff, 0xca, 0x80,
- 0x71, 0xe0, 0x4e, 0x03, 0xa1, 0x3b, 0xa5, 0x17, 0xb6, 0xf9, 0x4f, 0x60, 0x8b, 0xa8, 0x7f, 0x2d,
- 0xc4, 0x93, 0x57, 0xab, 0x7a, 0x24, 0xe8, 0x03, 0xb8, 0xb3, 0x54, 0x5d, 0x0c, 0x0e, 0x1f, 0x14,
- 0xad, 0xac, 0xd4, 0x69, 0xa6, 0x71, 0x99, 0x5c, 0xf9, 0x82, 0xfa, 0x50, 0x62, 0xdc, 0x1a, 0xd3,
- 0x40, 0x84, 0x17, 0xb2, 0xfe, 0x37, 0xb1, 0xf4, 0xaf, 0xd5, 0xa3, 0x24, 0x50, 0xdf, 0x43, 0xa1,
- 0xb5, 0x8b, 0x3a, 0xd0, 0x87, 0x90, 0xe1, 0xe4, 0x38, 0x7a, 0xf0, 0x2c, 0x4d, 0x12, 0x4c, 0x8e,
- 0xc5, 0x82, 0x0a, 0xc5, 0x40, 0x9f, 0x03, 0xd8, 0x4e, 0xe0, 0x13, 0x61, 0x8d, 0x29, 0xd7, 0x87,
- 0xbd, 0xd4, 0xc5, 0x76, 0x8c, 0x5a, 0xd0, 0x92, 0x60, 0xa3, 0xfb, 0x50, 0xb0, 0x48, 0x14, 0xae,
- 0xd9, 0xd5, 0x3f, 0x6c, 0x0e, 0x9a, 0x5a, 0x45, 0x59, 0xaa, 0xb8, 0xbc, 0xd8, 0xc9, 0x47, 0x12,
- 0x9c, 0xb7, 0x88, 0x0e, 0xdf, 0xfb, 0x50, 0x12, 0x24, 0x38, 0x19, 0xd8, 0x61, 0x39, 0x0b, 0xc3,
- 0x64, 0xc5, 0xbd, 0x2a, 0xdf, 0xc5, 0xba, 0xec, 0x45, 0xc7, 0x59, 0x14, 0x09, 0x19, 0xfa, 0x05,
- 0x6c, 0x51, 0xcf, 0xe2, 0x33, 0x15, 0xac, 0x91, 0x85, 0xf9, 0xd5, 0xce, 0x76, 0x62, 0xf0, 0x82,
- 0xb3, 0x65, 0x7a, 0x45, 0x5e, 0xff, 0x5b, 0x1a, 0x20, 0x6c, 0x64, 0x5e, 0x6c, 0x00, 0x22, 0xc8,
- 0xd8, 0x44, 0x10, 0x15, 0x73, 0x45, 0xac, 0xc6, 0xe8, 0x63, 0x00, 0x41, 0x27, 0xbe, 0x2c, 0xbd,
- 0xde, 0x48, 0x87, 0xcd, 0xb3, 0xca, 0x41, 0x02, 0x8d, 0xf6, 0x21, 0xab, 0x9f, 0xa5, 0x99, 0x6b,
- 0x79, 0x1a, 0x59, 0xff, 0x63, 0x1a, 0x20, 0x74, 0xf3, 0x7f, 0xda, 0xb7, 0xd6, 0x9d, 0x6f, 0xbe,
- 0xaf, 0xa6, 0xbe, 0xfb, 0xbe, 0x9a, 0xfa, 0xed, 0x65, 0x35, 0xfd, 0xcd, 0x65, 0x35, 0xfd, 0xed,
- 0x65, 0x35, 0xfd, 0xf7, 0xcb, 0x6a, 0xfa, 0xf7, 0x3f, 0x54, 0x53, 0xdf, 0xfe, 0x50, 0x4d, 0x7d,
- 0xf7, 0x43, 0x35, 0x35, 0xcc, 0xaa, 0x56, 0xf8, 0x47, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x92,
- 0xc4, 0x34, 0xad, 0xa7, 0x17, 0x00, 0x00,
- }
- func (m *NodeSpec) Copy() *NodeSpec {
- if m == nil {
- return nil
- }
- o := &NodeSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *NodeSpec) CopyFrom(src interface{}) {
- o := src.(*NodeSpec)
- *m = *o
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
- }
- func (m *ServiceSpec) Copy() *ServiceSpec {
- if m == nil {
- return nil
- }
- o := &ServiceSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *ServiceSpec) CopyFrom(src interface{}) {
- o := src.(*ServiceSpec)
- *m = *o
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Task, &o.Task)
- if o.Update != nil {
- m.Update = &UpdateConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Update, o.Update)
- }
- if o.Rollback != nil {
- m.Rollback = &UpdateConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Rollback, o.Rollback)
- }
- if o.Networks != nil {
- m.Networks = make([]*NetworkAttachmentConfig, len(o.Networks))
- for i := range m.Networks {
- m.Networks[i] = &NetworkAttachmentConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Networks[i], o.Networks[i])
- }
- }
- if o.Endpoint != nil {
- m.Endpoint = &EndpointSpec{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Endpoint, o.Endpoint)
- }
- if o.Mode != nil {
- switch o.Mode.(type) {
- case *ServiceSpec_Replicated:
- v := ServiceSpec_Replicated{
- Replicated: &ReplicatedService{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.Replicated, o.GetReplicated())
- m.Mode = &v
- case *ServiceSpec_Global:
- v := ServiceSpec_Global{
- Global: &GlobalService{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.Global, o.GetGlobal())
- m.Mode = &v
- case *ServiceSpec_ReplicatedJob:
- v := ServiceSpec_ReplicatedJob{
- ReplicatedJob: &ReplicatedJob{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.ReplicatedJob, o.GetReplicatedJob())
- m.Mode = &v
- case *ServiceSpec_GlobalJob:
- v := ServiceSpec_GlobalJob{
- GlobalJob: &GlobalJob{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.GlobalJob, o.GetGlobalJob())
- m.Mode = &v
- }
- }
- }
- func (m *ReplicatedService) Copy() *ReplicatedService {
- if m == nil {
- return nil
- }
- o := &ReplicatedService{}
- o.CopyFrom(m)
- return o
- }
- func (m *ReplicatedService) CopyFrom(src interface{}) {
- o := src.(*ReplicatedService)
- *m = *o
- }
- func (m *GlobalService) Copy() *GlobalService {
- if m == nil {
- return nil
- }
- o := &GlobalService{}
- o.CopyFrom(m)
- return o
- }
- func (m *GlobalService) CopyFrom(src interface{}) {}
- func (m *ReplicatedJob) Copy() *ReplicatedJob {
- if m == nil {
- return nil
- }
- o := &ReplicatedJob{}
- o.CopyFrom(m)
- return o
- }
- func (m *ReplicatedJob) CopyFrom(src interface{}) {
- o := src.(*ReplicatedJob)
- *m = *o
- }
- func (m *GlobalJob) Copy() *GlobalJob {
- if m == nil {
- return nil
- }
- o := &GlobalJob{}
- o.CopyFrom(m)
- return o
- }
- func (m *GlobalJob) CopyFrom(src interface{}) {}
- func (m *TaskSpec) Copy() *TaskSpec {
- if m == nil {
- return nil
- }
- o := &TaskSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *TaskSpec) CopyFrom(src interface{}) {
- o := src.(*TaskSpec)
- *m = *o
- if o.Resources != nil {
- m.Resources = &ResourceRequirements{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Resources, o.Resources)
- }
- if o.Restart != nil {
- m.Restart = &RestartPolicy{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Restart, o.Restart)
- }
- if o.Placement != nil {
- m.Placement = &Placement{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Placement, o.Placement)
- }
- if o.LogDriver != nil {
- m.LogDriver = &Driver{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.LogDriver, o.LogDriver)
- }
- if o.Networks != nil {
- m.Networks = make([]*NetworkAttachmentConfig, len(o.Networks))
- for i := range m.Networks {
- m.Networks[i] = &NetworkAttachmentConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Networks[i], o.Networks[i])
- }
- }
- if o.ResourceReferences != nil {
- m.ResourceReferences = make([]ResourceReference, len(o.ResourceReferences))
- for i := range m.ResourceReferences {
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.ResourceReferences[i], &o.ResourceReferences[i])
- }
- }
- if o.Runtime != nil {
- switch o.Runtime.(type) {
- case *TaskSpec_Attachment:
- v := TaskSpec_Attachment{
- Attachment: &NetworkAttachmentSpec{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.Attachment, o.GetAttachment())
- m.Runtime = &v
- case *TaskSpec_Container:
- v := TaskSpec_Container{
- Container: &ContainerSpec{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.Container, o.GetContainer())
- m.Runtime = &v
- case *TaskSpec_Generic:
- v := TaskSpec_Generic{
- Generic: &GenericRuntimeSpec{},
- }
- github_com_docker_swarmkit_api_deepcopy.Copy(v.Generic, o.GetGeneric())
- m.Runtime = &v
- }
- }
- }
- func (m *ResourceReference) Copy() *ResourceReference {
- if m == nil {
- return nil
- }
- o := &ResourceReference{}
- o.CopyFrom(m)
- return o
- }
- func (m *ResourceReference) CopyFrom(src interface{}) {
- o := src.(*ResourceReference)
- *m = *o
- }
- func (m *GenericRuntimeSpec) Copy() *GenericRuntimeSpec {
- if m == nil {
- return nil
- }
- o := &GenericRuntimeSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *GenericRuntimeSpec) CopyFrom(src interface{}) {
- o := src.(*GenericRuntimeSpec)
- *m = *o
- if o.Payload != nil {
- m.Payload = &types.Any{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Payload, o.Payload)
- }
- }
- func (m *NetworkAttachmentSpec) Copy() *NetworkAttachmentSpec {
- if m == nil {
- return nil
- }
- o := &NetworkAttachmentSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *NetworkAttachmentSpec) CopyFrom(src interface{}) {
- o := src.(*NetworkAttachmentSpec)
- *m = *o
- }
- func (m *ContainerSpec) Copy() *ContainerSpec {
- if m == nil {
- return nil
- }
- o := &ContainerSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *ContainerSpec) CopyFrom(src interface{}) {
- o := src.(*ContainerSpec)
- *m = *o
- if o.Labels != nil {
- m.Labels = make(map[string]string, len(o.Labels))
- for k, v := range o.Labels {
- m.Labels[k] = v
- }
- }
- if o.Command != nil {
- m.Command = make([]string, len(o.Command))
- copy(m.Command, o.Command)
- }
- if o.Args != nil {
- m.Args = make([]string, len(o.Args))
- copy(m.Args, o.Args)
- }
- if o.Env != nil {
- m.Env = make([]string, len(o.Env))
- copy(m.Env, o.Env)
- }
- if o.Groups != nil {
- m.Groups = make([]string, len(o.Groups))
- copy(m.Groups, o.Groups)
- }
- if o.Privileges != nil {
- m.Privileges = &Privileges{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Privileges, o.Privileges)
- }
- if o.Init != nil {
- m.Init = &types.BoolValue{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Init, o.Init)
- }
- if o.Mounts != nil {
- m.Mounts = make([]Mount, len(o.Mounts))
- for i := range m.Mounts {
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Mounts[i], &o.Mounts[i])
- }
- }
- if o.StopGracePeriod != nil {
- m.StopGracePeriod = &types.Duration{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.StopGracePeriod, o.StopGracePeriod)
- }
- if o.PullOptions != nil {
- m.PullOptions = &ContainerSpec_PullOptions{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.PullOptions, o.PullOptions)
- }
- if o.Secrets != nil {
- m.Secrets = make([]*SecretReference, len(o.Secrets))
- for i := range m.Secrets {
- m.Secrets[i] = &SecretReference{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Secrets[i], o.Secrets[i])
- }
- }
- if o.Configs != nil {
- m.Configs = make([]*ConfigReference, len(o.Configs))
- for i := range m.Configs {
- m.Configs[i] = &ConfigReference{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Configs[i], o.Configs[i])
- }
- }
- if o.Hosts != nil {
- m.Hosts = make([]string, len(o.Hosts))
- copy(m.Hosts, o.Hosts)
- }
- if o.DNSConfig != nil {
- m.DNSConfig = &ContainerSpec_DNSConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.DNSConfig, o.DNSConfig)
- }
- if o.Healthcheck != nil {
- m.Healthcheck = &HealthConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Healthcheck, o.Healthcheck)
- }
- if o.Sysctls != nil {
- m.Sysctls = make(map[string]string, len(o.Sysctls))
- for k, v := range o.Sysctls {
- m.Sysctls[k] = v
- }
- }
- if o.CapabilityAdd != nil {
- m.CapabilityAdd = make([]string, len(o.CapabilityAdd))
- copy(m.CapabilityAdd, o.CapabilityAdd)
- }
- if o.CapabilityDrop != nil {
- m.CapabilityDrop = make([]string, len(o.CapabilityDrop))
- copy(m.CapabilityDrop, o.CapabilityDrop)
- }
- }
- func (m *ContainerSpec_PullOptions) Copy() *ContainerSpec_PullOptions {
- if m == nil {
- return nil
- }
- o := &ContainerSpec_PullOptions{}
- o.CopyFrom(m)
- return o
- }
- func (m *ContainerSpec_PullOptions) CopyFrom(src interface{}) {
- o := src.(*ContainerSpec_PullOptions)
- *m = *o
- }
- func (m *ContainerSpec_DNSConfig) Copy() *ContainerSpec_DNSConfig {
- if m == nil {
- return nil
- }
- o := &ContainerSpec_DNSConfig{}
- o.CopyFrom(m)
- return o
- }
- func (m *ContainerSpec_DNSConfig) CopyFrom(src interface{}) {
- o := src.(*ContainerSpec_DNSConfig)
- *m = *o
- if o.Nameservers != nil {
- m.Nameservers = make([]string, len(o.Nameservers))
- copy(m.Nameservers, o.Nameservers)
- }
- if o.Search != nil {
- m.Search = make([]string, len(o.Search))
- copy(m.Search, o.Search)
- }
- if o.Options != nil {
- m.Options = make([]string, len(o.Options))
- copy(m.Options, o.Options)
- }
- }
- func (m *EndpointSpec) Copy() *EndpointSpec {
- if m == nil {
- return nil
- }
- o := &EndpointSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *EndpointSpec) CopyFrom(src interface{}) {
- o := src.(*EndpointSpec)
- *m = *o
- if o.Ports != nil {
- m.Ports = make([]*PortConfig, len(o.Ports))
- for i := range m.Ports {
- m.Ports[i] = &PortConfig{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Ports[i], o.Ports[i])
- }
- }
- }
- func (m *NetworkSpec) Copy() *NetworkSpec {
- if m == nil {
- return nil
- }
- o := &NetworkSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *NetworkSpec) CopyFrom(src interface{}) {
- o := src.(*NetworkSpec)
- *m = *o
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
- if o.DriverConfig != nil {
- m.DriverConfig = &Driver{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.DriverConfig, o.DriverConfig)
- }
- if o.IPAM != nil {
- m.IPAM = &IPAMOptions{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.IPAM, o.IPAM)
- }
- if o.ConfigFrom != nil {
- switch o.ConfigFrom.(type) {
- case *NetworkSpec_Network:
- v := NetworkSpec_Network{
- Network: o.GetNetwork(),
- }
- m.ConfigFrom = &v
- }
- }
- }
- func (m *ClusterSpec) Copy() *ClusterSpec {
- if m == nil {
- return nil
- }
- o := &ClusterSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *ClusterSpec) CopyFrom(src interface{}) {
- o := src.(*ClusterSpec)
- *m = *o
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.AcceptancePolicy, &o.AcceptancePolicy)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Orchestration, &o.Orchestration)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Raft, &o.Raft)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Dispatcher, &o.Dispatcher)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.CAConfig, &o.CAConfig)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.TaskDefaults, &o.TaskDefaults)
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.EncryptionConfig, &o.EncryptionConfig)
- }
- func (m *SecretSpec) Copy() *SecretSpec {
- if m == nil {
- return nil
- }
- o := &SecretSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *SecretSpec) CopyFrom(src interface{}) {
- o := src.(*SecretSpec)
- *m = *o
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
- if o.Data != nil {
- m.Data = make([]byte, len(o.Data))
- copy(m.Data, o.Data)
- }
- if o.Templating != nil {
- m.Templating = &Driver{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Templating, o.Templating)
- }
- if o.Driver != nil {
- m.Driver = &Driver{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Driver, o.Driver)
- }
- }
- func (m *ConfigSpec) Copy() *ConfigSpec {
- if m == nil {
- return nil
- }
- o := &ConfigSpec{}
- o.CopyFrom(m)
- return o
- }
- func (m *ConfigSpec) CopyFrom(src interface{}) {
- o := src.(*ConfigSpec)
- *m = *o
- github_com_docker_swarmkit_api_deepcopy.Copy(&m.Annotations, &o.Annotations)
- if o.Data != nil {
- m.Data = make([]byte, len(o.Data))
- copy(m.Data, o.Data)
- }
- if o.Templating != nil {
- m.Templating = &Driver{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Templating, o.Templating)
- }
- }
- func (m *NodeSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *NodeSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
- n1, err := m.Annotations.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n1
- if m.DesiredRole != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.DesiredRole))
- }
- if m.Membership != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Membership))
- }
- if m.Availability != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Availability))
- }
- return i, nil
- }
- func (m *ServiceSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ServiceSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
- n2, err := m.Annotations.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n2
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Task.Size()))
- n3, err := m.Task.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n3
- if m.Mode != nil {
- nn4, err := m.Mode.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += nn4
- }
- if m.Update != nil {
- dAtA[i] = 0x32
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Update.Size()))
- n5, err := m.Update.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n5
- }
- if len(m.Networks) > 0 {
- for _, msg := range m.Networks {
- dAtA[i] = 0x3a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- if m.Endpoint != nil {
- dAtA[i] = 0x42
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Endpoint.Size()))
- n6, err := m.Endpoint.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n6
- }
- if m.Rollback != nil {
- dAtA[i] = 0x4a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Rollback.Size()))
- n7, err := m.Rollback.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n7
- }
- return i, nil
- }
- func (m *ServiceSpec_Replicated) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.Replicated != nil {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Replicated.Size()))
- n8, err := m.Replicated.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n8
- }
- return i, nil
- }
- func (m *ServiceSpec_Global) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.Global != nil {
- dAtA[i] = 0x22
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Global.Size()))
- n9, err := m.Global.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n9
- }
- return i, nil
- }
- func (m *ServiceSpec_ReplicatedJob) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.ReplicatedJob != nil {
- dAtA[i] = 0x52
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.ReplicatedJob.Size()))
- n10, err := m.ReplicatedJob.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n10
- }
- return i, nil
- }
- func (m *ServiceSpec_GlobalJob) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.GlobalJob != nil {
- dAtA[i] = 0x5a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.GlobalJob.Size()))
- n11, err := m.GlobalJob.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n11
- }
- return i, nil
- }
- func (m *ReplicatedService) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ReplicatedService) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Replicas != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Replicas))
- }
- return i, nil
- }
- func (m *GlobalService) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *GlobalService) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- return i, nil
- }
- func (m *ReplicatedJob) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ReplicatedJob) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.MaxConcurrent != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.MaxConcurrent))
- }
- if m.TotalCompletions != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.TotalCompletions))
- }
- return i, nil
- }
- func (m *GlobalJob) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *GlobalJob) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- return i, nil
- }
- func (m *TaskSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *TaskSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Runtime != nil {
- nn12, err := m.Runtime.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += nn12
- }
- if m.Resources != nil {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Resources.Size()))
- n13, err := m.Resources.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n13
- }
- if m.Restart != nil {
- dAtA[i] = 0x22
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Restart.Size()))
- n14, err := m.Restart.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n14
- }
- if m.Placement != nil {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Placement.Size()))
- n15, err := m.Placement.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n15
- }
- if m.LogDriver != nil {
- dAtA[i] = 0x32
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.LogDriver.Size()))
- n16, err := m.LogDriver.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n16
- }
- if len(m.Networks) > 0 {
- for _, msg := range m.Networks {
- dAtA[i] = 0x3a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- if m.ForceUpdate != 0 {
- dAtA[i] = 0x48
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.ForceUpdate))
- }
- if len(m.ResourceReferences) > 0 {
- for _, msg := range m.ResourceReferences {
- dAtA[i] = 0x5a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- return i, nil
- }
- func (m *TaskSpec_Container) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.Container != nil {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Container.Size()))
- n17, err := m.Container.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n17
- }
- return i, nil
- }
- func (m *TaskSpec_Attachment) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.Attachment != nil {
- dAtA[i] = 0x42
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Attachment.Size()))
- n18, err := m.Attachment.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n18
- }
- return i, nil
- }
- func (m *TaskSpec_Generic) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- if m.Generic != nil {
- dAtA[i] = 0x52
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Generic.Size()))
- n19, err := m.Generic.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n19
- }
- return i, nil
- }
- func (m *ResourceReference) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ResourceReference) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.ResourceID) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.ResourceID)))
- i += copy(dAtA[i:], m.ResourceID)
- }
- if m.ResourceType != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.ResourceType))
- }
- return i, nil
- }
- func (m *GenericRuntimeSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *GenericRuntimeSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Kind) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Kind)))
- i += copy(dAtA[i:], m.Kind)
- }
- if m.Payload != nil {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Payload.Size()))
- n20, err := m.Payload.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n20
- }
- return i, nil
- }
- func (m *NetworkAttachmentSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *NetworkAttachmentSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.ContainerID) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.ContainerID)))
- i += copy(dAtA[i:], m.ContainerID)
- }
- return i, nil
- }
- func (m *ContainerSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ContainerSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Image) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Image)))
- i += copy(dAtA[i:], m.Image)
- }
- if len(m.Labels) > 0 {
- for k, _ := range m.Labels {
- dAtA[i] = 0x12
- i++
- v := m.Labels[k]
- mapSize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
- i = encodeVarintSpecs(dAtA, i, uint64(mapSize))
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(k)))
- i += copy(dAtA[i:], k)
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(v)))
- i += copy(dAtA[i:], v)
- }
- }
- if len(m.Command) > 0 {
- for _, s := range m.Command {
- dAtA[i] = 0x1a
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Args) > 0 {
- for _, s := range m.Args {
- dAtA[i] = 0x22
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Env) > 0 {
- for _, s := range m.Env {
- dAtA[i] = 0x2a
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Dir) > 0 {
- dAtA[i] = 0x32
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Dir)))
- i += copy(dAtA[i:], m.Dir)
- }
- if len(m.User) > 0 {
- dAtA[i] = 0x3a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.User)))
- i += copy(dAtA[i:], m.User)
- }
- if len(m.Mounts) > 0 {
- for _, msg := range m.Mounts {
- dAtA[i] = 0x42
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- if m.StopGracePeriod != nil {
- dAtA[i] = 0x4a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.StopGracePeriod.Size()))
- n21, err := m.StopGracePeriod.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n21
- }
- if m.PullOptions != nil {
- dAtA[i] = 0x52
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.PullOptions.Size()))
- n22, err := m.PullOptions.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n22
- }
- if len(m.Groups) > 0 {
- for _, s := range m.Groups {
- dAtA[i] = 0x5a
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Secrets) > 0 {
- for _, msg := range m.Secrets {
- dAtA[i] = 0x62
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- if m.TTY {
- dAtA[i] = 0x68
- i++
- if m.TTY {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if len(m.Hostname) > 0 {
- dAtA[i] = 0x72
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Hostname)))
- i += copy(dAtA[i:], m.Hostname)
- }
- if m.DNSConfig != nil {
- dAtA[i] = 0x7a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.DNSConfig.Size()))
- n23, err := m.DNSConfig.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n23
- }
- if m.Healthcheck != nil {
- dAtA[i] = 0x82
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Healthcheck.Size()))
- n24, err := m.Healthcheck.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n24
- }
- if len(m.Hosts) > 0 {
- for _, s := range m.Hosts {
- dAtA[i] = 0x8a
- i++
- dAtA[i] = 0x1
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if m.OpenStdin {
- dAtA[i] = 0x90
- i++
- dAtA[i] = 0x1
- i++
- if m.OpenStdin {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if m.ReadOnly {
- dAtA[i] = 0x98
- i++
- dAtA[i] = 0x1
- i++
- if m.ReadOnly {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if len(m.StopSignal) > 0 {
- dAtA[i] = 0xa2
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.StopSignal)))
- i += copy(dAtA[i:], m.StopSignal)
- }
- if len(m.Configs) > 0 {
- for _, msg := range m.Configs {
- dAtA[i] = 0xaa
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- if m.Privileges != nil {
- dAtA[i] = 0xb2
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Privileges.Size()))
- n25, err := m.Privileges.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n25
- }
- if m.Init != nil {
- dAtA[i] = 0xba
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Init.Size()))
- n26, err := m.Init.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n26
- }
- if m.Isolation != 0 {
- dAtA[i] = 0xc0
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Isolation))
- }
- if m.PidsLimit != 0 {
- dAtA[i] = 0xc8
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.PidsLimit))
- }
- if len(m.Sysctls) > 0 {
- for k, _ := range m.Sysctls {
- dAtA[i] = 0xd2
- i++
- dAtA[i] = 0x1
- i++
- v := m.Sysctls[k]
- mapSize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
- i = encodeVarintSpecs(dAtA, i, uint64(mapSize))
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(k)))
- i += copy(dAtA[i:], k)
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(v)))
- i += copy(dAtA[i:], v)
- }
- }
- if len(m.CapabilityAdd) > 0 {
- for _, s := range m.CapabilityAdd {
- dAtA[i] = 0xda
- i++
- dAtA[i] = 0x1
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.CapabilityDrop) > 0 {
- for _, s := range m.CapabilityDrop {
- dAtA[i] = 0xe2
- i++
- dAtA[i] = 0x1
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- return i, nil
- }
- func (m *ContainerSpec_PullOptions) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ContainerSpec_PullOptions) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.RegistryAuth) > 0 {
- dAtA[i] = 0x82
- i++
- dAtA[i] = 0x4
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.RegistryAuth)))
- i += copy(dAtA[i:], m.RegistryAuth)
- }
- return i, nil
- }
- func (m *ContainerSpec_DNSConfig) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ContainerSpec_DNSConfig) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Nameservers) > 0 {
- for _, s := range m.Nameservers {
- dAtA[i] = 0xa
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Search) > 0 {
- for _, s := range m.Search {
- dAtA[i] = 0x12
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- if len(m.Options) > 0 {
- for _, s := range m.Options {
- dAtA[i] = 0x1a
- i++
- l = len(s)
- for l >= 1<<7 {
- dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
- l >>= 7
- i++
- }
- dAtA[i] = uint8(l)
- i++
- i += copy(dAtA[i:], s)
- }
- }
- return i, nil
- }
- func (m *EndpointSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *EndpointSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mode != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Mode))
- }
- if len(m.Ports) > 0 {
- for _, msg := range m.Ports {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(msg.Size()))
- n, err := msg.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n
- }
- }
- return i, nil
- }
- func (m *NetworkSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *NetworkSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
- n27, err := m.Annotations.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n27
- if m.DriverConfig != nil {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.DriverConfig.Size()))
- n28, err := m.DriverConfig.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n28
- }
- if m.Ipv6Enabled {
- dAtA[i] = 0x18
- i++
- if m.Ipv6Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if m.Internal {
- dAtA[i] = 0x20
- i++
- if m.Internal {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if m.IPAM != nil {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.IPAM.Size()))
- n29, err := m.IPAM.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n29
- }
- if m.Attachable {
- dAtA[i] = 0x30
- i++
- if m.Attachable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if m.Ingress {
- dAtA[i] = 0x38
- i++
- if m.Ingress {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if m.ConfigFrom != nil {
- nn30, err := m.ConfigFrom.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += nn30
- }
- return i, nil
- }
- func (m *NetworkSpec_Network) MarshalTo(dAtA []byte) (int, error) {
- i := 0
- dAtA[i] = 0x42
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Network)))
- i += copy(dAtA[i:], m.Network)
- return i, nil
- }
- func (m *ClusterSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ClusterSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
- n31, err := m.Annotations.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n31
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.AcceptancePolicy.Size()))
- n32, err := m.AcceptancePolicy.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n32
- dAtA[i] = 0x1a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Orchestration.Size()))
- n33, err := m.Orchestration.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n33
- dAtA[i] = 0x22
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Raft.Size()))
- n34, err := m.Raft.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n34
- dAtA[i] = 0x2a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Dispatcher.Size()))
- n35, err := m.Dispatcher.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n35
- dAtA[i] = 0x32
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.CAConfig.Size()))
- n36, err := m.CAConfig.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n36
- dAtA[i] = 0x3a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.TaskDefaults.Size()))
- n37, err := m.TaskDefaults.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n37
- dAtA[i] = 0x42
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.EncryptionConfig.Size()))
- n38, err := m.EncryptionConfig.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n38
- return i, nil
- }
- func (m *SecretSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *SecretSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
- n39, err := m.Annotations.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n39
- if len(m.Data) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Data)))
- i += copy(dAtA[i:], m.Data)
- }
- if m.Templating != nil {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Templating.Size()))
- n40, err := m.Templating.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n40
- }
- if m.Driver != nil {
- dAtA[i] = 0x22
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Driver.Size()))
- n41, err := m.Driver.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n41
- }
- return i, nil
- }
- func (m *ConfigSpec) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *ConfigSpec) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Annotations.Size()))
- n42, err := m.Annotations.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n42
- if len(m.Data) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Data)))
- i += copy(dAtA[i:], m.Data)
- }
- if m.Templating != nil {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Templating.Size()))
- n43, err := m.Templating.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n43
- }
- return i, nil
- }
- func encodeVarintSpecs(dAtA []byte, offset int, v uint64) int {
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return offset + 1
- }
- func (m *NodeSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = m.Annotations.Size()
- n += 1 + l + sovSpecs(uint64(l))
- if m.DesiredRole != 0 {
- n += 1 + sovSpecs(uint64(m.DesiredRole))
- }
- if m.Membership != 0 {
- n += 1 + sovSpecs(uint64(m.Membership))
- }
- if m.Availability != 0 {
- n += 1 + sovSpecs(uint64(m.Availability))
- }
- return n
- }
- func (m *ServiceSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = m.Annotations.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.Task.Size()
- n += 1 + l + sovSpecs(uint64(l))
- if m.Mode != nil {
- n += m.Mode.Size()
- }
- if m.Update != nil {
- l = m.Update.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if len(m.Networks) > 0 {
- for _, e := range m.Networks {
- l = e.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if m.Endpoint != nil {
- l = m.Endpoint.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Rollback != nil {
- l = m.Rollback.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ServiceSpec_Replicated) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Replicated != nil {
- l = m.Replicated.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ServiceSpec_Global) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Global != nil {
- l = m.Global.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ServiceSpec_ReplicatedJob) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ReplicatedJob != nil {
- l = m.ReplicatedJob.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ServiceSpec_GlobalJob) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GlobalJob != nil {
- l = m.GlobalJob.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ReplicatedService) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Replicas != 0 {
- n += 1 + sovSpecs(uint64(m.Replicas))
- }
- return n
- }
- func (m *GlobalService) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- return n
- }
- func (m *ReplicatedJob) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MaxConcurrent != 0 {
- n += 1 + sovSpecs(uint64(m.MaxConcurrent))
- }
- if m.TotalCompletions != 0 {
- n += 1 + sovSpecs(uint64(m.TotalCompletions))
- }
- return n
- }
- func (m *GlobalJob) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- return n
- }
- func (m *TaskSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Runtime != nil {
- n += m.Runtime.Size()
- }
- if m.Resources != nil {
- l = m.Resources.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Restart != nil {
- l = m.Restart.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Placement != nil {
- l = m.Placement.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.LogDriver != nil {
- l = m.LogDriver.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if len(m.Networks) > 0 {
- for _, e := range m.Networks {
- l = e.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if m.ForceUpdate != 0 {
- n += 1 + sovSpecs(uint64(m.ForceUpdate))
- }
- if len(m.ResourceReferences) > 0 {
- for _, e := range m.ResourceReferences {
- l = e.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- return n
- }
- func (m *TaskSpec_Container) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Container != nil {
- l = m.Container.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *TaskSpec_Attachment) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Attachment != nil {
- l = m.Attachment.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *TaskSpec_Generic) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Generic != nil {
- l = m.Generic.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ResourceReference) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.ResourceType != 0 {
- n += 1 + sovSpecs(uint64(m.ResourceType))
- }
- return n
- }
- func (m *GenericRuntimeSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Kind)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Payload != nil {
- l = m.Payload.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *NetworkAttachmentSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.ContainerID)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ContainerSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Image)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if len(m.Labels) > 0 {
- for k, v := range m.Labels {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
- n += mapEntrySize + 1 + sovSpecs(uint64(mapEntrySize))
- }
- }
- if len(m.Command) > 0 {
- for _, s := range m.Command {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if len(m.Args) > 0 {
- for _, s := range m.Args {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if len(m.Env) > 0 {
- for _, s := range m.Env {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- l = len(m.Dir)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- l = len(m.User)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if len(m.Mounts) > 0 {
- for _, e := range m.Mounts {
- l = e.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if m.StopGracePeriod != nil {
- l = m.StopGracePeriod.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.PullOptions != nil {
- l = m.PullOptions.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if len(m.Groups) > 0 {
- for _, s := range m.Groups {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if len(m.Secrets) > 0 {
- for _, e := range m.Secrets {
- l = e.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if m.TTY {
- n += 2
- }
- l = len(m.Hostname)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.DNSConfig != nil {
- l = m.DNSConfig.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Healthcheck != nil {
- l = m.Healthcheck.Size()
- n += 2 + l + sovSpecs(uint64(l))
- }
- if len(m.Hosts) > 0 {
- for _, s := range m.Hosts {
- l = len(s)
- n += 2 + l + sovSpecs(uint64(l))
- }
- }
- if m.OpenStdin {
- n += 3
- }
- if m.ReadOnly {
- n += 3
- }
- l = len(m.StopSignal)
- if l > 0 {
- n += 2 + l + sovSpecs(uint64(l))
- }
- if len(m.Configs) > 0 {
- for _, e := range m.Configs {
- l = e.Size()
- n += 2 + l + sovSpecs(uint64(l))
- }
- }
- if m.Privileges != nil {
- l = m.Privileges.Size()
- n += 2 + l + sovSpecs(uint64(l))
- }
- if m.Init != nil {
- l = m.Init.Size()
- n += 2 + l + sovSpecs(uint64(l))
- }
- if m.Isolation != 0 {
- n += 2 + sovSpecs(uint64(m.Isolation))
- }
- if m.PidsLimit != 0 {
- n += 2 + sovSpecs(uint64(m.PidsLimit))
- }
- if len(m.Sysctls) > 0 {
- for k, v := range m.Sysctls {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
- n += mapEntrySize + 2 + sovSpecs(uint64(mapEntrySize))
- }
- }
- if len(m.CapabilityAdd) > 0 {
- for _, s := range m.CapabilityAdd {
- l = len(s)
- n += 2 + l + sovSpecs(uint64(l))
- }
- }
- if len(m.CapabilityDrop) > 0 {
- for _, s := range m.CapabilityDrop {
- l = len(s)
- n += 2 + l + sovSpecs(uint64(l))
- }
- }
- return n
- }
- func (m *ContainerSpec_PullOptions) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.RegistryAuth)
- if l > 0 {
- n += 2 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ContainerSpec_DNSConfig) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.Nameservers) > 0 {
- for _, s := range m.Nameservers {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if len(m.Search) > 0 {
- for _, s := range m.Search {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- if len(m.Options) > 0 {
- for _, s := range m.Options {
- l = len(s)
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- return n
- }
- func (m *EndpointSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Mode != 0 {
- n += 1 + sovSpecs(uint64(m.Mode))
- }
- if len(m.Ports) > 0 {
- for _, e := range m.Ports {
- l = e.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- }
- return n
- }
- func (m *NetworkSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = m.Annotations.Size()
- n += 1 + l + sovSpecs(uint64(l))
- if m.DriverConfig != nil {
- l = m.DriverConfig.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Ipv6Enabled {
- n += 2
- }
- if m.Internal {
- n += 2
- }
- if m.IPAM != nil {
- l = m.IPAM.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Attachable {
- n += 2
- }
- if m.Ingress {
- n += 2
- }
- if m.ConfigFrom != nil {
- n += m.ConfigFrom.Size()
- }
- return n
- }
- func (m *NetworkSpec_Network) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Network)
- n += 1 + l + sovSpecs(uint64(l))
- return n
- }
- func (m *ClusterSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = m.Annotations.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.AcceptancePolicy.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.Orchestration.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.Raft.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.Dispatcher.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.CAConfig.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.TaskDefaults.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = m.EncryptionConfig.Size()
- n += 1 + l + sovSpecs(uint64(l))
- return n
- }
- func (m *SecretSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = m.Annotations.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = len(m.Data)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Templating != nil {
- l = m.Templating.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Driver != nil {
- l = m.Driver.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func (m *ConfigSpec) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = m.Annotations.Size()
- n += 1 + l + sovSpecs(uint64(l))
- l = len(m.Data)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Templating != nil {
- l = m.Templating.Size()
- n += 1 + l + sovSpecs(uint64(l))
- }
- return n
- }
- func sovSpecs(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozSpecs(x uint64) (n int) {
- return sovSpecs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (this *NodeSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&NodeSpec{`,
- `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
- `DesiredRole:` + fmt.Sprintf("%v", this.DesiredRole) + `,`,
- `Membership:` + fmt.Sprintf("%v", this.Membership) + `,`,
- `Availability:` + fmt.Sprintf("%v", this.Availability) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ServiceSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ServiceSpec{`,
- `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
- `Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskSpec", "TaskSpec", 1), `&`, ``, 1) + `,`,
- `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
- `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "UpdateConfig", "UpdateConfig", 1) + `,`,
- `Networks:` + strings.Replace(fmt.Sprintf("%v", this.Networks), "NetworkAttachmentConfig", "NetworkAttachmentConfig", 1) + `,`,
- `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "EndpointSpec", "EndpointSpec", 1) + `,`,
- `Rollback:` + strings.Replace(fmt.Sprintf("%v", this.Rollback), "UpdateConfig", "UpdateConfig", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ServiceSpec_Replicated) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ServiceSpec_Replicated{`,
- `Replicated:` + strings.Replace(fmt.Sprintf("%v", this.Replicated), "ReplicatedService", "ReplicatedService", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ServiceSpec_Global) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ServiceSpec_Global{`,
- `Global:` + strings.Replace(fmt.Sprintf("%v", this.Global), "GlobalService", "GlobalService", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ServiceSpec_ReplicatedJob) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ServiceSpec_ReplicatedJob{`,
- `ReplicatedJob:` + strings.Replace(fmt.Sprintf("%v", this.ReplicatedJob), "ReplicatedJob", "ReplicatedJob", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ServiceSpec_GlobalJob) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ServiceSpec_GlobalJob{`,
- `GlobalJob:` + strings.Replace(fmt.Sprintf("%v", this.GlobalJob), "GlobalJob", "GlobalJob", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ReplicatedService) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ReplicatedService{`,
- `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalService) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalService{`,
- `}`,
- }, "")
- return s
- }
- func (this *ReplicatedJob) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ReplicatedJob{`,
- `MaxConcurrent:` + fmt.Sprintf("%v", this.MaxConcurrent) + `,`,
- `TotalCompletions:` + fmt.Sprintf("%v", this.TotalCompletions) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalJob) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalJob{`,
- `}`,
- }, "")
- return s
- }
- func (this *TaskSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&TaskSpec{`,
- `Runtime:` + fmt.Sprintf("%v", this.Runtime) + `,`,
- `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "ResourceRequirements", "ResourceRequirements", 1) + `,`,
- `Restart:` + strings.Replace(fmt.Sprintf("%v", this.Restart), "RestartPolicy", "RestartPolicy", 1) + `,`,
- `Placement:` + strings.Replace(fmt.Sprintf("%v", this.Placement), "Placement", "Placement", 1) + `,`,
- `LogDriver:` + strings.Replace(fmt.Sprintf("%v", this.LogDriver), "Driver", "Driver", 1) + `,`,
- `Networks:` + strings.Replace(fmt.Sprintf("%v", this.Networks), "NetworkAttachmentConfig", "NetworkAttachmentConfig", 1) + `,`,
- `ForceUpdate:` + fmt.Sprintf("%v", this.ForceUpdate) + `,`,
- `ResourceReferences:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ResourceReferences), "ResourceReference", "ResourceReference", 1), `&`, ``, 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *TaskSpec_Container) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&TaskSpec_Container{`,
- `Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "ContainerSpec", "ContainerSpec", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *TaskSpec_Attachment) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&TaskSpec_Attachment{`,
- `Attachment:` + strings.Replace(fmt.Sprintf("%v", this.Attachment), "NetworkAttachmentSpec", "NetworkAttachmentSpec", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *TaskSpec_Generic) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&TaskSpec_Generic{`,
- `Generic:` + strings.Replace(fmt.Sprintf("%v", this.Generic), "GenericRuntimeSpec", "GenericRuntimeSpec", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ResourceReference) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ResourceReference{`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `ResourceType:` + fmt.Sprintf("%v", this.ResourceType) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GenericRuntimeSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GenericRuntimeSpec{`,
- `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
- `Payload:` + strings.Replace(fmt.Sprintf("%v", this.Payload), "Any", "types.Any", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *NetworkAttachmentSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&NetworkAttachmentSpec{`,
- `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ContainerSpec) String() string {
- if this == nil {
- return "nil"
- }
- keysForLabels := make([]string, 0, len(this.Labels))
- for k, _ := range this.Labels {
- keysForLabels = append(keysForLabels, k)
- }
- github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
- mapStringForLabels := "map[string]string{"
- for _, k := range keysForLabels {
- mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
- }
- mapStringForLabels += "}"
- keysForSysctls := make([]string, 0, len(this.Sysctls))
- for k, _ := range this.Sysctls {
- keysForSysctls = append(keysForSysctls, k)
- }
- github_com_gogo_protobuf_sortkeys.Strings(keysForSysctls)
- mapStringForSysctls := "map[string]string{"
- for _, k := range keysForSysctls {
- mapStringForSysctls += fmt.Sprintf("%v: %v,", k, this.Sysctls[k])
- }
- mapStringForSysctls += "}"
- s := strings.Join([]string{`&ContainerSpec{`,
- `Image:` + fmt.Sprintf("%v", this.Image) + `,`,
- `Labels:` + mapStringForLabels + `,`,
- `Command:` + fmt.Sprintf("%v", this.Command) + `,`,
- `Args:` + fmt.Sprintf("%v", this.Args) + `,`,
- `Env:` + fmt.Sprintf("%v", this.Env) + `,`,
- `Dir:` + fmt.Sprintf("%v", this.Dir) + `,`,
- `User:` + fmt.Sprintf("%v", this.User) + `,`,
- `Mounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "Mount", 1), `&`, ``, 1) + `,`,
- `StopGracePeriod:` + strings.Replace(fmt.Sprintf("%v", this.StopGracePeriod), "Duration", "types.Duration", 1) + `,`,
- `PullOptions:` + strings.Replace(fmt.Sprintf("%v", this.PullOptions), "ContainerSpec_PullOptions", "ContainerSpec_PullOptions", 1) + `,`,
- `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
- `Secrets:` + strings.Replace(fmt.Sprintf("%v", this.Secrets), "SecretReference", "SecretReference", 1) + `,`,
- `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`,
- `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`,
- `DNSConfig:` + strings.Replace(fmt.Sprintf("%v", this.DNSConfig), "ContainerSpec_DNSConfig", "ContainerSpec_DNSConfig", 1) + `,`,
- `Healthcheck:` + strings.Replace(fmt.Sprintf("%v", this.Healthcheck), "HealthConfig", "HealthConfig", 1) + `,`,
- `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`,
- `OpenStdin:` + fmt.Sprintf("%v", this.OpenStdin) + `,`,
- `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`,
- `StopSignal:` + fmt.Sprintf("%v", this.StopSignal) + `,`,
- `Configs:` + strings.Replace(fmt.Sprintf("%v", this.Configs), "ConfigReference", "ConfigReference", 1) + `,`,
- `Privileges:` + strings.Replace(fmt.Sprintf("%v", this.Privileges), "Privileges", "Privileges", 1) + `,`,
- `Init:` + strings.Replace(fmt.Sprintf("%v", this.Init), "BoolValue", "types.BoolValue", 1) + `,`,
- `Isolation:` + fmt.Sprintf("%v", this.Isolation) + `,`,
- `PidsLimit:` + fmt.Sprintf("%v", this.PidsLimit) + `,`,
- `Sysctls:` + mapStringForSysctls + `,`,
- `CapabilityAdd:` + fmt.Sprintf("%v", this.CapabilityAdd) + `,`,
- `CapabilityDrop:` + fmt.Sprintf("%v", this.CapabilityDrop) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ContainerSpec_PullOptions) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ContainerSpec_PullOptions{`,
- `RegistryAuth:` + fmt.Sprintf("%v", this.RegistryAuth) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ContainerSpec_DNSConfig) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ContainerSpec_DNSConfig{`,
- `Nameservers:` + fmt.Sprintf("%v", this.Nameservers) + `,`,
- `Search:` + fmt.Sprintf("%v", this.Search) + `,`,
- `Options:` + fmt.Sprintf("%v", this.Options) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *EndpointSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&EndpointSpec{`,
- `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
- `Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "PortConfig", "PortConfig", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *NetworkSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&NetworkSpec{`,
- `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
- `DriverConfig:` + strings.Replace(fmt.Sprintf("%v", this.DriverConfig), "Driver", "Driver", 1) + `,`,
- `Ipv6Enabled:` + fmt.Sprintf("%v", this.Ipv6Enabled) + `,`,
- `Internal:` + fmt.Sprintf("%v", this.Internal) + `,`,
- `IPAM:` + strings.Replace(fmt.Sprintf("%v", this.IPAM), "IPAMOptions", "IPAMOptions", 1) + `,`,
- `Attachable:` + fmt.Sprintf("%v", this.Attachable) + `,`,
- `Ingress:` + fmt.Sprintf("%v", this.Ingress) + `,`,
- `ConfigFrom:` + fmt.Sprintf("%v", this.ConfigFrom) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *NetworkSpec_Network) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&NetworkSpec_Network{`,
- `Network:` + fmt.Sprintf("%v", this.Network) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ClusterSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ClusterSpec{`,
- `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
- `AcceptancePolicy:` + strings.Replace(strings.Replace(this.AcceptancePolicy.String(), "AcceptancePolicy", "AcceptancePolicy", 1), `&`, ``, 1) + `,`,
- `Orchestration:` + strings.Replace(strings.Replace(this.Orchestration.String(), "OrchestrationConfig", "OrchestrationConfig", 1), `&`, ``, 1) + `,`,
- `Raft:` + strings.Replace(strings.Replace(this.Raft.String(), "RaftConfig", "RaftConfig", 1), `&`, ``, 1) + `,`,
- `Dispatcher:` + strings.Replace(strings.Replace(this.Dispatcher.String(), "DispatcherConfig", "DispatcherConfig", 1), `&`, ``, 1) + `,`,
- `CAConfig:` + strings.Replace(strings.Replace(this.CAConfig.String(), "CAConfig", "CAConfig", 1), `&`, ``, 1) + `,`,
- `TaskDefaults:` + strings.Replace(strings.Replace(this.TaskDefaults.String(), "TaskDefaults", "TaskDefaults", 1), `&`, ``, 1) + `,`,
- `EncryptionConfig:` + strings.Replace(strings.Replace(this.EncryptionConfig.String(), "EncryptionConfig", "EncryptionConfig", 1), `&`, ``, 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *SecretSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&SecretSpec{`,
- `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
- `Data:` + fmt.Sprintf("%v", this.Data) + `,`,
- `Templating:` + strings.Replace(fmt.Sprintf("%v", this.Templating), "Driver", "Driver", 1) + `,`,
- `Driver:` + strings.Replace(fmt.Sprintf("%v", this.Driver), "Driver", "Driver", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *ConfigSpec) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ConfigSpec{`,
- `Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
- `Data:` + fmt.Sprintf("%v", this.Data) + `,`,
- `Templating:` + strings.Replace(fmt.Sprintf("%v", this.Templating), "Driver", "Driver", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func valueToStringSpecs(v interface{}) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("*%v", pv)
- }
- func (m *NodeSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NodeSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NodeSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DesiredRole", wireType)
- }
- m.DesiredRole = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DesiredRole |= NodeRole(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType)
- }
- m.Membership = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Membership |= NodeSpec_Membership(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Availability", wireType)
- }
- m.Availability = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Availability |= NodeSpec_Availability(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ServiceSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ServiceSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Replicated", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &ReplicatedService{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Mode = &ServiceSpec_Replicated{v}
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Global", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GlobalService{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Mode = &ServiceSpec_Global{v}
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Update == nil {
- m.Update = &UpdateConfig{}
- }
- if err := m.Update.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Networks = append(m.Networks, &NetworkAttachmentConfig{})
- if err := m.Networks[len(m.Networks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Endpoint == nil {
- m.Endpoint = &EndpointSpec{}
- }
- if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rollback", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Rollback == nil {
- m.Rollback = &UpdateConfig{}
- }
- if err := m.Rollback.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReplicatedJob", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &ReplicatedJob{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Mode = &ServiceSpec_ReplicatedJob{v}
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalJob", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GlobalJob{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Mode = &ServiceSpec_GlobalJob{v}
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ReplicatedService) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ReplicatedService: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ReplicatedService: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
- }
- m.Replicas = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Replicas |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalService) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalService: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalService: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ReplicatedJob) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ReplicatedJob: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ReplicatedJob: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxConcurrent", wireType)
- }
- m.MaxConcurrent = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MaxConcurrent |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TotalCompletions", wireType)
- }
- m.TotalCompletions = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TotalCompletions |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalJob) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalJob: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalJob: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *TaskSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: TaskSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: TaskSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &ContainerSpec{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Runtime = &TaskSpec_Container{v}
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Resources == nil {
- m.Resources = &ResourceRequirements{}
- }
- if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Restart", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Restart == nil {
- m.Restart = &RestartPolicy{}
- }
- if err := m.Restart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Placement", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Placement == nil {
- m.Placement = &Placement{}
- }
- if err := m.Placement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LogDriver", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.LogDriver == nil {
- m.LogDriver = &Driver{}
- }
- if err := m.LogDriver.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Networks = append(m.Networks, &NetworkAttachmentConfig{})
- if err := m.Networks[len(m.Networks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Attachment", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &NetworkAttachmentSpec{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Runtime = &TaskSpec_Attachment{v}
- iNdEx = postIndex
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ForceUpdate", wireType)
- }
- m.ForceUpdate = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ForceUpdate |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Generic", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GenericRuntimeSpec{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Runtime = &TaskSpec_Generic{v}
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceReferences", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceReferences = append(m.ResourceReferences, ResourceReference{})
- if err := m.ResourceReferences[len(m.ResourceReferences)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ResourceReference) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ResourceReference: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ResourceReference: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceType", wireType)
- }
- m.ResourceType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResourceType |= ResourceType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GenericRuntimeSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GenericRuntimeSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GenericRuntimeSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Kind = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Payload == nil {
- m.Payload = &types.Any{}
- }
- if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *NetworkAttachmentSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NetworkAttachmentSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NetworkAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ContainerID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ContainerSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ContainerSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ContainerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Image = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Labels == nil {
- m.Labels = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthSpecs
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthSpecs
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthSpecs
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthSpecs
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Labels[mapkey] = mapvalue
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Command = append(m.Command, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Env = append(m.Env, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Dir", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Dir = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.User = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Mounts = append(m.Mounts, Mount{})
- if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field StopGracePeriod", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.StopGracePeriod == nil {
- m.StopGracePeriod = &types.Duration{}
- }
- if err := m.StopGracePeriod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PullOptions", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.PullOptions == nil {
- m.PullOptions = &ContainerSpec_PullOptions{}
- }
- if err := m.PullOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Secrets", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Secrets = append(m.Secrets, &SecretReference{})
- if err := m.Secrets[len(m.Secrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.TTY = bool(v != 0)
- case 14:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Hostname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 15:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DNSConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.DNSConfig == nil {
- m.DNSConfig = &ContainerSpec_DNSConfig{}
- }
- if err := m.DNSConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 16:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Healthcheck", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Healthcheck == nil {
- m.Healthcheck = &HealthConfig{}
- }
- if err := m.Healthcheck.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 17:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 18:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OpenStdin", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.OpenStdin = bool(v != 0)
- case 19:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ReadOnly = bool(v != 0)
- case 20:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field StopSignal", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.StopSignal = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 21:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Configs", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Configs = append(m.Configs, &ConfigReference{})
- if err := m.Configs[len(m.Configs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 22:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Privileges", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Privileges == nil {
- m.Privileges = &Privileges{}
- }
- if err := m.Privileges.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 23:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Init", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Init == nil {
- m.Init = &types.BoolValue{}
- }
- if err := m.Init.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 24:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Isolation", wireType)
- }
- m.Isolation = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Isolation |= ContainerSpec_Isolation(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 25:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PidsLimit", wireType)
- }
- m.PidsLimit = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PidsLimit |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 26:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sysctls", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Sysctls == nil {
- m.Sysctls = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthSpecs
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthSpecs
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthSpecs
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthSpecs
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Sysctls[mapkey] = mapvalue
- iNdEx = postIndex
- case 27:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CapabilityAdd", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.CapabilityAdd = append(m.CapabilityAdd, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 28:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CapabilityDrop", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.CapabilityDrop = append(m.CapabilityDrop, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ContainerSpec_PullOptions) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: PullOptions: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: PullOptions: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 64:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RegistryAuth", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RegistryAuth = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ContainerSpec_DNSConfig) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DNSConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DNSConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nameservers", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nameservers = append(m.Nameservers, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Search", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Search = append(m.Search, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Options = append(m.Options, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *EndpointSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: EndpointSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: EndpointSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
- }
- m.Mode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mode |= EndpointSpec_ResolutionMode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Ports = append(m.Ports, &PortConfig{})
- if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *NetworkSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NetworkSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NetworkSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DriverConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.DriverConfig == nil {
- m.DriverConfig = &Driver{}
- }
- if err := m.DriverConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Ipv6Enabled = bool(v != 0)
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Internal", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Internal = bool(v != 0)
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field IPAM", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.IPAM == nil {
- m.IPAM = &IPAMOptions{}
- }
- if err := m.IPAM.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Attachable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Attachable = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Ingress = bool(v != 0)
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ConfigFrom = &NetworkSpec_Network{string(dAtA[iNdEx:postIndex])}
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ClusterSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ClusterSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ClusterSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AcceptancePolicy", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.AcceptancePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Orchestration", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Orchestration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Raft", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Raft.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Dispatcher", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Dispatcher.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CAConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.CAConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TaskDefaults", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.TaskDefaults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field EncryptionConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.EncryptionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *SecretSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SecretSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SecretSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
- if m.Data == nil {
- m.Data = []byte{}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Templating", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Templating == nil {
- m.Templating = &Driver{}
- }
- if err := m.Templating.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Driver == nil {
- m.Driver = &Driver{}
- }
- if err := m.Driver.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *ConfigSpec) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ConfigSpec: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ConfigSpec: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Annotations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
- if m.Data == nil {
- m.Data = []byte{}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Templating", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSpecs
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSpecs
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Templating == nil {
- m.Templating = &Driver{}
- }
- if err := m.Templating.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSpecs(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthSpecs
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipSpecs(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- return iNdEx, nil
- case 1:
- iNdEx += 8
- return iNdEx, nil
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthSpecs
- }
- iNdEx += length
- if iNdEx < 0 {
- return 0, ErrInvalidLengthSpecs
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- innerWire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- innerWireType := int(innerWire & 0x7)
- if innerWireType == 4 {
- break
- }
- next, err := skipSpecs(dAtA[start:])
- if err != nil {
- return 0, err
- }
- iNdEx = start + next
- if iNdEx < 0 {
- return 0, ErrInvalidLengthSpecs
- }
- }
- return iNdEx, nil
- case 4:
- return iNdEx, nil
- case 5:
- iNdEx += 4
- return iNdEx, nil
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- }
- panic("unreachable")
- }
- var (
- ErrInvalidLengthSpecs = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowSpecs = fmt.Errorf("proto: integer overflow")
- )
|