specs.pb.go 156 KB

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