specs.pb.go 145 KB

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