specs.pb.go 142 KB

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