1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707 |
- // 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"`
- // Ulimits defines the list of ulimits to set in the container. This option
- // is equivalent to passing --ulimit to docker run.
- Ulimits []*ContainerSpec_Ulimit `protobuf:"bytes,29,rep,name=ulimits,proto3" json:"ulimits,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
- type ContainerSpec_Ulimit struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Soft int64 `protobuf:"varint,2,opt,name=soft,proto3" json:"soft,omitempty"`
- Hard int64 `protobuf:"varint,3,opt,name=hard,proto3" json:"hard,omitempty"`
- }
- func (m *ContainerSpec_Ulimit) Reset() { *m = ContainerSpec_Ulimit{} }
- func (*ContainerSpec_Ulimit) ProtoMessage() {}
- func (*ContainerSpec_Ulimit) Descriptor() ([]byte, []int) {
- return fileDescriptor_6589acc608f7d4fd, []int{10, 4}
- }
- func (m *ContainerSpec_Ulimit) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *ContainerSpec_Ulimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ContainerSpec_Ulimit.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_Ulimit) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ContainerSpec_Ulimit.Merge(m, src)
- }
- func (m *ContainerSpec_Ulimit) XXX_Size() int {
- return m.Size()
- }
- func (m *ContainerSpec_Ulimit) XXX_DiscardUnknown() {
- xxx_messageInfo_ContainerSpec_Ulimit.DiscardUnknown(m)
- }
- var xxx_messageInfo_ContainerSpec_Ulimit 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((*ContainerSpec_Ulimit)(nil), "docker.swarmkit.v1.ContainerSpec.Ulimit")
- 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{
- // 2363 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, 0x49, 0x20, 0x0c, 0xcb,
- 0x36, 0x6d, 0xd7, 0x0b, 0xd6, 0xcb, 0xb8, 0x1c, 0x7f, 0xc4, 0x49, 0x00, 0x02, 0x96, 0x60, 0x49,
- 0x14, 0x6a, 0x40, 0x29, 0x51, 0x55, 0xaa, 0x50, 0x83, 0xdd, 0x21, 0xb0, 0xe1, 0x62, 0x67, 0x33,
- 0x3b, 0xa0, 0x8d, 0x5b, 0x8e, 0x2e, 0xe5, 0x92, 0x3f, 0xc0, 0x53, 0x2a, 0xa7, 0x5c, 0x92, 0x7f,
- 0x90, 0xa3, 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, 0xcf, 0x4c, 0x77,
- 0x4f, 0xf7, 0xc2, 0x7b, 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, 0x8a,
- 0x2f, 0x66, 0x3e, 0xd5, 0xfc, 0xca, 0xf5, 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, 0xfe, 0x4e, 0xbc, 0xd9, 0x2a, 0xea, 0x97, 0x9c, 0xf8, 0x3e, 0xe5, 0x7a,
- 0xc1, 0xfa, 0x59, 0x06, 0xf2, 0x87, 0xcc, 0xa6, 0x7d, 0x9f, 0x5a, 0xe8, 0x0e, 0x18, 0xc4, 0xf3,
- 0x98, 0x50, 0xba, 0x03, 0x33, 0x5d, 0x4b, 0xef, 0x1a, 0xfb, 0x3b, 0x8d, 0x67, 0xf7, 0xd4, 0x68,
- 0xce, 0x61, 0xad, 0xcc, 0x37, 0xe7, 0x3b, 0x29, 0x9c, 0x64, 0xa2, 0x9f, 0x41, 0xd1, 0xa6, 0x81,
- 0xc3, 0xa9, 0x3d, 0xe0, 0xcc, 0xa5, 0xe6, 0x5a, 0x2d, 0xbd, 0xbb, 0xb9, 0x7f, 0x73, 0x99, 0x26,
- 0xb9, 0x38, 0x66, 0x2e, 0xc5, 0x86, 0x66, 0xc8, 0x09, 0xba, 0x03, 0x30, 0xa1, 0x93, 0x21, 0xe5,
- 0xc1, 0xd8, 0xf1, 0xcd, 0x75, 0x45, 0x7f, 0x67, 0x15, 0x5d, 0xda, 0xde, 0x78, 0x10, 0xc3, 0x71,
- 0x82, 0x8a, 0x1e, 0x40, 0x91, 0x9c, 0x12, 0xc7, 0x25, 0x43, 0xc7, 0x75, 0xc4, 0xcc, 0xcc, 0x28,
- 0x55, 0xef, 0x3e, 0x57, 0x55, 0x33, 0x41, 0xc0, 0x0b, 0xf4, 0xba, 0x0d, 0x30, 0x5f, 0x08, 0xbd,
- 0x0d, 0xb9, 0x5e, 0xe7, 0xb0, 0xdd, 0x3d, 0xbc, 0x53, 0x4e, 0x55, 0xb6, 0x9f, 0x9e, 0xd5, 0x5e,
- 0x95, 0x3a, 0xe6, 0x80, 0x1e, 0xf5, 0x6c, 0xc7, 0x1b, 0xa1, 0x5d, 0xc8, 0x37, 0x0f, 0x0e, 0x3a,
- 0xbd, 0xa3, 0x4e, 0xbb, 0x9c, 0xae, 0x54, 0x9e, 0x9e, 0xd5, 0x5e, 0x5b, 0x04, 0x36, 0x2d, 0x8b,
- 0xfa, 0x82, 0xda, 0x95, 0xcc, 0xd7, 0x7f, 0xa8, 0xa6, 0xea, 0x5f, 0xa7, 0xa1, 0x98, 0x34, 0x02,
- 0xbd, 0x0d, 0xd9, 0xe6, 0xc1, 0x51, 0xf7, 0x71, 0xa7, 0x9c, 0x9a, 0xd3, 0x93, 0x88, 0xa6, 0x25,
- 0x9c, 0x53, 0x8a, 0x6e, 0xc3, 0x46, 0xaf, 0xf9, 0xa8, 0xdf, 0x29, 0xa7, 0xe7, 0xe6, 0x24, 0x61,
- 0x3d, 0x32, 0x0d, 0x14, 0xaa, 0x8d, 0x9b, 0xdd, 0xc3, 0xf2, 0xda, 0x72, 0x54, 0x9b, 0x13, 0xc7,
- 0xd3, 0xa6, 0xfc, 0x69, 0x03, 0x8c, 0x3e, 0xe5, 0xa7, 0x8e, 0xf5, 0x92, 0x5d, 0xe4, 0x43, 0xc8,
- 0x08, 0x12, 0x9c, 0x28, 0xd7, 0x30, 0x96, 0xbb, 0xc6, 0x11, 0x09, 0x4e, 0xe4, 0xa2, 0x9a, 0xae,
- 0xf0, 0xd2, 0x33, 0x38, 0xf5, 0x5d, 0xc7, 0x22, 0x82, 0xda, 0xca, 0x33, 0x8c, 0xfd, 0xb7, 0x96,
- 0xb1, 0x71, 0x8c, 0xd2, 0xf6, 0xdf, 0x4d, 0xe1, 0x04, 0x15, 0x7d, 0x0a, 0xd9, 0x91, 0xcb, 0x86,
- 0xc4, 0x55, 0x3e, 0x61, 0xec, 0xbf, 0xb1, 0x4c, 0xc9, 0x1d, 0x85, 0x98, 0x2b, 0xd0, 0x14, 0xf4,
- 0x05, 0x6c, 0xce, 0x55, 0x0d, 0x7e, 0xcd, 0x86, 0x26, 0xac, 0x56, 0x32, 0xb7, 0xe4, 0x0b, 0x36,
- 0xbc, 0x9b, 0xc2, 0x25, 0x9e, 0x14, 0xa0, 0x9f, 0x02, 0x84, 0x5a, 0x95, 0x1e, 0x43, 0xe9, 0xb9,
- 0xb5, 0xda, 0x98, 0x50, 0x47, 0x61, 0x14, 0x4d, 0xd0, 0x47, 0x90, 0x9d, 0xfa, 0x36, 0x11, 0xd4,
- 0xcc, 0x2a, 0x6e, 0x6d, 0x19, 0xf7, 0x91, 0x42, 0x1c, 0x30, 0xef, 0xd8, 0x19, 0x61, 0x8d, 0x47,
- 0x3f, 0x81, 0x3c, 0x67, 0xae, 0x3b, 0x24, 0xd6, 0x89, 0x59, 0x78, 0x41, 0x6e, 0xcc, 0x40, 0xf7,
- 0x20, 0xef, 0x51, 0xf1, 0x25, 0xe3, 0x27, 0x81, 0x99, 0xab, 0xad, 0xef, 0x1a, 0xfb, 0xef, 0x2f,
- 0x0d, 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, 0xdd, 0x02, 0xc7, 0x8c, 0x56, 0x16, 0x32, 0x13, 0x66, 0xd3, 0xfa, 0x1e, 0x6c, 0x3d, 0x73,
- 0xed, 0xa8, 0x02, 0x79, 0x7d, 0xe0, 0xa1, 0xbf, 0x66, 0x70, 0x3c, 0xaf, 0x5f, 0x83, 0xd2, 0xc2,
- 0x15, 0xd7, 0x2d, 0x28, 0x2d, 0x5c, 0x17, 0x7a, 0x0b, 0x36, 0x27, 0xe4, 0xab, 0x81, 0xc5, 0x3c,
- 0x6b, 0xca, 0x39, 0xf5, 0x84, 0xd6, 0x51, 0x9a, 0x90, 0xaf, 0x0e, 0x62, 0x21, 0x7a, 0x1f, 0xb6,
- 0x04, 0x13, 0xc4, 0x1d, 0x58, 0x6c, 0xe2, 0xbb, 0x34, 0x8c, 0x8e, 0x35, 0x85, 0x2c, 0xab, 0x0f,
- 0x07, 0x73, 0x79, 0xdd, 0x80, 0x42, 0x7c, 0x97, 0xf5, 0x3f, 0x6f, 0x40, 0x3e, 0xf2, 0x74, 0x74,
- 0x0f, 0x80, 0xc4, 0x07, 0xa5, 0x0f, 0xe2, 0xdd, 0x17, 0x3a, 0x55, 0x49, 0x97, 0x1e, 0x3e, 0xa7,
- 0xa3, 0x26, 0x14, 0x2c, 0xe6, 0x09, 0xe2, 0x78, 0x94, 0xeb, 0x48, 0x5d, 0xea, 0x9f, 0x07, 0x11,
- 0x48, 0xeb, 0x98, 0xb3, 0x50, 0x0b, 0x72, 0x23, 0xea, 0x51, 0xee, 0x58, 0xda, 0xc1, 0xdf, 0x5e,
- 0xea, 0x98, 0x21, 0x04, 0x4f, 0x3d, 0xe1, 0x4c, 0xa8, 0xd6, 0x12, 0x11, 0xd1, 0xe7, 0x50, 0xe0,
- 0x34, 0x60, 0x53, 0x6e, 0xd1, 0x40, 0x87, 0xfb, 0xee, 0xf2, 0x30, 0x09, 0x41, 0x98, 0xfe, 0x66,
- 0xea, 0x70, 0x2a, 0xb7, 0x10, 0xe0, 0x39, 0x15, 0x7d, 0x0a, 0x39, 0x4e, 0x03, 0x41, 0xb8, 0x78,
- 0x5e, 0xc4, 0xe2, 0x10, 0xd2, 0x63, 0xae, 0x63, 0xcd, 0x70, 0xc4, 0x40, 0x9f, 0x42, 0xc1, 0x77,
- 0x89, 0xa5, 0xb4, 0x9a, 0x1b, 0xab, 0x63, 0xac, 0x17, 0x81, 0xf0, 0x1c, 0x8f, 0x3e, 0x06, 0x70,
- 0xd9, 0x68, 0x60, 0x73, 0xe7, 0x94, 0x72, 0x1d, 0x65, 0x95, 0x65, 0xec, 0xb6, 0x42, 0xe0, 0x82,
- 0xcb, 0x46, 0xe1, 0x10, 0xdd, 0xf9, 0xaf, 0x82, 0x24, 0x11, 0x20, 0x6f, 0x40, 0xf1, 0x98, 0x71,
- 0x8b, 0x0e, 0x74, 0xac, 0x17, 0x94, 0x6f, 0x19, 0x4a, 0x16, 0x06, 0x28, 0xfa, 0x15, 0xbc, 0x12,
- 0x9d, 0xd6, 0x80, 0xd3, 0x63, 0xca, 0xa9, 0x27, 0x8f, 0xdc, 0x50, 0xcb, 0xbe, 0xf5, 0xfc, 0x23,
- 0xd7, 0x68, 0x9d, 0x6a, 0x11, 0xbf, 0xfc, 0x21, 0x68, 0x15, 0x20, 0xc7, 0xc3, 0x0b, 0xae, 0xff,
- 0x2e, 0x2d, 0xe3, 0xec, 0x12, 0x02, 0xed, 0x81, 0x11, 0x2f, 0xef, 0xd8, 0xca, 0xe1, 0x0a, 0xad,
- 0xcd, 0x8b, 0xf3, 0x1d, 0x88, 0xb0, 0xdd, 0xb6, 0xcc, 0xc0, 0x7a, 0x6c, 0xa3, 0x0e, 0x94, 0x62,
- 0x82, 0x2c, 0x82, 0x74, 0x99, 0x50, 0x7b, 0x9e, 0xa5, 0x47, 0x33, 0x9f, 0xe2, 0x22, 0x4f, 0xcc,
- 0xea, 0xbf, 0x04, 0xf4, 0xac, 0x03, 0x22, 0x04, 0x99, 0x13, 0xc7, 0xd3, 0x66, 0x60, 0x35, 0x46,
- 0x0d, 0xc8, 0xf9, 0x64, 0xe6, 0x32, 0x62, 0x6b, 0x3f, 0xbc, 0xde, 0x08, 0xcb, 0xa3, 0x46, 0x54,
- 0x1e, 0x35, 0x9a, 0xde, 0x0c, 0x47, 0xa0, 0xfa, 0x3d, 0x78, 0x75, 0x69, 0x9c, 0xa1, 0x7d, 0x28,
- 0xc6, 0x31, 0x32, 0xdf, 0xeb, 0xb5, 0x8b, 0xf3, 0x1d, 0x23, 0x0e, 0xa6, 0x6e, 0x1b, 0x1b, 0x31,
- 0xa8, 0x6b, 0xd7, 0xff, 0xba, 0x09, 0xa5, 0x85, 0x48, 0x43, 0xd7, 0x61, 0xc3, 0x99, 0x90, 0x11,
- 0xd5, 0x36, 0x86, 0x13, 0xd4, 0x81, 0xac, 0x4b, 0x86, 0xd4, 0x95, 0xb1, 0x22, 0x2f, 0xee, 0xff,
- 0xae, 0x0c, 0xd9, 0xc6, 0x7d, 0x85, 0xef, 0x78, 0x82, 0xcf, 0xb0, 0x26, 0x23, 0x13, 0x72, 0x16,
- 0x9b, 0x4c, 0x88, 0x27, 0x1f, 0xc9, 0xf5, 0xdd, 0x02, 0x8e, 0xa6, 0xf2, 0x64, 0x08, 0x1f, 0x05,
- 0x66, 0x46, 0x89, 0xd5, 0x58, 0xe6, 0xc8, 0x31, 0x0b, 0x84, 0x47, 0x26, 0xd4, 0xdc, 0x54, 0xd6,
- 0xc4, 0x73, 0x54, 0x86, 0x75, 0xea, 0x9d, 0x9a, 0x1b, 0x0a, 0x2e, 0x87, 0x52, 0x62, 0x3b, 0x61,
- 0x20, 0x14, 0xb0, 0x1c, 0x4a, 0x9d, 0xd3, 0x80, 0x72, 0x33, 0x17, 0x9e, 0xb6, 0x1c, 0xa3, 0xd7,
- 0x20, 0x3b, 0xe2, 0x6c, 0xea, 0x87, 0x1e, 0x58, 0xc0, 0x7a, 0x26, 0xdf, 0x3b, 0x9f, 0x3b, 0xa7,
- 0x8e, 0x4b, 0x47, 0x34, 0x30, 0x5f, 0x53, 0x17, 0x51, 0x5d, 0x1a, 0x8b, 0x31, 0x0a, 0x27, 0x18,
- 0xa8, 0x01, 0x19, 0xc7, 0x73, 0x84, 0xf9, 0xba, 0x8e, 0xc3, 0xcb, 0x57, 0xd8, 0x62, 0xcc, 0x7d,
- 0x4c, 0xdc, 0x29, 0xc5, 0x0a, 0x87, 0xb6, 0x61, 0x5d, 0x88, 0x99, 0x59, 0xaa, 0xa5, 0x77, 0xf3,
- 0xad, 0xdc, 0xc5, 0xf9, 0xce, 0xfa, 0xd1, 0xd1, 0x13, 0x2c, 0x65, 0xe8, 0x16, 0x00, 0xf3, 0xa9,
- 0x37, 0x08, 0x84, 0xed, 0x78, 0x26, 0x92, 0x08, 0x5c, 0x90, 0x92, 0xbe, 0x14, 0xa0, 0x1b, 0x32,
- 0x73, 0x11, 0x7b, 0xc0, 0x3c, 0x77, 0x66, 0xbe, 0xa2, 0xbe, 0xe6, 0xa5, 0xe0, 0xa1, 0xe7, 0xce,
- 0xd0, 0x0e, 0x18, 0x81, 0x60, 0xfe, 0x20, 0x70, 0x46, 0x1e, 0x71, 0xcd, 0xeb, 0x6a, 0xe7, 0x20,
- 0x45, 0x7d, 0x25, 0x41, 0x3f, 0x86, 0xec, 0x84, 0x4d, 0x3d, 0x11, 0x98, 0x79, 0x75, 0x91, 0xdb,
- 0xcb, 0xf6, 0xf8, 0x40, 0x22, 0x74, 0xd4, 0x69, 0x38, 0xea, 0xc0, 0x96, 0xd2, 0x3c, 0xe2, 0xc4,
- 0xa2, 0x03, 0x9f, 0x72, 0x87, 0xd9, 0xfa, 0x7d, 0xde, 0x7e, 0x66, 0xb7, 0x6d, 0xdd, 0x0a, 0xe0,
- 0x6b, 0x92, 0x73, 0x47, 0x52, 0x7a, 0x8a, 0x81, 0x7a, 0x50, 0xf4, 0xa7, 0xae, 0x3b, 0x60, 0x7e,
- 0xf8, 0x1a, 0x85, 0x09, 0xfc, 0x05, 0xdc, 0xa9, 0x37, 0x75, 0xdd, 0x87, 0x21, 0x09, 0x1b, 0xfe,
- 0x7c, 0x82, 0x3e, 0x83, 0x5c, 0x40, 0x2d, 0x4e, 0x45, 0x60, 0x16, 0xd5, 0x96, 0xde, 0x5c, 0xa6,
- 0xac, 0xaf, 0x20, 0x71, 0x5e, 0xc0, 0x11, 0x47, 0xd2, 0x2d, 0x95, 0xd6, 0x02, 0xf3, 0xd5, 0xd5,
- 0x74, 0x9d, 0xf9, 0xe6, 0x74, 0xcd, 0x91, 0xe1, 0x22, 0x7d, 0x32, 0x30, 0xb7, 0x94, 0x3b, 0x85,
- 0x13, 0xf4, 0x04, 0xc0, 0xf6, 0x82, 0x41, 0x08, 0x32, 0xaf, 0xa9, 0x3d, 0xbe, 0x7f, 0xf5, 0x1e,
- 0xdb, 0x87, 0x7d, 0x5d, 0x87, 0x94, 0x2e, 0xce, 0x77, 0x0a, 0xf1, 0x14, 0x17, 0x6c, 0x2f, 0x08,
- 0x87, 0xa8, 0x05, 0xc6, 0x98, 0x12, 0x57, 0x8c, 0xad, 0x31, 0xb5, 0x4e, 0xcc, 0xf2, 0xea, 0xb2,
- 0xe4, 0xae, 0x82, 0x69, 0x0d, 0x49, 0x12, 0xea, 0x42, 0xc1, 0x09, 0x98, 0xab, 0xae, 0xc8, 0x34,
- 0x55, 0x7e, 0x7b, 0x01, 0xeb, 0xba, 0x11, 0x05, 0xcf, 0xd9, 0xe8, 0x26, 0x14, 0x7c, 0xc7, 0x0e,
- 0xee, 0x3b, 0x13, 0x47, 0x98, 0xdb, 0xb5, 0xf4, 0xee, 0x3a, 0x9e, 0x0b, 0xd0, 0x5d, 0xc8, 0x05,
- 0xb3, 0xc0, 0x12, 0x6e, 0x60, 0x56, 0xd4, 0xe1, 0x36, 0xae, 0x5e, 0xa6, 0x1f, 0x12, 0xc2, 0xc4,
- 0x11, 0xd1, 0x65, 0xc5, 0x63, 0x11, 0x5f, 0xf7, 0x02, 0x03, 0x62, 0xdb, 0xe6, 0x0d, 0x75, 0xe0,
- 0xa5, 0xb9, 0xb4, 0x69, 0xdb, 0xe8, 0x1d, 0xb8, 0x96, 0x80, 0xd9, 0x9c, 0xf9, 0xe6, 0x4d, 0x85,
- 0x4b, 0xb0, 0xdb, 0x9c, 0xf9, 0xb2, 0x86, 0x98, 0xba, 0xd2, 0xc6, 0xc0, 0xbc, 0xa5, 0x2c, 0xdb,
- 0xbd, 0xda, 0xb2, 0x47, 0x8a, 0x80, 0x23, 0x62, 0xe5, 0x63, 0x30, 0x12, 0x49, 0x4e, 0x26, 0xa0,
- 0x13, 0x3a, 0xd3, 0x79, 0x53, 0x0e, 0xa5, 0x73, 0x9c, 0xca, 0x98, 0x57, 0x89, 0xbd, 0x80, 0xc3,
- 0xc9, 0x27, 0x6b, 0x1f, 0xa5, 0x2b, 0xfb, 0x60, 0x24, 0x1c, 0x1a, 0xbd, 0x29, 0x1f, 0x9d, 0x91,
- 0x13, 0x08, 0x3e, 0x1b, 0x90, 0xa9, 0x18, 0x9b, 0x3f, 0x57, 0x84, 0x62, 0x24, 0x6c, 0x4e, 0xc5,
- 0xb8, 0x32, 0x80, 0xb9, 0x47, 0xa0, 0x1a, 0x18, 0x32, 0x0f, 0x06, 0x94, 0x9f, 0x52, 0x2e, 0x4b,
- 0x48, 0xb9, 0xc9, 0xa4, 0x48, 0x66, 0xba, 0x80, 0x12, 0x6e, 0x8d, 0x55, 0xca, 0x2e, 0x60, 0x3d,
- 0x93, 0x39, 0x38, 0x0a, 0x3e, 0x9d, 0x83, 0xf5, 0xb4, 0xf2, 0x09, 0x14, 0x93, 0x87, 0xff, 0x1f,
- 0x6d, 0xa8, 0x0d, 0xd9, 0xf0, 0x78, 0x64, 0xd6, 0x55, 0x19, 0x5b, 0xbf, 0x71, 0x2a, 0x5b, 0x23,
- 0xc8, 0x04, 0xec, 0x58, 0x28, 0xda, 0x3a, 0x56, 0x63, 0x29, 0x1b, 0x13, 0x1e, 0x76, 0x4b, 0xeb,
- 0x58, 0x8d, 0xeb, 0x7f, 0x49, 0x43, 0x21, 0x76, 0x33, 0xf4, 0x01, 0x6c, 0x75, 0xfb, 0x0f, 0xef,
- 0x37, 0x8f, 0xba, 0x0f, 0x0f, 0x07, 0xed, 0xce, 0xe7, 0xcd, 0x47, 0xf7, 0x8f, 0xca, 0xa9, 0xca,
- 0xad, 0xa7, 0x67, 0xb5, 0xed, 0xf9, 0x8b, 0x16, 0xc1, 0xdb, 0xf4, 0x98, 0x4c, 0x5d, 0xb1, 0xc8,
- 0xea, 0xe1, 0x87, 0x07, 0x9d, 0x7e, 0xbf, 0x9c, 0x5e, 0xc5, 0xea, 0x71, 0x66, 0xd1, 0x20, 0x40,
- 0xfb, 0x50, 0x9e, 0xb3, 0xee, 0x3e, 0xe9, 0x75, 0xf0, 0xe3, 0xf2, 0x5a, 0xe5, 0xe6, 0xd3, 0xb3,
- 0x9a, 0xf9, 0x2c, 0xe9, 0xee, 0xcc, 0xa7, 0xfc, 0xb1, 0x6e, 0x46, 0xff, 0x91, 0x86, 0x62, 0xb2,
- 0x03, 0x40, 0x07, 0x61, 0xdd, 0xaf, 0x0e, 0x60, 0x73, 0x7f, 0xef, 0xaa, 0x8e, 0x41, 0x55, 0x11,
- 0xee, 0x54, 0xea, 0x7d, 0xc0, 0x6c, 0x8a, 0x15, 0x19, 0x7d, 0x00, 0x1b, 0x3e, 0xe3, 0x22, 0x7a,
- 0x6f, 0x97, 0x3f, 0x45, 0x8c, 0x47, 0x25, 0x59, 0x08, 0xae, 0x8f, 0x61, 0x73, 0x51, 0x1b, 0xba,
- 0x0d, 0xeb, 0x8f, 0xbb, 0xbd, 0x72, 0xaa, 0x72, 0xe3, 0xe9, 0x59, 0xed, 0xf5, 0xc5, 0x8f, 0x8f,
- 0x1d, 0x2e, 0xa6, 0xc4, 0xed, 0xf6, 0xd0, 0x7b, 0xb0, 0xd1, 0x3e, 0xec, 0x63, 0x5c, 0x4e, 0x57,
- 0x76, 0x9e, 0x9e, 0xd5, 0x6e, 0x2c, 0xe2, 0xe4, 0x27, 0x36, 0xf5, 0x6c, 0xcc, 0x86, 0x71, 0x0b,
- 0xfe, 0xcf, 0x35, 0x30, 0x74, 0x19, 0xf2, 0xb2, 0xff, 0xd2, 0x94, 0xc2, 0x92, 0x36, 0xca, 0x9e,
- 0x6b, 0x57, 0x56, 0xb6, 0xc5, 0x90, 0xa0, 0x23, 0xe3, 0x0d, 0x28, 0x3a, 0xfe, 0xe9, 0x87, 0x03,
- 0xea, 0x91, 0xa1, 0xab, 0xbb, 0xf1, 0x3c, 0x36, 0xa4, 0xac, 0x13, 0x8a, 0x64, 0x61, 0xe1, 0x78,
- 0x82, 0x72, 0x4f, 0xf7, 0xd9, 0x79, 0x1c, 0xcf, 0xd1, 0x67, 0x90, 0x71, 0x7c, 0x32, 0xd1, 0xe5,
- 0xf8, 0xd2, 0x1d, 0x74, 0x7b, 0xcd, 0x07, 0x3a, 0x72, 0x5b, 0xf9, 0x8b, 0xf3, 0x9d, 0x8c, 0x14,
- 0x60, 0x45, 0x43, 0xd5, 0xa8, 0x57, 0x92, 0x2b, 0xa9, 0x62, 0x24, 0x8f, 0x13, 0x12, 0x19, 0x7d,
- 0x8e, 0x37, 0xe2, 0x34, 0x08, 0x54, 0x59, 0x92, 0xc7, 0xd1, 0x14, 0x55, 0x20, 0xa7, 0xeb, 0x6a,
- 0xd5, 0x62, 0x15, 0x64, 0xb7, 0xa2, 0x05, 0xad, 0x12, 0x18, 0xe1, 0x69, 0x0c, 0x8e, 0x39, 0x9b,
- 0xd4, 0xff, 0x95, 0x01, 0xe3, 0xc0, 0x9d, 0x06, 0x42, 0xd7, 0x6c, 0x2f, 0xed, 0xf0, 0x9f, 0xc0,
- 0x16, 0x51, 0x7f, 0x7d, 0x88, 0x27, 0x1f, 0x79, 0xd5, 0xae, 0xe8, 0x0b, 0xb8, 0xbd, 0x54, 0x5d,
- 0x0c, 0x0e, 0x5b, 0x9b, 0x56, 0x56, 0xea, 0x34, 0xd3, 0xb8, 0x4c, 0x2e, 0x7d, 0x41, 0x7d, 0x28,
- 0x31, 0x6e, 0x8d, 0x69, 0x20, 0xc2, 0xd2, 0x40, 0xff, 0x25, 0x59, 0xfa, 0xff, 0xec, 0x61, 0x12,
- 0xa8, 0x5f, 0xc4, 0xd0, 0xda, 0x45, 0x1d, 0xe8, 0x23, 0xc8, 0x70, 0x72, 0x1c, 0xb5, 0x5e, 0x4b,
- 0x83, 0x04, 0x93, 0x63, 0xb1, 0xa0, 0x42, 0x31, 0xd0, 0x17, 0x00, 0xb6, 0x13, 0xf8, 0x44, 0x58,
- 0x63, 0xca, 0xf5, 0x65, 0x2f, 0xdd, 0x62, 0x3b, 0x46, 0x2d, 0x68, 0x49, 0xb0, 0xd1, 0x3d, 0x28,
- 0x58, 0x24, 0x72, 0xd7, 0xec, 0xea, 0x5f, 0x47, 0x07, 0x4d, 0xad, 0xa2, 0x2c, 0x55, 0x5c, 0x9c,
- 0xef, 0xe4, 0x23, 0x09, 0xce, 0x5b, 0x44, 0xbb, 0xef, 0x3d, 0x28, 0x09, 0x12, 0x9c, 0x0c, 0xec,
- 0x30, 0x9d, 0x85, 0x6e, 0xb2, 0xe2, 0x85, 0x97, 0x1d, 0xba, 0x4e, 0x7b, 0xd1, 0x75, 0x16, 0x45,
- 0x42, 0x86, 0x7e, 0x01, 0x5b, 0xd4, 0xb3, 0xf8, 0x4c, 0x39, 0x6b, 0x64, 0x61, 0x7e, 0xf5, 0x66,
- 0x3b, 0x31, 0x78, 0x61, 0xb3, 0x65, 0x7a, 0x49, 0x5e, 0xff, 0x5b, 0x1a, 0x20, 0x2c, 0xa9, 0x5e,
- 0xae, 0x03, 0x22, 0xc8, 0xd8, 0x44, 0x10, 0xe5, 0x73, 0x45, 0xac, 0xc6, 0xe8, 0x13, 0x00, 0x41,
- 0x27, 0xbe, 0x4c, 0xbd, 0xde, 0x48, 0xbb, 0xcd, 0xf3, 0xd2, 0x41, 0x02, 0x8d, 0xf6, 0x21, 0xab,
- 0x1b, 0xe4, 0xcc, 0x95, 0x3c, 0x8d, 0xac, 0xff, 0x31, 0x0d, 0x10, 0x6e, 0xf3, 0x7f, 0x7a, 0x6f,
- 0xad, 0xdb, 0xdf, 0x7c, 0x5f, 0x4d, 0x7d, 0xf7, 0x7d, 0x35, 0xf5, 0xdb, 0x8b, 0x6a, 0xfa, 0x9b,
- 0x8b, 0x6a, 0xfa, 0xdb, 0x8b, 0x6a, 0xfa, 0xef, 0x17, 0xd5, 0xf4, 0xef, 0x7f, 0xa8, 0xa6, 0xbe,
- 0xfd, 0xa1, 0x9a, 0xfa, 0xee, 0x87, 0x6a, 0x6a, 0x98, 0x55, 0x45, 0xf9, 0x8f, 0xfe, 0x1d, 0x00,
- 0x00, 0xff, 0xff, 0x74, 0x9e, 0x83, 0x44, 0x31, 0x18, 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)
- }
- if o.Ulimits != nil {
- m.Ulimits = make([]*ContainerSpec_Ulimit, len(o.Ulimits))
- for i := range m.Ulimits {
- m.Ulimits[i] = &ContainerSpec_Ulimit{}
- github_com_docker_swarmkit_api_deepcopy.Copy(m.Ulimits[i], o.Ulimits[i])
- }
- }
- }
- 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 *ContainerSpec_Ulimit) Copy() *ContainerSpec_Ulimit {
- if m == nil {
- return nil
- }
- o := &ContainerSpec_Ulimit{}
- o.CopyFrom(m)
- return o
- }
- func (m *ContainerSpec_Ulimit) CopyFrom(src interface{}) {
- o := src.(*ContainerSpec_Ulimit)
- *m = *o
- }
- 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)
- }
- }
- if len(m.Ulimits) > 0 {
- for _, msg := range m.Ulimits {
- dAtA[i] = 0xea
- 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
- }
- }
- 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 *ContainerSpec_Ulimit) 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_Ulimit) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Name) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(len(m.Name)))
- i += copy(dAtA[i:], m.Name)
- }
- if m.Soft != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Soft))
- }
- if m.Hard != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintSpecs(dAtA, i, uint64(m.Hard))
- }
- 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))
- }
- }
- if len(m.Ulimits) > 0 {
- for _, e := range m.Ulimits {
- l = e.Size()
- 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 *ContainerSpec_Ulimit) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovSpecs(uint64(l))
- }
- if m.Soft != 0 {
- n += 1 + sovSpecs(uint64(m.Soft))
- }
- if m.Hard != 0 {
- n += 1 + sovSpecs(uint64(m.Hard))
- }
- 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) + `,`,
- `Ulimits:` + strings.Replace(fmt.Sprintf("%v", this.Ulimits), "ContainerSpec_Ulimit", "ContainerSpec_Ulimit", 1) + `,`,
- `}`,
- }, "")
- 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 *ContainerSpec_Ulimit) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&ContainerSpec_Ulimit{`,
- `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
- `Soft:` + fmt.Sprintf("%v", this.Soft) + `,`,
- `Hard:` + fmt.Sprintf("%v", this.Hard) + `,`,
- `}`,
- }, "")
- 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
- case 29:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ulimits", 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.Ulimits = append(m.Ulimits, &ContainerSpec_Ulimit{})
- if err := m.Ulimits[len(m.Ulimits)-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 *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 *ContainerSpec_Ulimit) 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: Ulimit: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Ulimit: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Soft", wireType)
- }
- m.Soft = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Soft |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Hard", wireType)
- }
- m.Hard = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSpecs
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Hard |= int64(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 *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")
- )
|