csi.pb.go 268 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: github.com/container-storage-interface/spec/csi.proto
  3. package csi
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
  9. timestamp "github.com/golang/protobuf/ptypes/timestamp"
  10. wrappers "github.com/golang/protobuf/ptypes/wrappers"
  11. grpc "google.golang.org/grpc"
  12. codes "google.golang.org/grpc/codes"
  13. status "google.golang.org/grpc/status"
  14. math "math"
  15. )
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  25. type PluginCapability_Service_Type int32
  26. const (
  27. PluginCapability_Service_UNKNOWN PluginCapability_Service_Type = 0
  28. // CONTROLLER_SERVICE indicates that the Plugin provides RPCs for
  29. // the ControllerService. Plugins SHOULD provide this capability.
  30. // In rare cases certain plugins MAY wish to omit the
  31. // ControllerService entirely from their implementation, but such
  32. // SHOULD NOT be the common case.
  33. // The presence of this capability determines whether the CO will
  34. // attempt to invoke the REQUIRED ControllerService RPCs, as well
  35. // as specific RPCs as indicated by ControllerGetCapabilities.
  36. PluginCapability_Service_CONTROLLER_SERVICE PluginCapability_Service_Type = 1
  37. // VOLUME_ACCESSIBILITY_CONSTRAINTS indicates that the volumes for
  38. // this plugin MAY NOT be equally accessible by all nodes in the
  39. // cluster. The CO MUST use the topology information returned by
  40. // CreateVolumeRequest along with the topology information
  41. // returned by NodeGetInfo to ensure that a given volume is
  42. // accessible from a given node when scheduling workloads.
  43. PluginCapability_Service_VOLUME_ACCESSIBILITY_CONSTRAINTS PluginCapability_Service_Type = 2
  44. )
  45. var PluginCapability_Service_Type_name = map[int32]string{
  46. 0: "UNKNOWN",
  47. 1: "CONTROLLER_SERVICE",
  48. 2: "VOLUME_ACCESSIBILITY_CONSTRAINTS",
  49. }
  50. var PluginCapability_Service_Type_value = map[string]int32{
  51. "UNKNOWN": 0,
  52. "CONTROLLER_SERVICE": 1,
  53. "VOLUME_ACCESSIBILITY_CONSTRAINTS": 2,
  54. }
  55. func (x PluginCapability_Service_Type) String() string {
  56. return proto.EnumName(PluginCapability_Service_Type_name, int32(x))
  57. }
  58. func (PluginCapability_Service_Type) EnumDescriptor() ([]byte, []int) {
  59. return fileDescriptor_9cdb00adce470e01, []int{4, 0, 0}
  60. }
  61. type PluginCapability_VolumeExpansion_Type int32
  62. const (
  63. PluginCapability_VolumeExpansion_UNKNOWN PluginCapability_VolumeExpansion_Type = 0
  64. // ONLINE indicates that volumes may be expanded when published to
  65. // a node. When a Plugin implements this capability it MUST
  66. // implement either the EXPAND_VOLUME controller capability or the
  67. // EXPAND_VOLUME node capability or both. When a plugin supports
  68. // ONLINE volume expansion and also has the EXPAND_VOLUME
  69. // controller capability then the plugin MUST support expansion of
  70. // volumes currently published and available on a node. When a
  71. // plugin supports ONLINE volume expansion and also has the
  72. // EXPAND_VOLUME node capability then the plugin MAY support
  73. // expansion of node-published volume via NodeExpandVolume.
  74. //
  75. // Example 1: Given a shared filesystem volume (e.g. GlusterFs),
  76. // the Plugin may set the ONLINE volume expansion capability and
  77. // implement ControllerExpandVolume but not NodeExpandVolume.
  78. //
  79. // Example 2: Given a block storage volume type (e.g. EBS), the
  80. // Plugin may set the ONLINE volume expansion capability and
  81. // implement both ControllerExpandVolume and NodeExpandVolume.
  82. //
  83. // Example 3: Given a Plugin that supports volume expansion only
  84. // upon a node, the Plugin may set the ONLINE volume
  85. // expansion capability and implement NodeExpandVolume but not
  86. // ControllerExpandVolume.
  87. PluginCapability_VolumeExpansion_ONLINE PluginCapability_VolumeExpansion_Type = 1
  88. // OFFLINE indicates that volumes currently published and
  89. // available on a node SHALL NOT be expanded via
  90. // ControllerExpandVolume. When a plugin supports OFFLINE volume
  91. // expansion it MUST implement either the EXPAND_VOLUME controller
  92. // capability or both the EXPAND_VOLUME controller capability and
  93. // the EXPAND_VOLUME node capability.
  94. //
  95. // Example 1: Given a block storage volume type (e.g. Azure Disk)
  96. // that does not support expansion of "node-attached" (i.e.
  97. // controller-published) volumes, the Plugin may indicate
  98. // OFFLINE volume expansion support and implement both
  99. // ControllerExpandVolume and NodeExpandVolume.
  100. PluginCapability_VolumeExpansion_OFFLINE PluginCapability_VolumeExpansion_Type = 2
  101. )
  102. var PluginCapability_VolumeExpansion_Type_name = map[int32]string{
  103. 0: "UNKNOWN",
  104. 1: "ONLINE",
  105. 2: "OFFLINE",
  106. }
  107. var PluginCapability_VolumeExpansion_Type_value = map[string]int32{
  108. "UNKNOWN": 0,
  109. "ONLINE": 1,
  110. "OFFLINE": 2,
  111. }
  112. func (x PluginCapability_VolumeExpansion_Type) String() string {
  113. return proto.EnumName(PluginCapability_VolumeExpansion_Type_name, int32(x))
  114. }
  115. func (PluginCapability_VolumeExpansion_Type) EnumDescriptor() ([]byte, []int) {
  116. return fileDescriptor_9cdb00adce470e01, []int{4, 1, 0}
  117. }
  118. type VolumeCapability_AccessMode_Mode int32
  119. const (
  120. VolumeCapability_AccessMode_UNKNOWN VolumeCapability_AccessMode_Mode = 0
  121. // Can only be published once as read/write on a single node, at
  122. // any given time.
  123. VolumeCapability_AccessMode_SINGLE_NODE_WRITER VolumeCapability_AccessMode_Mode = 1
  124. // Can only be published once as readonly on a single node, at
  125. // any given time.
  126. VolumeCapability_AccessMode_SINGLE_NODE_READER_ONLY VolumeCapability_AccessMode_Mode = 2
  127. // Can be published as readonly at multiple nodes simultaneously.
  128. VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY VolumeCapability_AccessMode_Mode = 3
  129. // Can be published at multiple nodes simultaneously. Only one of
  130. // the node can be used as read/write. The rest will be readonly.
  131. VolumeCapability_AccessMode_MULTI_NODE_SINGLE_WRITER VolumeCapability_AccessMode_Mode = 4
  132. // Can be published as read/write at multiple nodes
  133. // simultaneously.
  134. VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER VolumeCapability_AccessMode_Mode = 5
  135. // Can only be published once as read/write at a single workload
  136. // on a single node, at any given time. SHOULD be used instead of
  137. // SINGLE_NODE_WRITER for COs using the experimental
  138. // SINGLE_NODE_MULTI_WRITER capability.
  139. VolumeCapability_AccessMode_SINGLE_NODE_SINGLE_WRITER VolumeCapability_AccessMode_Mode = 6
  140. // Can be published as read/write at multiple workloads on a
  141. // single node simultaneously. SHOULD be used instead of
  142. // SINGLE_NODE_WRITER for COs using the experimental
  143. // SINGLE_NODE_MULTI_WRITER capability.
  144. VolumeCapability_AccessMode_SINGLE_NODE_MULTI_WRITER VolumeCapability_AccessMode_Mode = 7
  145. )
  146. var VolumeCapability_AccessMode_Mode_name = map[int32]string{
  147. 0: "UNKNOWN",
  148. 1: "SINGLE_NODE_WRITER",
  149. 2: "SINGLE_NODE_READER_ONLY",
  150. 3: "MULTI_NODE_READER_ONLY",
  151. 4: "MULTI_NODE_SINGLE_WRITER",
  152. 5: "MULTI_NODE_MULTI_WRITER",
  153. 6: "SINGLE_NODE_SINGLE_WRITER",
  154. 7: "SINGLE_NODE_MULTI_WRITER",
  155. }
  156. var VolumeCapability_AccessMode_Mode_value = map[string]int32{
  157. "UNKNOWN": 0,
  158. "SINGLE_NODE_WRITER": 1,
  159. "SINGLE_NODE_READER_ONLY": 2,
  160. "MULTI_NODE_READER_ONLY": 3,
  161. "MULTI_NODE_SINGLE_WRITER": 4,
  162. "MULTI_NODE_MULTI_WRITER": 5,
  163. "SINGLE_NODE_SINGLE_WRITER": 6,
  164. "SINGLE_NODE_MULTI_WRITER": 7,
  165. }
  166. func (x VolumeCapability_AccessMode_Mode) String() string {
  167. return proto.EnumName(VolumeCapability_AccessMode_Mode_name, int32(x))
  168. }
  169. func (VolumeCapability_AccessMode_Mode) EnumDescriptor() ([]byte, []int) {
  170. return fileDescriptor_9cdb00adce470e01, []int{10, 2, 0}
  171. }
  172. type ControllerServiceCapability_RPC_Type int32
  173. const (
  174. ControllerServiceCapability_RPC_UNKNOWN ControllerServiceCapability_RPC_Type = 0
  175. ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ControllerServiceCapability_RPC_Type = 1
  176. ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ControllerServiceCapability_RPC_Type = 2
  177. ControllerServiceCapability_RPC_LIST_VOLUMES ControllerServiceCapability_RPC_Type = 3
  178. ControllerServiceCapability_RPC_GET_CAPACITY ControllerServiceCapability_RPC_Type = 4
  179. // Currently the only way to consume a snapshot is to create
  180. // a volume from it. Therefore plugins supporting
  181. // CREATE_DELETE_SNAPSHOT MUST support creating volume from
  182. // snapshot.
  183. ControllerServiceCapability_RPC_CREATE_DELETE_SNAPSHOT ControllerServiceCapability_RPC_Type = 5
  184. ControllerServiceCapability_RPC_LIST_SNAPSHOTS ControllerServiceCapability_RPC_Type = 6
  185. // Plugins supporting volume cloning at the storage level MAY
  186. // report this capability. The source volume MUST be managed by
  187. // the same plugin. Not all volume sources and parameters
  188. // combinations MAY work.
  189. ControllerServiceCapability_RPC_CLONE_VOLUME ControllerServiceCapability_RPC_Type = 7
  190. // Indicates the SP supports ControllerPublishVolume.readonly
  191. // field.
  192. ControllerServiceCapability_RPC_PUBLISH_READONLY ControllerServiceCapability_RPC_Type = 8
  193. // See VolumeExpansion for details.
  194. ControllerServiceCapability_RPC_EXPAND_VOLUME ControllerServiceCapability_RPC_Type = 9
  195. // Indicates the SP supports the
  196. // ListVolumesResponse.entry.published_nodes field
  197. ControllerServiceCapability_RPC_LIST_VOLUMES_PUBLISHED_NODES ControllerServiceCapability_RPC_Type = 10
  198. // Indicates that the Controller service can report volume
  199. // conditions.
  200. // An SP MAY implement `VolumeCondition` in only the Controller
  201. // Plugin, only the Node Plugin, or both.
  202. // If `VolumeCondition` is implemented in both the Controller and
  203. // Node Plugins, it SHALL report from different perspectives.
  204. // If for some reason Controller and Node Plugins report
  205. // misaligned volume conditions, CO SHALL assume the worst case
  206. // is the truth.
  207. // Note that, for alpha, `VolumeCondition` is intended be
  208. // informative for humans only, not for automation.
  209. ControllerServiceCapability_RPC_VOLUME_CONDITION ControllerServiceCapability_RPC_Type = 11
  210. // Indicates the SP supports the ControllerGetVolume RPC.
  211. // This enables COs to, for example, fetch per volume
  212. // condition after a volume is provisioned.
  213. ControllerServiceCapability_RPC_GET_VOLUME ControllerServiceCapability_RPC_Type = 12
  214. // Indicates the SP supports the SINGLE_NODE_SINGLE_WRITER and/or
  215. // SINGLE_NODE_MULTI_WRITER access modes.
  216. // These access modes are intended to replace the
  217. // SINGLE_NODE_WRITER access mode to clarify the number of writers
  218. // for a volume on a single node. Plugins MUST accept and allow
  219. // use of the SINGLE_NODE_WRITER access mode when either
  220. // SINGLE_NODE_SINGLE_WRITER and/or SINGLE_NODE_MULTI_WRITER are
  221. // supported, in order to permit older COs to continue working.
  222. ControllerServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER ControllerServiceCapability_RPC_Type = 13
  223. )
  224. var ControllerServiceCapability_RPC_Type_name = map[int32]string{
  225. 0: "UNKNOWN",
  226. 1: "CREATE_DELETE_VOLUME",
  227. 2: "PUBLISH_UNPUBLISH_VOLUME",
  228. 3: "LIST_VOLUMES",
  229. 4: "GET_CAPACITY",
  230. 5: "CREATE_DELETE_SNAPSHOT",
  231. 6: "LIST_SNAPSHOTS",
  232. 7: "CLONE_VOLUME",
  233. 8: "PUBLISH_READONLY",
  234. 9: "EXPAND_VOLUME",
  235. 10: "LIST_VOLUMES_PUBLISHED_NODES",
  236. 11: "VOLUME_CONDITION",
  237. 12: "GET_VOLUME",
  238. 13: "SINGLE_NODE_MULTI_WRITER",
  239. }
  240. var ControllerServiceCapability_RPC_Type_value = map[string]int32{
  241. "UNKNOWN": 0,
  242. "CREATE_DELETE_VOLUME": 1,
  243. "PUBLISH_UNPUBLISH_VOLUME": 2,
  244. "LIST_VOLUMES": 3,
  245. "GET_CAPACITY": 4,
  246. "CREATE_DELETE_SNAPSHOT": 5,
  247. "LIST_SNAPSHOTS": 6,
  248. "CLONE_VOLUME": 7,
  249. "PUBLISH_READONLY": 8,
  250. "EXPAND_VOLUME": 9,
  251. "LIST_VOLUMES_PUBLISHED_NODES": 10,
  252. "VOLUME_CONDITION": 11,
  253. "GET_VOLUME": 12,
  254. "SINGLE_NODE_MULTI_WRITER": 13,
  255. }
  256. func (x ControllerServiceCapability_RPC_Type) String() string {
  257. return proto.EnumName(ControllerServiceCapability_RPC_Type_name, int32(x))
  258. }
  259. func (ControllerServiceCapability_RPC_Type) EnumDescriptor() ([]byte, []int) {
  260. return fileDescriptor_9cdb00adce470e01, []int{31, 0, 0}
  261. }
  262. type VolumeUsage_Unit int32
  263. const (
  264. VolumeUsage_UNKNOWN VolumeUsage_Unit = 0
  265. VolumeUsage_BYTES VolumeUsage_Unit = 1
  266. VolumeUsage_INODES VolumeUsage_Unit = 2
  267. )
  268. var VolumeUsage_Unit_name = map[int32]string{
  269. 0: "UNKNOWN",
  270. 1: "BYTES",
  271. 2: "INODES",
  272. }
  273. var VolumeUsage_Unit_value = map[string]int32{
  274. "UNKNOWN": 0,
  275. "BYTES": 1,
  276. "INODES": 2,
  277. }
  278. func (x VolumeUsage_Unit) String() string {
  279. return proto.EnumName(VolumeUsage_Unit_name, int32(x))
  280. }
  281. func (VolumeUsage_Unit) EnumDescriptor() ([]byte, []int) {
  282. return fileDescriptor_9cdb00adce470e01, []int{51, 0}
  283. }
  284. type NodeServiceCapability_RPC_Type int32
  285. const (
  286. NodeServiceCapability_RPC_UNKNOWN NodeServiceCapability_RPC_Type = 0
  287. NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME NodeServiceCapability_RPC_Type = 1
  288. // If Plugin implements GET_VOLUME_STATS capability
  289. // then it MUST implement NodeGetVolumeStats RPC
  290. // call for fetching volume statistics.
  291. NodeServiceCapability_RPC_GET_VOLUME_STATS NodeServiceCapability_RPC_Type = 2
  292. // See VolumeExpansion for details.
  293. NodeServiceCapability_RPC_EXPAND_VOLUME NodeServiceCapability_RPC_Type = 3
  294. // Indicates that the Node service can report volume conditions.
  295. // An SP MAY implement `VolumeCondition` in only the Node
  296. // Plugin, only the Controller Plugin, or both.
  297. // If `VolumeCondition` is implemented in both the Node and
  298. // Controller Plugins, it SHALL report from different
  299. // perspectives.
  300. // If for some reason Node and Controller Plugins report
  301. // misaligned volume conditions, CO SHALL assume the worst case
  302. // is the truth.
  303. // Note that, for alpha, `VolumeCondition` is intended to be
  304. // informative for humans only, not for automation.
  305. NodeServiceCapability_RPC_VOLUME_CONDITION NodeServiceCapability_RPC_Type = 4
  306. // Indicates the SP supports the SINGLE_NODE_SINGLE_WRITER and/or
  307. // SINGLE_NODE_MULTI_WRITER access modes.
  308. // These access modes are intended to replace the
  309. // SINGLE_NODE_WRITER access mode to clarify the number of writers
  310. // for a volume on a single node. Plugins MUST accept and allow
  311. // use of the SINGLE_NODE_WRITER access mode (subject to the
  312. // processing rules for NodePublishVolume), when either
  313. // SINGLE_NODE_SINGLE_WRITER and/or SINGLE_NODE_MULTI_WRITER are
  314. // supported, in order to permit older COs to continue working.
  315. NodeServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER NodeServiceCapability_RPC_Type = 5
  316. // Indicates that Node service supports mounting volumes
  317. // with provided volume group identifier during node stage
  318. // or node publish RPC calls.
  319. NodeServiceCapability_RPC_VOLUME_MOUNT_GROUP NodeServiceCapability_RPC_Type = 6
  320. )
  321. var NodeServiceCapability_RPC_Type_name = map[int32]string{
  322. 0: "UNKNOWN",
  323. 1: "STAGE_UNSTAGE_VOLUME",
  324. 2: "GET_VOLUME_STATS",
  325. 3: "EXPAND_VOLUME",
  326. 4: "VOLUME_CONDITION",
  327. 5: "SINGLE_NODE_MULTI_WRITER",
  328. 6: "VOLUME_MOUNT_GROUP",
  329. }
  330. var NodeServiceCapability_RPC_Type_value = map[string]int32{
  331. "UNKNOWN": 0,
  332. "STAGE_UNSTAGE_VOLUME": 1,
  333. "GET_VOLUME_STATS": 2,
  334. "EXPAND_VOLUME": 3,
  335. "VOLUME_CONDITION": 4,
  336. "SINGLE_NODE_MULTI_WRITER": 5,
  337. "VOLUME_MOUNT_GROUP": 6,
  338. }
  339. func (x NodeServiceCapability_RPC_Type) String() string {
  340. return proto.EnumName(NodeServiceCapability_RPC_Type_name, int32(x))
  341. }
  342. func (NodeServiceCapability_RPC_Type) EnumDescriptor() ([]byte, []int) {
  343. return fileDescriptor_9cdb00adce470e01, []int{55, 0, 0}
  344. }
  345. type GetPluginInfoRequest struct {
  346. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  347. XXX_unrecognized []byte `json:"-"`
  348. XXX_sizecache int32 `json:"-"`
  349. }
  350. func (m *GetPluginInfoRequest) Reset() { *m = GetPluginInfoRequest{} }
  351. func (m *GetPluginInfoRequest) String() string { return proto.CompactTextString(m) }
  352. func (*GetPluginInfoRequest) ProtoMessage() {}
  353. func (*GetPluginInfoRequest) Descriptor() ([]byte, []int) {
  354. return fileDescriptor_9cdb00adce470e01, []int{0}
  355. }
  356. func (m *GetPluginInfoRequest) XXX_Unmarshal(b []byte) error {
  357. return xxx_messageInfo_GetPluginInfoRequest.Unmarshal(m, b)
  358. }
  359. func (m *GetPluginInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  360. return xxx_messageInfo_GetPluginInfoRequest.Marshal(b, m, deterministic)
  361. }
  362. func (m *GetPluginInfoRequest) XXX_Merge(src proto.Message) {
  363. xxx_messageInfo_GetPluginInfoRequest.Merge(m, src)
  364. }
  365. func (m *GetPluginInfoRequest) XXX_Size() int {
  366. return xxx_messageInfo_GetPluginInfoRequest.Size(m)
  367. }
  368. func (m *GetPluginInfoRequest) XXX_DiscardUnknown() {
  369. xxx_messageInfo_GetPluginInfoRequest.DiscardUnknown(m)
  370. }
  371. var xxx_messageInfo_GetPluginInfoRequest proto.InternalMessageInfo
  372. type GetPluginInfoResponse struct {
  373. // The name MUST follow domain name notation format
  374. // (https://tools.ietf.org/html/rfc1035#section-2.3.1). It SHOULD
  375. // include the plugin's host company name and the plugin name,
  376. // to minimize the possibility of collisions. It MUST be 63
  377. // characters or less, beginning and ending with an alphanumeric
  378. // character ([a-z0-9A-Z]) with dashes (-), dots (.), and
  379. // alphanumerics between. This field is REQUIRED.
  380. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  381. // This field is REQUIRED. Value of this field is opaque to the CO.
  382. VendorVersion string `protobuf:"bytes,2,opt,name=vendor_version,json=vendorVersion,proto3" json:"vendor_version,omitempty"`
  383. // This field is OPTIONAL. Values are opaque to the CO.
  384. Manifest map[string]string `protobuf:"bytes,3,rep,name=manifest,proto3" json:"manifest,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  385. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  386. XXX_unrecognized []byte `json:"-"`
  387. XXX_sizecache int32 `json:"-"`
  388. }
  389. func (m *GetPluginInfoResponse) Reset() { *m = GetPluginInfoResponse{} }
  390. func (m *GetPluginInfoResponse) String() string { return proto.CompactTextString(m) }
  391. func (*GetPluginInfoResponse) ProtoMessage() {}
  392. func (*GetPluginInfoResponse) Descriptor() ([]byte, []int) {
  393. return fileDescriptor_9cdb00adce470e01, []int{1}
  394. }
  395. func (m *GetPluginInfoResponse) XXX_Unmarshal(b []byte) error {
  396. return xxx_messageInfo_GetPluginInfoResponse.Unmarshal(m, b)
  397. }
  398. func (m *GetPluginInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  399. return xxx_messageInfo_GetPluginInfoResponse.Marshal(b, m, deterministic)
  400. }
  401. func (m *GetPluginInfoResponse) XXX_Merge(src proto.Message) {
  402. xxx_messageInfo_GetPluginInfoResponse.Merge(m, src)
  403. }
  404. func (m *GetPluginInfoResponse) XXX_Size() int {
  405. return xxx_messageInfo_GetPluginInfoResponse.Size(m)
  406. }
  407. func (m *GetPluginInfoResponse) XXX_DiscardUnknown() {
  408. xxx_messageInfo_GetPluginInfoResponse.DiscardUnknown(m)
  409. }
  410. var xxx_messageInfo_GetPluginInfoResponse proto.InternalMessageInfo
  411. func (m *GetPluginInfoResponse) GetName() string {
  412. if m != nil {
  413. return m.Name
  414. }
  415. return ""
  416. }
  417. func (m *GetPluginInfoResponse) GetVendorVersion() string {
  418. if m != nil {
  419. return m.VendorVersion
  420. }
  421. return ""
  422. }
  423. func (m *GetPluginInfoResponse) GetManifest() map[string]string {
  424. if m != nil {
  425. return m.Manifest
  426. }
  427. return nil
  428. }
  429. type GetPluginCapabilitiesRequest struct {
  430. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  431. XXX_unrecognized []byte `json:"-"`
  432. XXX_sizecache int32 `json:"-"`
  433. }
  434. func (m *GetPluginCapabilitiesRequest) Reset() { *m = GetPluginCapabilitiesRequest{} }
  435. func (m *GetPluginCapabilitiesRequest) String() string { return proto.CompactTextString(m) }
  436. func (*GetPluginCapabilitiesRequest) ProtoMessage() {}
  437. func (*GetPluginCapabilitiesRequest) Descriptor() ([]byte, []int) {
  438. return fileDescriptor_9cdb00adce470e01, []int{2}
  439. }
  440. func (m *GetPluginCapabilitiesRequest) XXX_Unmarshal(b []byte) error {
  441. return xxx_messageInfo_GetPluginCapabilitiesRequest.Unmarshal(m, b)
  442. }
  443. func (m *GetPluginCapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  444. return xxx_messageInfo_GetPluginCapabilitiesRequest.Marshal(b, m, deterministic)
  445. }
  446. func (m *GetPluginCapabilitiesRequest) XXX_Merge(src proto.Message) {
  447. xxx_messageInfo_GetPluginCapabilitiesRequest.Merge(m, src)
  448. }
  449. func (m *GetPluginCapabilitiesRequest) XXX_Size() int {
  450. return xxx_messageInfo_GetPluginCapabilitiesRequest.Size(m)
  451. }
  452. func (m *GetPluginCapabilitiesRequest) XXX_DiscardUnknown() {
  453. xxx_messageInfo_GetPluginCapabilitiesRequest.DiscardUnknown(m)
  454. }
  455. var xxx_messageInfo_GetPluginCapabilitiesRequest proto.InternalMessageInfo
  456. type GetPluginCapabilitiesResponse struct {
  457. // All the capabilities that the controller service supports. This
  458. // field is OPTIONAL.
  459. Capabilities []*PluginCapability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
  460. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  461. XXX_unrecognized []byte `json:"-"`
  462. XXX_sizecache int32 `json:"-"`
  463. }
  464. func (m *GetPluginCapabilitiesResponse) Reset() { *m = GetPluginCapabilitiesResponse{} }
  465. func (m *GetPluginCapabilitiesResponse) String() string { return proto.CompactTextString(m) }
  466. func (*GetPluginCapabilitiesResponse) ProtoMessage() {}
  467. func (*GetPluginCapabilitiesResponse) Descriptor() ([]byte, []int) {
  468. return fileDescriptor_9cdb00adce470e01, []int{3}
  469. }
  470. func (m *GetPluginCapabilitiesResponse) XXX_Unmarshal(b []byte) error {
  471. return xxx_messageInfo_GetPluginCapabilitiesResponse.Unmarshal(m, b)
  472. }
  473. func (m *GetPluginCapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  474. return xxx_messageInfo_GetPluginCapabilitiesResponse.Marshal(b, m, deterministic)
  475. }
  476. func (m *GetPluginCapabilitiesResponse) XXX_Merge(src proto.Message) {
  477. xxx_messageInfo_GetPluginCapabilitiesResponse.Merge(m, src)
  478. }
  479. func (m *GetPluginCapabilitiesResponse) XXX_Size() int {
  480. return xxx_messageInfo_GetPluginCapabilitiesResponse.Size(m)
  481. }
  482. func (m *GetPluginCapabilitiesResponse) XXX_DiscardUnknown() {
  483. xxx_messageInfo_GetPluginCapabilitiesResponse.DiscardUnknown(m)
  484. }
  485. var xxx_messageInfo_GetPluginCapabilitiesResponse proto.InternalMessageInfo
  486. func (m *GetPluginCapabilitiesResponse) GetCapabilities() []*PluginCapability {
  487. if m != nil {
  488. return m.Capabilities
  489. }
  490. return nil
  491. }
  492. // Specifies a capability of the plugin.
  493. type PluginCapability struct {
  494. // Types that are valid to be assigned to Type:
  495. // *PluginCapability_Service_
  496. // *PluginCapability_VolumeExpansion_
  497. Type isPluginCapability_Type `protobuf_oneof:"type"`
  498. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  499. XXX_unrecognized []byte `json:"-"`
  500. XXX_sizecache int32 `json:"-"`
  501. }
  502. func (m *PluginCapability) Reset() { *m = PluginCapability{} }
  503. func (m *PluginCapability) String() string { return proto.CompactTextString(m) }
  504. func (*PluginCapability) ProtoMessage() {}
  505. func (*PluginCapability) Descriptor() ([]byte, []int) {
  506. return fileDescriptor_9cdb00adce470e01, []int{4}
  507. }
  508. func (m *PluginCapability) XXX_Unmarshal(b []byte) error {
  509. return xxx_messageInfo_PluginCapability.Unmarshal(m, b)
  510. }
  511. func (m *PluginCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  512. return xxx_messageInfo_PluginCapability.Marshal(b, m, deterministic)
  513. }
  514. func (m *PluginCapability) XXX_Merge(src proto.Message) {
  515. xxx_messageInfo_PluginCapability.Merge(m, src)
  516. }
  517. func (m *PluginCapability) XXX_Size() int {
  518. return xxx_messageInfo_PluginCapability.Size(m)
  519. }
  520. func (m *PluginCapability) XXX_DiscardUnknown() {
  521. xxx_messageInfo_PluginCapability.DiscardUnknown(m)
  522. }
  523. var xxx_messageInfo_PluginCapability proto.InternalMessageInfo
  524. type isPluginCapability_Type interface {
  525. isPluginCapability_Type()
  526. }
  527. type PluginCapability_Service_ struct {
  528. Service *PluginCapability_Service `protobuf:"bytes,1,opt,name=service,proto3,oneof"`
  529. }
  530. type PluginCapability_VolumeExpansion_ struct {
  531. VolumeExpansion *PluginCapability_VolumeExpansion `protobuf:"bytes,2,opt,name=volume_expansion,json=volumeExpansion,proto3,oneof"`
  532. }
  533. func (*PluginCapability_Service_) isPluginCapability_Type() {}
  534. func (*PluginCapability_VolumeExpansion_) isPluginCapability_Type() {}
  535. func (m *PluginCapability) GetType() isPluginCapability_Type {
  536. if m != nil {
  537. return m.Type
  538. }
  539. return nil
  540. }
  541. func (m *PluginCapability) GetService() *PluginCapability_Service {
  542. if x, ok := m.GetType().(*PluginCapability_Service_); ok {
  543. return x.Service
  544. }
  545. return nil
  546. }
  547. func (m *PluginCapability) GetVolumeExpansion() *PluginCapability_VolumeExpansion {
  548. if x, ok := m.GetType().(*PluginCapability_VolumeExpansion_); ok {
  549. return x.VolumeExpansion
  550. }
  551. return nil
  552. }
  553. // XXX_OneofWrappers is for the internal use of the proto package.
  554. func (*PluginCapability) XXX_OneofWrappers() []interface{} {
  555. return []interface{}{
  556. (*PluginCapability_Service_)(nil),
  557. (*PluginCapability_VolumeExpansion_)(nil),
  558. }
  559. }
  560. type PluginCapability_Service struct {
  561. Type PluginCapability_Service_Type `protobuf:"varint,1,opt,name=type,proto3,enum=csi.v1.PluginCapability_Service_Type" json:"type,omitempty"`
  562. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  563. XXX_unrecognized []byte `json:"-"`
  564. XXX_sizecache int32 `json:"-"`
  565. }
  566. func (m *PluginCapability_Service) Reset() { *m = PluginCapability_Service{} }
  567. func (m *PluginCapability_Service) String() string { return proto.CompactTextString(m) }
  568. func (*PluginCapability_Service) ProtoMessage() {}
  569. func (*PluginCapability_Service) Descriptor() ([]byte, []int) {
  570. return fileDescriptor_9cdb00adce470e01, []int{4, 0}
  571. }
  572. func (m *PluginCapability_Service) XXX_Unmarshal(b []byte) error {
  573. return xxx_messageInfo_PluginCapability_Service.Unmarshal(m, b)
  574. }
  575. func (m *PluginCapability_Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  576. return xxx_messageInfo_PluginCapability_Service.Marshal(b, m, deterministic)
  577. }
  578. func (m *PluginCapability_Service) XXX_Merge(src proto.Message) {
  579. xxx_messageInfo_PluginCapability_Service.Merge(m, src)
  580. }
  581. func (m *PluginCapability_Service) XXX_Size() int {
  582. return xxx_messageInfo_PluginCapability_Service.Size(m)
  583. }
  584. func (m *PluginCapability_Service) XXX_DiscardUnknown() {
  585. xxx_messageInfo_PluginCapability_Service.DiscardUnknown(m)
  586. }
  587. var xxx_messageInfo_PluginCapability_Service proto.InternalMessageInfo
  588. func (m *PluginCapability_Service) GetType() PluginCapability_Service_Type {
  589. if m != nil {
  590. return m.Type
  591. }
  592. return PluginCapability_Service_UNKNOWN
  593. }
  594. type PluginCapability_VolumeExpansion struct {
  595. Type PluginCapability_VolumeExpansion_Type `protobuf:"varint,1,opt,name=type,proto3,enum=csi.v1.PluginCapability_VolumeExpansion_Type" json:"type,omitempty"`
  596. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  597. XXX_unrecognized []byte `json:"-"`
  598. XXX_sizecache int32 `json:"-"`
  599. }
  600. func (m *PluginCapability_VolumeExpansion) Reset() { *m = PluginCapability_VolumeExpansion{} }
  601. func (m *PluginCapability_VolumeExpansion) String() string { return proto.CompactTextString(m) }
  602. func (*PluginCapability_VolumeExpansion) ProtoMessage() {}
  603. func (*PluginCapability_VolumeExpansion) Descriptor() ([]byte, []int) {
  604. return fileDescriptor_9cdb00adce470e01, []int{4, 1}
  605. }
  606. func (m *PluginCapability_VolumeExpansion) XXX_Unmarshal(b []byte) error {
  607. return xxx_messageInfo_PluginCapability_VolumeExpansion.Unmarshal(m, b)
  608. }
  609. func (m *PluginCapability_VolumeExpansion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  610. return xxx_messageInfo_PluginCapability_VolumeExpansion.Marshal(b, m, deterministic)
  611. }
  612. func (m *PluginCapability_VolumeExpansion) XXX_Merge(src proto.Message) {
  613. xxx_messageInfo_PluginCapability_VolumeExpansion.Merge(m, src)
  614. }
  615. func (m *PluginCapability_VolumeExpansion) XXX_Size() int {
  616. return xxx_messageInfo_PluginCapability_VolumeExpansion.Size(m)
  617. }
  618. func (m *PluginCapability_VolumeExpansion) XXX_DiscardUnknown() {
  619. xxx_messageInfo_PluginCapability_VolumeExpansion.DiscardUnknown(m)
  620. }
  621. var xxx_messageInfo_PluginCapability_VolumeExpansion proto.InternalMessageInfo
  622. func (m *PluginCapability_VolumeExpansion) GetType() PluginCapability_VolumeExpansion_Type {
  623. if m != nil {
  624. return m.Type
  625. }
  626. return PluginCapability_VolumeExpansion_UNKNOWN
  627. }
  628. type ProbeRequest struct {
  629. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  630. XXX_unrecognized []byte `json:"-"`
  631. XXX_sizecache int32 `json:"-"`
  632. }
  633. func (m *ProbeRequest) Reset() { *m = ProbeRequest{} }
  634. func (m *ProbeRequest) String() string { return proto.CompactTextString(m) }
  635. func (*ProbeRequest) ProtoMessage() {}
  636. func (*ProbeRequest) Descriptor() ([]byte, []int) {
  637. return fileDescriptor_9cdb00adce470e01, []int{5}
  638. }
  639. func (m *ProbeRequest) XXX_Unmarshal(b []byte) error {
  640. return xxx_messageInfo_ProbeRequest.Unmarshal(m, b)
  641. }
  642. func (m *ProbeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  643. return xxx_messageInfo_ProbeRequest.Marshal(b, m, deterministic)
  644. }
  645. func (m *ProbeRequest) XXX_Merge(src proto.Message) {
  646. xxx_messageInfo_ProbeRequest.Merge(m, src)
  647. }
  648. func (m *ProbeRequest) XXX_Size() int {
  649. return xxx_messageInfo_ProbeRequest.Size(m)
  650. }
  651. func (m *ProbeRequest) XXX_DiscardUnknown() {
  652. xxx_messageInfo_ProbeRequest.DiscardUnknown(m)
  653. }
  654. var xxx_messageInfo_ProbeRequest proto.InternalMessageInfo
  655. type ProbeResponse struct {
  656. // Readiness allows a plugin to report its initialization status back
  657. // to the CO. Initialization for some plugins MAY be time consuming
  658. // and it is important for a CO to distinguish between the following
  659. // cases:
  660. //
  661. // 1) The plugin is in an unhealthy state and MAY need restarting. In
  662. // this case a gRPC error code SHALL be returned.
  663. // 2) The plugin is still initializing, but is otherwise perfectly
  664. // healthy. In this case a successful response SHALL be returned
  665. // with a readiness value of `false`. Calls to the plugin's
  666. // Controller and/or Node services MAY fail due to an incomplete
  667. // initialization state.
  668. // 3) The plugin has finished initializing and is ready to service
  669. // calls to its Controller and/or Node services. A successful
  670. // response is returned with a readiness value of `true`.
  671. //
  672. // This field is OPTIONAL. If not present, the caller SHALL assume
  673. // that the plugin is in a ready state and is accepting calls to its
  674. // Controller and/or Node services (according to the plugin's reported
  675. // capabilities).
  676. Ready *wrappers.BoolValue `protobuf:"bytes,1,opt,name=ready,proto3" json:"ready,omitempty"`
  677. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  678. XXX_unrecognized []byte `json:"-"`
  679. XXX_sizecache int32 `json:"-"`
  680. }
  681. func (m *ProbeResponse) Reset() { *m = ProbeResponse{} }
  682. func (m *ProbeResponse) String() string { return proto.CompactTextString(m) }
  683. func (*ProbeResponse) ProtoMessage() {}
  684. func (*ProbeResponse) Descriptor() ([]byte, []int) {
  685. return fileDescriptor_9cdb00adce470e01, []int{6}
  686. }
  687. func (m *ProbeResponse) XXX_Unmarshal(b []byte) error {
  688. return xxx_messageInfo_ProbeResponse.Unmarshal(m, b)
  689. }
  690. func (m *ProbeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  691. return xxx_messageInfo_ProbeResponse.Marshal(b, m, deterministic)
  692. }
  693. func (m *ProbeResponse) XXX_Merge(src proto.Message) {
  694. xxx_messageInfo_ProbeResponse.Merge(m, src)
  695. }
  696. func (m *ProbeResponse) XXX_Size() int {
  697. return xxx_messageInfo_ProbeResponse.Size(m)
  698. }
  699. func (m *ProbeResponse) XXX_DiscardUnknown() {
  700. xxx_messageInfo_ProbeResponse.DiscardUnknown(m)
  701. }
  702. var xxx_messageInfo_ProbeResponse proto.InternalMessageInfo
  703. func (m *ProbeResponse) GetReady() *wrappers.BoolValue {
  704. if m != nil {
  705. return m.Ready
  706. }
  707. return nil
  708. }
  709. type CreateVolumeRequest struct {
  710. // The suggested name for the storage space. This field is REQUIRED.
  711. // It serves two purposes:
  712. // 1) Idempotency - This name is generated by the CO to achieve
  713. // idempotency. The Plugin SHOULD ensure that multiple
  714. // `CreateVolume` calls for the same name do not result in more
  715. // than one piece of storage provisioned corresponding to that
  716. // name. If a Plugin is unable to enforce idempotency, the CO's
  717. // error recovery logic could result in multiple (unused) volumes
  718. // being provisioned.
  719. // In the case of error, the CO MUST handle the gRPC error codes
  720. // per the recovery behavior defined in the "CreateVolume Errors"
  721. // section below.
  722. // The CO is responsible for cleaning up volumes it provisioned
  723. // that it no longer needs. If the CO is uncertain whether a volume
  724. // was provisioned or not when a `CreateVolume` call fails, the CO
  725. // MAY call `CreateVolume` again, with the same name, to ensure the
  726. // volume exists and to retrieve the volume's `volume_id` (unless
  727. // otherwise prohibited by "CreateVolume Errors").
  728. // 2) Suggested name - Some storage systems allow callers to specify
  729. // an identifier by which to refer to the newly provisioned
  730. // storage. If a storage system supports this, it can optionally
  731. // use this name as the identifier for the new volume.
  732. // Any Unicode string that conforms to the length limit is allowed
  733. // except those containing the following banned characters:
  734. // U+0000-U+0008, U+000B, U+000C, U+000E-U+001F, U+007F-U+009F.
  735. // (These are control characters other than commonly used whitespace.)
  736. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  737. // This field is OPTIONAL. This allows the CO to specify the capacity
  738. // requirement of the volume to be provisioned. If not specified, the
  739. // Plugin MAY choose an implementation-defined capacity range. If
  740. // specified it MUST always be honored, even when creating volumes
  741. // from a source; which MAY force some backends to internally extend
  742. // the volume after creating it.
  743. CapacityRange *CapacityRange `protobuf:"bytes,2,opt,name=capacity_range,json=capacityRange,proto3" json:"capacity_range,omitempty"`
  744. // The capabilities that the provisioned volume MUST have. SP MUST
  745. // provision a volume that will satisfy ALL of the capabilities
  746. // specified in this list. Otherwise SP MUST return the appropriate
  747. // gRPC error code.
  748. // The Plugin MUST assume that the CO MAY use the provisioned volume
  749. // with ANY of the capabilities specified in this list.
  750. // For example, a CO MAY specify two volume capabilities: one with
  751. // access mode SINGLE_NODE_WRITER and another with access mode
  752. // MULTI_NODE_READER_ONLY. In this case, the SP MUST verify that the
  753. // provisioned volume can be used in either mode.
  754. // This also enables the CO to do early validation: If ANY of the
  755. // specified volume capabilities are not supported by the SP, the call
  756. // MUST return the appropriate gRPC error code.
  757. // This field is REQUIRED.
  758. VolumeCapabilities []*VolumeCapability `protobuf:"bytes,3,rep,name=volume_capabilities,json=volumeCapabilities,proto3" json:"volume_capabilities,omitempty"`
  759. // Plugin specific parameters passed in as opaque key-value pairs.
  760. // This field is OPTIONAL. The Plugin is responsible for parsing and
  761. // validating these parameters. COs will treat these as opaque.
  762. Parameters map[string]string `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  763. // Secrets required by plugin to complete volume creation request.
  764. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  765. // section on how to use this field.
  766. Secrets map[string]string `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  767. // If specified, the new volume will be pre-populated with data from
  768. // this source. This field is OPTIONAL.
  769. VolumeContentSource *VolumeContentSource `protobuf:"bytes,6,opt,name=volume_content_source,json=volumeContentSource,proto3" json:"volume_content_source,omitempty"`
  770. // Specifies where (regions, zones, racks, etc.) the provisioned
  771. // volume MUST be accessible from.
  772. // An SP SHALL advertise the requirements for topological
  773. // accessibility information in documentation. COs SHALL only specify
  774. // topological accessibility information supported by the SP.
  775. // This field is OPTIONAL.
  776. // This field SHALL NOT be specified unless the SP has the
  777. // VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability.
  778. // If this field is not specified and the SP has the
  779. // VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY
  780. // choose where the provisioned volume is accessible from.
  781. AccessibilityRequirements *TopologyRequirement `protobuf:"bytes,7,opt,name=accessibility_requirements,json=accessibilityRequirements,proto3" json:"accessibility_requirements,omitempty"`
  782. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  783. XXX_unrecognized []byte `json:"-"`
  784. XXX_sizecache int32 `json:"-"`
  785. }
  786. func (m *CreateVolumeRequest) Reset() { *m = CreateVolumeRequest{} }
  787. func (m *CreateVolumeRequest) String() string { return proto.CompactTextString(m) }
  788. func (*CreateVolumeRequest) ProtoMessage() {}
  789. func (*CreateVolumeRequest) Descriptor() ([]byte, []int) {
  790. return fileDescriptor_9cdb00adce470e01, []int{7}
  791. }
  792. func (m *CreateVolumeRequest) XXX_Unmarshal(b []byte) error {
  793. return xxx_messageInfo_CreateVolumeRequest.Unmarshal(m, b)
  794. }
  795. func (m *CreateVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  796. return xxx_messageInfo_CreateVolumeRequest.Marshal(b, m, deterministic)
  797. }
  798. func (m *CreateVolumeRequest) XXX_Merge(src proto.Message) {
  799. xxx_messageInfo_CreateVolumeRequest.Merge(m, src)
  800. }
  801. func (m *CreateVolumeRequest) XXX_Size() int {
  802. return xxx_messageInfo_CreateVolumeRequest.Size(m)
  803. }
  804. func (m *CreateVolumeRequest) XXX_DiscardUnknown() {
  805. xxx_messageInfo_CreateVolumeRequest.DiscardUnknown(m)
  806. }
  807. var xxx_messageInfo_CreateVolumeRequest proto.InternalMessageInfo
  808. func (m *CreateVolumeRequest) GetName() string {
  809. if m != nil {
  810. return m.Name
  811. }
  812. return ""
  813. }
  814. func (m *CreateVolumeRequest) GetCapacityRange() *CapacityRange {
  815. if m != nil {
  816. return m.CapacityRange
  817. }
  818. return nil
  819. }
  820. func (m *CreateVolumeRequest) GetVolumeCapabilities() []*VolumeCapability {
  821. if m != nil {
  822. return m.VolumeCapabilities
  823. }
  824. return nil
  825. }
  826. func (m *CreateVolumeRequest) GetParameters() map[string]string {
  827. if m != nil {
  828. return m.Parameters
  829. }
  830. return nil
  831. }
  832. func (m *CreateVolumeRequest) GetSecrets() map[string]string {
  833. if m != nil {
  834. return m.Secrets
  835. }
  836. return nil
  837. }
  838. func (m *CreateVolumeRequest) GetVolumeContentSource() *VolumeContentSource {
  839. if m != nil {
  840. return m.VolumeContentSource
  841. }
  842. return nil
  843. }
  844. func (m *CreateVolumeRequest) GetAccessibilityRequirements() *TopologyRequirement {
  845. if m != nil {
  846. return m.AccessibilityRequirements
  847. }
  848. return nil
  849. }
  850. // Specifies what source the volume will be created from. One of the
  851. // type fields MUST be specified.
  852. type VolumeContentSource struct {
  853. // Types that are valid to be assigned to Type:
  854. // *VolumeContentSource_Snapshot
  855. // *VolumeContentSource_Volume
  856. Type isVolumeContentSource_Type `protobuf_oneof:"type"`
  857. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  858. XXX_unrecognized []byte `json:"-"`
  859. XXX_sizecache int32 `json:"-"`
  860. }
  861. func (m *VolumeContentSource) Reset() { *m = VolumeContentSource{} }
  862. func (m *VolumeContentSource) String() string { return proto.CompactTextString(m) }
  863. func (*VolumeContentSource) ProtoMessage() {}
  864. func (*VolumeContentSource) Descriptor() ([]byte, []int) {
  865. return fileDescriptor_9cdb00adce470e01, []int{8}
  866. }
  867. func (m *VolumeContentSource) XXX_Unmarshal(b []byte) error {
  868. return xxx_messageInfo_VolumeContentSource.Unmarshal(m, b)
  869. }
  870. func (m *VolumeContentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  871. return xxx_messageInfo_VolumeContentSource.Marshal(b, m, deterministic)
  872. }
  873. func (m *VolumeContentSource) XXX_Merge(src proto.Message) {
  874. xxx_messageInfo_VolumeContentSource.Merge(m, src)
  875. }
  876. func (m *VolumeContentSource) XXX_Size() int {
  877. return xxx_messageInfo_VolumeContentSource.Size(m)
  878. }
  879. func (m *VolumeContentSource) XXX_DiscardUnknown() {
  880. xxx_messageInfo_VolumeContentSource.DiscardUnknown(m)
  881. }
  882. var xxx_messageInfo_VolumeContentSource proto.InternalMessageInfo
  883. type isVolumeContentSource_Type interface {
  884. isVolumeContentSource_Type()
  885. }
  886. type VolumeContentSource_Snapshot struct {
  887. Snapshot *VolumeContentSource_SnapshotSource `protobuf:"bytes,1,opt,name=snapshot,proto3,oneof"`
  888. }
  889. type VolumeContentSource_Volume struct {
  890. Volume *VolumeContentSource_VolumeSource `protobuf:"bytes,2,opt,name=volume,proto3,oneof"`
  891. }
  892. func (*VolumeContentSource_Snapshot) isVolumeContentSource_Type() {}
  893. func (*VolumeContentSource_Volume) isVolumeContentSource_Type() {}
  894. func (m *VolumeContentSource) GetType() isVolumeContentSource_Type {
  895. if m != nil {
  896. return m.Type
  897. }
  898. return nil
  899. }
  900. func (m *VolumeContentSource) GetSnapshot() *VolumeContentSource_SnapshotSource {
  901. if x, ok := m.GetType().(*VolumeContentSource_Snapshot); ok {
  902. return x.Snapshot
  903. }
  904. return nil
  905. }
  906. func (m *VolumeContentSource) GetVolume() *VolumeContentSource_VolumeSource {
  907. if x, ok := m.GetType().(*VolumeContentSource_Volume); ok {
  908. return x.Volume
  909. }
  910. return nil
  911. }
  912. // XXX_OneofWrappers is for the internal use of the proto package.
  913. func (*VolumeContentSource) XXX_OneofWrappers() []interface{} {
  914. return []interface{}{
  915. (*VolumeContentSource_Snapshot)(nil),
  916. (*VolumeContentSource_Volume)(nil),
  917. }
  918. }
  919. type VolumeContentSource_SnapshotSource struct {
  920. // Contains identity information for the existing source snapshot.
  921. // This field is REQUIRED. Plugin is REQUIRED to support creating
  922. // volume from snapshot if it supports the capability
  923. // CREATE_DELETE_SNAPSHOT.
  924. SnapshotId string `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
  925. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  926. XXX_unrecognized []byte `json:"-"`
  927. XXX_sizecache int32 `json:"-"`
  928. }
  929. func (m *VolumeContentSource_SnapshotSource) Reset() { *m = VolumeContentSource_SnapshotSource{} }
  930. func (m *VolumeContentSource_SnapshotSource) String() string { return proto.CompactTextString(m) }
  931. func (*VolumeContentSource_SnapshotSource) ProtoMessage() {}
  932. func (*VolumeContentSource_SnapshotSource) Descriptor() ([]byte, []int) {
  933. return fileDescriptor_9cdb00adce470e01, []int{8, 0}
  934. }
  935. func (m *VolumeContentSource_SnapshotSource) XXX_Unmarshal(b []byte) error {
  936. return xxx_messageInfo_VolumeContentSource_SnapshotSource.Unmarshal(m, b)
  937. }
  938. func (m *VolumeContentSource_SnapshotSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  939. return xxx_messageInfo_VolumeContentSource_SnapshotSource.Marshal(b, m, deterministic)
  940. }
  941. func (m *VolumeContentSource_SnapshotSource) XXX_Merge(src proto.Message) {
  942. xxx_messageInfo_VolumeContentSource_SnapshotSource.Merge(m, src)
  943. }
  944. func (m *VolumeContentSource_SnapshotSource) XXX_Size() int {
  945. return xxx_messageInfo_VolumeContentSource_SnapshotSource.Size(m)
  946. }
  947. func (m *VolumeContentSource_SnapshotSource) XXX_DiscardUnknown() {
  948. xxx_messageInfo_VolumeContentSource_SnapshotSource.DiscardUnknown(m)
  949. }
  950. var xxx_messageInfo_VolumeContentSource_SnapshotSource proto.InternalMessageInfo
  951. func (m *VolumeContentSource_SnapshotSource) GetSnapshotId() string {
  952. if m != nil {
  953. return m.SnapshotId
  954. }
  955. return ""
  956. }
  957. type VolumeContentSource_VolumeSource struct {
  958. // Contains identity information for the existing source volume.
  959. // This field is REQUIRED. Plugins reporting CLONE_VOLUME
  960. // capability MUST support creating a volume from another volume.
  961. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  962. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  963. XXX_unrecognized []byte `json:"-"`
  964. XXX_sizecache int32 `json:"-"`
  965. }
  966. func (m *VolumeContentSource_VolumeSource) Reset() { *m = VolumeContentSource_VolumeSource{} }
  967. func (m *VolumeContentSource_VolumeSource) String() string { return proto.CompactTextString(m) }
  968. func (*VolumeContentSource_VolumeSource) ProtoMessage() {}
  969. func (*VolumeContentSource_VolumeSource) Descriptor() ([]byte, []int) {
  970. return fileDescriptor_9cdb00adce470e01, []int{8, 1}
  971. }
  972. func (m *VolumeContentSource_VolumeSource) XXX_Unmarshal(b []byte) error {
  973. return xxx_messageInfo_VolumeContentSource_VolumeSource.Unmarshal(m, b)
  974. }
  975. func (m *VolumeContentSource_VolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  976. return xxx_messageInfo_VolumeContentSource_VolumeSource.Marshal(b, m, deterministic)
  977. }
  978. func (m *VolumeContentSource_VolumeSource) XXX_Merge(src proto.Message) {
  979. xxx_messageInfo_VolumeContentSource_VolumeSource.Merge(m, src)
  980. }
  981. func (m *VolumeContentSource_VolumeSource) XXX_Size() int {
  982. return xxx_messageInfo_VolumeContentSource_VolumeSource.Size(m)
  983. }
  984. func (m *VolumeContentSource_VolumeSource) XXX_DiscardUnknown() {
  985. xxx_messageInfo_VolumeContentSource_VolumeSource.DiscardUnknown(m)
  986. }
  987. var xxx_messageInfo_VolumeContentSource_VolumeSource proto.InternalMessageInfo
  988. func (m *VolumeContentSource_VolumeSource) GetVolumeId() string {
  989. if m != nil {
  990. return m.VolumeId
  991. }
  992. return ""
  993. }
  994. type CreateVolumeResponse struct {
  995. // Contains all attributes of the newly created volume that are
  996. // relevant to the CO along with information required by the Plugin
  997. // to uniquely identify the volume. This field is REQUIRED.
  998. Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
  999. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1000. XXX_unrecognized []byte `json:"-"`
  1001. XXX_sizecache int32 `json:"-"`
  1002. }
  1003. func (m *CreateVolumeResponse) Reset() { *m = CreateVolumeResponse{} }
  1004. func (m *CreateVolumeResponse) String() string { return proto.CompactTextString(m) }
  1005. func (*CreateVolumeResponse) ProtoMessage() {}
  1006. func (*CreateVolumeResponse) Descriptor() ([]byte, []int) {
  1007. return fileDescriptor_9cdb00adce470e01, []int{9}
  1008. }
  1009. func (m *CreateVolumeResponse) XXX_Unmarshal(b []byte) error {
  1010. return xxx_messageInfo_CreateVolumeResponse.Unmarshal(m, b)
  1011. }
  1012. func (m *CreateVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1013. return xxx_messageInfo_CreateVolumeResponse.Marshal(b, m, deterministic)
  1014. }
  1015. func (m *CreateVolumeResponse) XXX_Merge(src proto.Message) {
  1016. xxx_messageInfo_CreateVolumeResponse.Merge(m, src)
  1017. }
  1018. func (m *CreateVolumeResponse) XXX_Size() int {
  1019. return xxx_messageInfo_CreateVolumeResponse.Size(m)
  1020. }
  1021. func (m *CreateVolumeResponse) XXX_DiscardUnknown() {
  1022. xxx_messageInfo_CreateVolumeResponse.DiscardUnknown(m)
  1023. }
  1024. var xxx_messageInfo_CreateVolumeResponse proto.InternalMessageInfo
  1025. func (m *CreateVolumeResponse) GetVolume() *Volume {
  1026. if m != nil {
  1027. return m.Volume
  1028. }
  1029. return nil
  1030. }
  1031. // Specify a capability of a volume.
  1032. type VolumeCapability struct {
  1033. // Specifies what API the volume will be accessed using. One of the
  1034. // following fields MUST be specified.
  1035. //
  1036. // Types that are valid to be assigned to AccessType:
  1037. // *VolumeCapability_Block
  1038. // *VolumeCapability_Mount
  1039. AccessType isVolumeCapability_AccessType `protobuf_oneof:"access_type"`
  1040. // This is a REQUIRED field.
  1041. AccessMode *VolumeCapability_AccessMode `protobuf:"bytes,3,opt,name=access_mode,json=accessMode,proto3" json:"access_mode,omitempty"`
  1042. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1043. XXX_unrecognized []byte `json:"-"`
  1044. XXX_sizecache int32 `json:"-"`
  1045. }
  1046. func (m *VolumeCapability) Reset() { *m = VolumeCapability{} }
  1047. func (m *VolumeCapability) String() string { return proto.CompactTextString(m) }
  1048. func (*VolumeCapability) ProtoMessage() {}
  1049. func (*VolumeCapability) Descriptor() ([]byte, []int) {
  1050. return fileDescriptor_9cdb00adce470e01, []int{10}
  1051. }
  1052. func (m *VolumeCapability) XXX_Unmarshal(b []byte) error {
  1053. return xxx_messageInfo_VolumeCapability.Unmarshal(m, b)
  1054. }
  1055. func (m *VolumeCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1056. return xxx_messageInfo_VolumeCapability.Marshal(b, m, deterministic)
  1057. }
  1058. func (m *VolumeCapability) XXX_Merge(src proto.Message) {
  1059. xxx_messageInfo_VolumeCapability.Merge(m, src)
  1060. }
  1061. func (m *VolumeCapability) XXX_Size() int {
  1062. return xxx_messageInfo_VolumeCapability.Size(m)
  1063. }
  1064. func (m *VolumeCapability) XXX_DiscardUnknown() {
  1065. xxx_messageInfo_VolumeCapability.DiscardUnknown(m)
  1066. }
  1067. var xxx_messageInfo_VolumeCapability proto.InternalMessageInfo
  1068. type isVolumeCapability_AccessType interface {
  1069. isVolumeCapability_AccessType()
  1070. }
  1071. type VolumeCapability_Block struct {
  1072. Block *VolumeCapability_BlockVolume `protobuf:"bytes,1,opt,name=block,proto3,oneof"`
  1073. }
  1074. type VolumeCapability_Mount struct {
  1075. Mount *VolumeCapability_MountVolume `protobuf:"bytes,2,opt,name=mount,proto3,oneof"`
  1076. }
  1077. func (*VolumeCapability_Block) isVolumeCapability_AccessType() {}
  1078. func (*VolumeCapability_Mount) isVolumeCapability_AccessType() {}
  1079. func (m *VolumeCapability) GetAccessType() isVolumeCapability_AccessType {
  1080. if m != nil {
  1081. return m.AccessType
  1082. }
  1083. return nil
  1084. }
  1085. func (m *VolumeCapability) GetBlock() *VolumeCapability_BlockVolume {
  1086. if x, ok := m.GetAccessType().(*VolumeCapability_Block); ok {
  1087. return x.Block
  1088. }
  1089. return nil
  1090. }
  1091. func (m *VolumeCapability) GetMount() *VolumeCapability_MountVolume {
  1092. if x, ok := m.GetAccessType().(*VolumeCapability_Mount); ok {
  1093. return x.Mount
  1094. }
  1095. return nil
  1096. }
  1097. func (m *VolumeCapability) GetAccessMode() *VolumeCapability_AccessMode {
  1098. if m != nil {
  1099. return m.AccessMode
  1100. }
  1101. return nil
  1102. }
  1103. // XXX_OneofWrappers is for the internal use of the proto package.
  1104. func (*VolumeCapability) XXX_OneofWrappers() []interface{} {
  1105. return []interface{}{
  1106. (*VolumeCapability_Block)(nil),
  1107. (*VolumeCapability_Mount)(nil),
  1108. }
  1109. }
  1110. // Indicate that the volume will be accessed via the block device API.
  1111. type VolumeCapability_BlockVolume struct {
  1112. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1113. XXX_unrecognized []byte `json:"-"`
  1114. XXX_sizecache int32 `json:"-"`
  1115. }
  1116. func (m *VolumeCapability_BlockVolume) Reset() { *m = VolumeCapability_BlockVolume{} }
  1117. func (m *VolumeCapability_BlockVolume) String() string { return proto.CompactTextString(m) }
  1118. func (*VolumeCapability_BlockVolume) ProtoMessage() {}
  1119. func (*VolumeCapability_BlockVolume) Descriptor() ([]byte, []int) {
  1120. return fileDescriptor_9cdb00adce470e01, []int{10, 0}
  1121. }
  1122. func (m *VolumeCapability_BlockVolume) XXX_Unmarshal(b []byte) error {
  1123. return xxx_messageInfo_VolumeCapability_BlockVolume.Unmarshal(m, b)
  1124. }
  1125. func (m *VolumeCapability_BlockVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1126. return xxx_messageInfo_VolumeCapability_BlockVolume.Marshal(b, m, deterministic)
  1127. }
  1128. func (m *VolumeCapability_BlockVolume) XXX_Merge(src proto.Message) {
  1129. xxx_messageInfo_VolumeCapability_BlockVolume.Merge(m, src)
  1130. }
  1131. func (m *VolumeCapability_BlockVolume) XXX_Size() int {
  1132. return xxx_messageInfo_VolumeCapability_BlockVolume.Size(m)
  1133. }
  1134. func (m *VolumeCapability_BlockVolume) XXX_DiscardUnknown() {
  1135. xxx_messageInfo_VolumeCapability_BlockVolume.DiscardUnknown(m)
  1136. }
  1137. var xxx_messageInfo_VolumeCapability_BlockVolume proto.InternalMessageInfo
  1138. // Indicate that the volume will be accessed via the filesystem API.
  1139. type VolumeCapability_MountVolume struct {
  1140. // The filesystem type. This field is OPTIONAL.
  1141. // An empty string is equal to an unspecified field value.
  1142. FsType string `protobuf:"bytes,1,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"`
  1143. // The mount options that can be used for the volume. This field is
  1144. // OPTIONAL. `mount_flags` MAY contain sensitive information.
  1145. // Therefore, the CO and the Plugin MUST NOT leak this information
  1146. // to untrusted entities. The total size of this repeated field
  1147. // SHALL NOT exceed 4 KiB.
  1148. MountFlags []string `protobuf:"bytes,2,rep,name=mount_flags,json=mountFlags,proto3" json:"mount_flags,omitempty"`
  1149. // If SP has VOLUME_MOUNT_GROUP node capability and CO provides
  1150. // this field then SP MUST ensure that the volume_mount_group
  1151. // parameter is passed as the group identifier to the underlying
  1152. // operating system mount system call, with the understanding
  1153. // that the set of available mount call parameters and/or
  1154. // mount implementations may vary across operating systems.
  1155. // Additionally, new file and/or directory entries written to
  1156. // the underlying filesystem SHOULD be permission-labeled in such a
  1157. // manner, unless otherwise modified by a workload, that they are
  1158. // both readable and writable by said mount group identifier.
  1159. // This is an OPTIONAL field.
  1160. VolumeMountGroup string `protobuf:"bytes,3,opt,name=volume_mount_group,json=volumeMountGroup,proto3" json:"volume_mount_group,omitempty"`
  1161. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1162. XXX_unrecognized []byte `json:"-"`
  1163. XXX_sizecache int32 `json:"-"`
  1164. }
  1165. func (m *VolumeCapability_MountVolume) Reset() { *m = VolumeCapability_MountVolume{} }
  1166. func (m *VolumeCapability_MountVolume) String() string { return proto.CompactTextString(m) }
  1167. func (*VolumeCapability_MountVolume) ProtoMessage() {}
  1168. func (*VolumeCapability_MountVolume) Descriptor() ([]byte, []int) {
  1169. return fileDescriptor_9cdb00adce470e01, []int{10, 1}
  1170. }
  1171. func (m *VolumeCapability_MountVolume) XXX_Unmarshal(b []byte) error {
  1172. return xxx_messageInfo_VolumeCapability_MountVolume.Unmarshal(m, b)
  1173. }
  1174. func (m *VolumeCapability_MountVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1175. return xxx_messageInfo_VolumeCapability_MountVolume.Marshal(b, m, deterministic)
  1176. }
  1177. func (m *VolumeCapability_MountVolume) XXX_Merge(src proto.Message) {
  1178. xxx_messageInfo_VolumeCapability_MountVolume.Merge(m, src)
  1179. }
  1180. func (m *VolumeCapability_MountVolume) XXX_Size() int {
  1181. return xxx_messageInfo_VolumeCapability_MountVolume.Size(m)
  1182. }
  1183. func (m *VolumeCapability_MountVolume) XXX_DiscardUnknown() {
  1184. xxx_messageInfo_VolumeCapability_MountVolume.DiscardUnknown(m)
  1185. }
  1186. var xxx_messageInfo_VolumeCapability_MountVolume proto.InternalMessageInfo
  1187. func (m *VolumeCapability_MountVolume) GetFsType() string {
  1188. if m != nil {
  1189. return m.FsType
  1190. }
  1191. return ""
  1192. }
  1193. func (m *VolumeCapability_MountVolume) GetMountFlags() []string {
  1194. if m != nil {
  1195. return m.MountFlags
  1196. }
  1197. return nil
  1198. }
  1199. func (m *VolumeCapability_MountVolume) GetVolumeMountGroup() string {
  1200. if m != nil {
  1201. return m.VolumeMountGroup
  1202. }
  1203. return ""
  1204. }
  1205. // Specify how a volume can be accessed.
  1206. type VolumeCapability_AccessMode struct {
  1207. // This field is REQUIRED.
  1208. Mode VolumeCapability_AccessMode_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=csi.v1.VolumeCapability_AccessMode_Mode" json:"mode,omitempty"`
  1209. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1210. XXX_unrecognized []byte `json:"-"`
  1211. XXX_sizecache int32 `json:"-"`
  1212. }
  1213. func (m *VolumeCapability_AccessMode) Reset() { *m = VolumeCapability_AccessMode{} }
  1214. func (m *VolumeCapability_AccessMode) String() string { return proto.CompactTextString(m) }
  1215. func (*VolumeCapability_AccessMode) ProtoMessage() {}
  1216. func (*VolumeCapability_AccessMode) Descriptor() ([]byte, []int) {
  1217. return fileDescriptor_9cdb00adce470e01, []int{10, 2}
  1218. }
  1219. func (m *VolumeCapability_AccessMode) XXX_Unmarshal(b []byte) error {
  1220. return xxx_messageInfo_VolumeCapability_AccessMode.Unmarshal(m, b)
  1221. }
  1222. func (m *VolumeCapability_AccessMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1223. return xxx_messageInfo_VolumeCapability_AccessMode.Marshal(b, m, deterministic)
  1224. }
  1225. func (m *VolumeCapability_AccessMode) XXX_Merge(src proto.Message) {
  1226. xxx_messageInfo_VolumeCapability_AccessMode.Merge(m, src)
  1227. }
  1228. func (m *VolumeCapability_AccessMode) XXX_Size() int {
  1229. return xxx_messageInfo_VolumeCapability_AccessMode.Size(m)
  1230. }
  1231. func (m *VolumeCapability_AccessMode) XXX_DiscardUnknown() {
  1232. xxx_messageInfo_VolumeCapability_AccessMode.DiscardUnknown(m)
  1233. }
  1234. var xxx_messageInfo_VolumeCapability_AccessMode proto.InternalMessageInfo
  1235. func (m *VolumeCapability_AccessMode) GetMode() VolumeCapability_AccessMode_Mode {
  1236. if m != nil {
  1237. return m.Mode
  1238. }
  1239. return VolumeCapability_AccessMode_UNKNOWN
  1240. }
  1241. // The capacity of the storage space in bytes. To specify an exact size,
  1242. // `required_bytes` and `limit_bytes` SHALL be set to the same value. At
  1243. // least one of the these fields MUST be specified.
  1244. type CapacityRange struct {
  1245. // Volume MUST be at least this big. This field is OPTIONAL.
  1246. // A value of 0 is equal to an unspecified field value.
  1247. // The value of this field MUST NOT be negative.
  1248. RequiredBytes int64 `protobuf:"varint,1,opt,name=required_bytes,json=requiredBytes,proto3" json:"required_bytes,omitempty"`
  1249. // Volume MUST not be bigger than this. This field is OPTIONAL.
  1250. // A value of 0 is equal to an unspecified field value.
  1251. // The value of this field MUST NOT be negative.
  1252. LimitBytes int64 `protobuf:"varint,2,opt,name=limit_bytes,json=limitBytes,proto3" json:"limit_bytes,omitempty"`
  1253. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1254. XXX_unrecognized []byte `json:"-"`
  1255. XXX_sizecache int32 `json:"-"`
  1256. }
  1257. func (m *CapacityRange) Reset() { *m = CapacityRange{} }
  1258. func (m *CapacityRange) String() string { return proto.CompactTextString(m) }
  1259. func (*CapacityRange) ProtoMessage() {}
  1260. func (*CapacityRange) Descriptor() ([]byte, []int) {
  1261. return fileDescriptor_9cdb00adce470e01, []int{11}
  1262. }
  1263. func (m *CapacityRange) XXX_Unmarshal(b []byte) error {
  1264. return xxx_messageInfo_CapacityRange.Unmarshal(m, b)
  1265. }
  1266. func (m *CapacityRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1267. return xxx_messageInfo_CapacityRange.Marshal(b, m, deterministic)
  1268. }
  1269. func (m *CapacityRange) XXX_Merge(src proto.Message) {
  1270. xxx_messageInfo_CapacityRange.Merge(m, src)
  1271. }
  1272. func (m *CapacityRange) XXX_Size() int {
  1273. return xxx_messageInfo_CapacityRange.Size(m)
  1274. }
  1275. func (m *CapacityRange) XXX_DiscardUnknown() {
  1276. xxx_messageInfo_CapacityRange.DiscardUnknown(m)
  1277. }
  1278. var xxx_messageInfo_CapacityRange proto.InternalMessageInfo
  1279. func (m *CapacityRange) GetRequiredBytes() int64 {
  1280. if m != nil {
  1281. return m.RequiredBytes
  1282. }
  1283. return 0
  1284. }
  1285. func (m *CapacityRange) GetLimitBytes() int64 {
  1286. if m != nil {
  1287. return m.LimitBytes
  1288. }
  1289. return 0
  1290. }
  1291. // Information about a specific volume.
  1292. type Volume struct {
  1293. // The capacity of the volume in bytes. This field is OPTIONAL. If not
  1294. // set (value of 0), it indicates that the capacity of the volume is
  1295. // unknown (e.g., NFS share).
  1296. // The value of this field MUST NOT be negative.
  1297. CapacityBytes int64 `protobuf:"varint,1,opt,name=capacity_bytes,json=capacityBytes,proto3" json:"capacity_bytes,omitempty"`
  1298. // The identifier for this volume, generated by the plugin.
  1299. // This field is REQUIRED.
  1300. // This field MUST contain enough information to uniquely identify
  1301. // this specific volume vs all other volumes supported by this plugin.
  1302. // This field SHALL be used by the CO in subsequent calls to refer to
  1303. // this volume.
  1304. // The SP is NOT responsible for global uniqueness of volume_id across
  1305. // multiple SPs.
  1306. VolumeId string `protobuf:"bytes,2,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  1307. // Opaque static properties of the volume. SP MAY use this field to
  1308. // ensure subsequent volume validation and publishing calls have
  1309. // contextual information.
  1310. // The contents of this field SHALL be opaque to a CO.
  1311. // The contents of this field SHALL NOT be mutable.
  1312. // The contents of this field SHALL be safe for the CO to cache.
  1313. // The contents of this field SHOULD NOT contain sensitive
  1314. // information.
  1315. // The contents of this field SHOULD NOT be used for uniquely
  1316. // identifying a volume. The `volume_id` alone SHOULD be sufficient to
  1317. // identify the volume.
  1318. // A volume uniquely identified by `volume_id` SHALL always report the
  1319. // same volume_context.
  1320. // This field is OPTIONAL and when present MUST be passed to volume
  1321. // validation and publishing calls.
  1322. VolumeContext map[string]string `protobuf:"bytes,3,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1323. // If specified, indicates that the volume is not empty and is
  1324. // pre-populated with data from the specified source.
  1325. // This field is OPTIONAL.
  1326. ContentSource *VolumeContentSource `protobuf:"bytes,4,opt,name=content_source,json=contentSource,proto3" json:"content_source,omitempty"`
  1327. // Specifies where (regions, zones, racks, etc.) the provisioned
  1328. // volume is accessible from.
  1329. // A plugin that returns this field MUST also set the
  1330. // VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability.
  1331. // An SP MAY specify multiple topologies to indicate the volume is
  1332. // accessible from multiple locations.
  1333. // COs MAY use this information along with the topology information
  1334. // returned by NodeGetInfo to ensure that a given volume is accessible
  1335. // from a given node when scheduling workloads.
  1336. // This field is OPTIONAL. If it is not specified, the CO MAY assume
  1337. // the volume is equally accessible from all nodes in the cluster and
  1338. // MAY schedule workloads referencing the volume on any available
  1339. // node.
  1340. //
  1341. // Example 1:
  1342. // accessible_topology = {"region": "R1", "zone": "Z2"}
  1343. // Indicates a volume accessible only from the "region" "R1" and the
  1344. // "zone" "Z2".
  1345. //
  1346. // Example 2:
  1347. // accessible_topology =
  1348. // {"region": "R1", "zone": "Z2"},
  1349. // {"region": "R1", "zone": "Z3"}
  1350. // Indicates a volume accessible from both "zone" "Z2" and "zone" "Z3"
  1351. // in the "region" "R1".
  1352. AccessibleTopology []*Topology `protobuf:"bytes,5,rep,name=accessible_topology,json=accessibleTopology,proto3" json:"accessible_topology,omitempty"`
  1353. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1354. XXX_unrecognized []byte `json:"-"`
  1355. XXX_sizecache int32 `json:"-"`
  1356. }
  1357. func (m *Volume) Reset() { *m = Volume{} }
  1358. func (m *Volume) String() string { return proto.CompactTextString(m) }
  1359. func (*Volume) ProtoMessage() {}
  1360. func (*Volume) Descriptor() ([]byte, []int) {
  1361. return fileDescriptor_9cdb00adce470e01, []int{12}
  1362. }
  1363. func (m *Volume) XXX_Unmarshal(b []byte) error {
  1364. return xxx_messageInfo_Volume.Unmarshal(m, b)
  1365. }
  1366. func (m *Volume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1367. return xxx_messageInfo_Volume.Marshal(b, m, deterministic)
  1368. }
  1369. func (m *Volume) XXX_Merge(src proto.Message) {
  1370. xxx_messageInfo_Volume.Merge(m, src)
  1371. }
  1372. func (m *Volume) XXX_Size() int {
  1373. return xxx_messageInfo_Volume.Size(m)
  1374. }
  1375. func (m *Volume) XXX_DiscardUnknown() {
  1376. xxx_messageInfo_Volume.DiscardUnknown(m)
  1377. }
  1378. var xxx_messageInfo_Volume proto.InternalMessageInfo
  1379. func (m *Volume) GetCapacityBytes() int64 {
  1380. if m != nil {
  1381. return m.CapacityBytes
  1382. }
  1383. return 0
  1384. }
  1385. func (m *Volume) GetVolumeId() string {
  1386. if m != nil {
  1387. return m.VolumeId
  1388. }
  1389. return ""
  1390. }
  1391. func (m *Volume) GetVolumeContext() map[string]string {
  1392. if m != nil {
  1393. return m.VolumeContext
  1394. }
  1395. return nil
  1396. }
  1397. func (m *Volume) GetContentSource() *VolumeContentSource {
  1398. if m != nil {
  1399. return m.ContentSource
  1400. }
  1401. return nil
  1402. }
  1403. func (m *Volume) GetAccessibleTopology() []*Topology {
  1404. if m != nil {
  1405. return m.AccessibleTopology
  1406. }
  1407. return nil
  1408. }
  1409. type TopologyRequirement struct {
  1410. // Specifies the list of topologies the provisioned volume MUST be
  1411. // accessible from.
  1412. // This field is OPTIONAL. If TopologyRequirement is specified either
  1413. // requisite or preferred or both MUST be specified.
  1414. //
  1415. // If requisite is specified, the provisioned volume MUST be
  1416. // accessible from at least one of the requisite topologies.
  1417. //
  1418. // Given
  1419. // x = number of topologies provisioned volume is accessible from
  1420. // n = number of requisite topologies
  1421. // The CO MUST ensure n >= 1. The SP MUST ensure x >= 1
  1422. // If x==n, then the SP MUST make the provisioned volume available to
  1423. // all topologies from the list of requisite topologies. If it is
  1424. // unable to do so, the SP MUST fail the CreateVolume call.
  1425. // For example, if a volume should be accessible from a single zone,
  1426. // and requisite =
  1427. // {"region": "R1", "zone": "Z2"}
  1428. // then the provisioned volume MUST be accessible from the "region"
  1429. // "R1" and the "zone" "Z2".
  1430. // Similarly, if a volume should be accessible from two zones, and
  1431. // requisite =
  1432. // {"region": "R1", "zone": "Z2"},
  1433. // {"region": "R1", "zone": "Z3"}
  1434. // then the provisioned volume MUST be accessible from the "region"
  1435. // "R1" and both "zone" "Z2" and "zone" "Z3".
  1436. //
  1437. // If x<n, then the SP SHALL choose x unique topologies from the list
  1438. // of requisite topologies. If it is unable to do so, the SP MUST fail
  1439. // the CreateVolume call.
  1440. // For example, if a volume should be accessible from a single zone,
  1441. // and requisite =
  1442. // {"region": "R1", "zone": "Z2"},
  1443. // {"region": "R1", "zone": "Z3"}
  1444. // then the SP may choose to make the provisioned volume available in
  1445. // either the "zone" "Z2" or the "zone" "Z3" in the "region" "R1".
  1446. // Similarly, if a volume should be accessible from two zones, and
  1447. // requisite =
  1448. // {"region": "R1", "zone": "Z2"},
  1449. // {"region": "R1", "zone": "Z3"},
  1450. // {"region": "R1", "zone": "Z4"}
  1451. // then the provisioned volume MUST be accessible from any combination
  1452. // of two unique topologies: e.g. "R1/Z2" and "R1/Z3", or "R1/Z2" and
  1453. // "R1/Z4", or "R1/Z3" and "R1/Z4".
  1454. //
  1455. // If x>n, then the SP MUST make the provisioned volume available from
  1456. // all topologies from the list of requisite topologies and MAY choose
  1457. // the remaining x-n unique topologies from the list of all possible
  1458. // topologies. If it is unable to do so, the SP MUST fail the
  1459. // CreateVolume call.
  1460. // For example, if a volume should be accessible from two zones, and
  1461. // requisite =
  1462. // {"region": "R1", "zone": "Z2"}
  1463. // then the provisioned volume MUST be accessible from the "region"
  1464. // "R1" and the "zone" "Z2" and the SP may select the second zone
  1465. // independently, e.g. "R1/Z4".
  1466. Requisite []*Topology `protobuf:"bytes,1,rep,name=requisite,proto3" json:"requisite,omitempty"`
  1467. // Specifies the list of topologies the CO would prefer the volume to
  1468. // be provisioned in.
  1469. //
  1470. // This field is OPTIONAL. If TopologyRequirement is specified either
  1471. // requisite or preferred or both MUST be specified.
  1472. //
  1473. // An SP MUST attempt to make the provisioned volume available using
  1474. // the preferred topologies in order from first to last.
  1475. //
  1476. // If requisite is specified, all topologies in preferred list MUST
  1477. // also be present in the list of requisite topologies.
  1478. //
  1479. // If the SP is unable to to make the provisioned volume available
  1480. // from any of the preferred topologies, the SP MAY choose a topology
  1481. // from the list of requisite topologies.
  1482. // If the list of requisite topologies is not specified, then the SP
  1483. // MAY choose from the list of all possible topologies.
  1484. // If the list of requisite topologies is specified and the SP is
  1485. // unable to to make the provisioned volume available from any of the
  1486. // requisite topologies it MUST fail the CreateVolume call.
  1487. //
  1488. // Example 1:
  1489. // Given a volume should be accessible from a single zone, and
  1490. // requisite =
  1491. // {"region": "R1", "zone": "Z2"},
  1492. // {"region": "R1", "zone": "Z3"}
  1493. // preferred =
  1494. // {"region": "R1", "zone": "Z3"}
  1495. // then the the SP SHOULD first attempt to make the provisioned volume
  1496. // available from "zone" "Z3" in the "region" "R1" and fall back to
  1497. // "zone" "Z2" in the "region" "R1" if that is not possible.
  1498. //
  1499. // Example 2:
  1500. // Given a volume should be accessible from a single zone, and
  1501. // requisite =
  1502. // {"region": "R1", "zone": "Z2"},
  1503. // {"region": "R1", "zone": "Z3"},
  1504. // {"region": "R1", "zone": "Z4"},
  1505. // {"region": "R1", "zone": "Z5"}
  1506. // preferred =
  1507. // {"region": "R1", "zone": "Z4"},
  1508. // {"region": "R1", "zone": "Z2"}
  1509. // then the the SP SHOULD first attempt to make the provisioned volume
  1510. // accessible from "zone" "Z4" in the "region" "R1" and fall back to
  1511. // "zone" "Z2" in the "region" "R1" if that is not possible. If that
  1512. // is not possible, the SP may choose between either the "zone"
  1513. // "Z3" or "Z5" in the "region" "R1".
  1514. //
  1515. // Example 3:
  1516. // Given a volume should be accessible from TWO zones (because an
  1517. // opaque parameter in CreateVolumeRequest, for example, specifies
  1518. // the volume is accessible from two zones, aka synchronously
  1519. // replicated), and
  1520. // requisite =
  1521. // {"region": "R1", "zone": "Z2"},
  1522. // {"region": "R1", "zone": "Z3"},
  1523. // {"region": "R1", "zone": "Z4"},
  1524. // {"region": "R1", "zone": "Z5"}
  1525. // preferred =
  1526. // {"region": "R1", "zone": "Z5"},
  1527. // {"region": "R1", "zone": "Z3"}
  1528. // then the the SP SHOULD first attempt to make the provisioned volume
  1529. // accessible from the combination of the two "zones" "Z5" and "Z3" in
  1530. // the "region" "R1". If that's not possible, it should fall back to
  1531. // a combination of "Z5" and other possibilities from the list of
  1532. // requisite. If that's not possible, it should fall back to a
  1533. // combination of "Z3" and other possibilities from the list of
  1534. // requisite. If that's not possible, it should fall back to a
  1535. // combination of other possibilities from the list of requisite.
  1536. Preferred []*Topology `protobuf:"bytes,2,rep,name=preferred,proto3" json:"preferred,omitempty"`
  1537. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1538. XXX_unrecognized []byte `json:"-"`
  1539. XXX_sizecache int32 `json:"-"`
  1540. }
  1541. func (m *TopologyRequirement) Reset() { *m = TopologyRequirement{} }
  1542. func (m *TopologyRequirement) String() string { return proto.CompactTextString(m) }
  1543. func (*TopologyRequirement) ProtoMessage() {}
  1544. func (*TopologyRequirement) Descriptor() ([]byte, []int) {
  1545. return fileDescriptor_9cdb00adce470e01, []int{13}
  1546. }
  1547. func (m *TopologyRequirement) XXX_Unmarshal(b []byte) error {
  1548. return xxx_messageInfo_TopologyRequirement.Unmarshal(m, b)
  1549. }
  1550. func (m *TopologyRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1551. return xxx_messageInfo_TopologyRequirement.Marshal(b, m, deterministic)
  1552. }
  1553. func (m *TopologyRequirement) XXX_Merge(src proto.Message) {
  1554. xxx_messageInfo_TopologyRequirement.Merge(m, src)
  1555. }
  1556. func (m *TopologyRequirement) XXX_Size() int {
  1557. return xxx_messageInfo_TopologyRequirement.Size(m)
  1558. }
  1559. func (m *TopologyRequirement) XXX_DiscardUnknown() {
  1560. xxx_messageInfo_TopologyRequirement.DiscardUnknown(m)
  1561. }
  1562. var xxx_messageInfo_TopologyRequirement proto.InternalMessageInfo
  1563. func (m *TopologyRequirement) GetRequisite() []*Topology {
  1564. if m != nil {
  1565. return m.Requisite
  1566. }
  1567. return nil
  1568. }
  1569. func (m *TopologyRequirement) GetPreferred() []*Topology {
  1570. if m != nil {
  1571. return m.Preferred
  1572. }
  1573. return nil
  1574. }
  1575. // Topology is a map of topological domains to topological segments.
  1576. // A topological domain is a sub-division of a cluster, like "region",
  1577. // "zone", "rack", etc.
  1578. // A topological segment is a specific instance of a topological domain,
  1579. // like "zone3", "rack3", etc.
  1580. // For example {"com.company/zone": "Z1", "com.company/rack": "R3"}
  1581. // Valid keys have two segments: an OPTIONAL prefix and name, separated
  1582. // by a slash (/), for example: "com.company.example/zone".
  1583. // The key name segment is REQUIRED. The prefix is OPTIONAL.
  1584. // The key name MUST be 63 characters or less, begin and end with an
  1585. // alphanumeric character ([a-z0-9A-Z]), and contain only dashes (-),
  1586. // underscores (_), dots (.), or alphanumerics in between, for example
  1587. // "zone".
  1588. // The key prefix MUST be 63 characters or less, begin and end with a
  1589. // lower-case alphanumeric character ([a-z0-9]), contain only
  1590. // dashes (-), dots (.), or lower-case alphanumerics in between, and
  1591. // follow domain name notation format
  1592. // (https://tools.ietf.org/html/rfc1035#section-2.3.1).
  1593. // The key prefix SHOULD include the plugin's host company name and/or
  1594. // the plugin name, to minimize the possibility of collisions with keys
  1595. // from other plugins.
  1596. // If a key prefix is specified, it MUST be identical across all
  1597. // topology keys returned by the SP (across all RPCs).
  1598. // Keys MUST be case-insensitive. Meaning the keys "Zone" and "zone"
  1599. // MUST not both exist.
  1600. // Each value (topological segment) MUST contain 1 or more strings.
  1601. // Each string MUST be 63 characters or less and begin and end with an
  1602. // alphanumeric character with '-', '_', '.', or alphanumerics in
  1603. // between.
  1604. type Topology struct {
  1605. Segments map[string]string `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1606. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1607. XXX_unrecognized []byte `json:"-"`
  1608. XXX_sizecache int32 `json:"-"`
  1609. }
  1610. func (m *Topology) Reset() { *m = Topology{} }
  1611. func (m *Topology) String() string { return proto.CompactTextString(m) }
  1612. func (*Topology) ProtoMessage() {}
  1613. func (*Topology) Descriptor() ([]byte, []int) {
  1614. return fileDescriptor_9cdb00adce470e01, []int{14}
  1615. }
  1616. func (m *Topology) XXX_Unmarshal(b []byte) error {
  1617. return xxx_messageInfo_Topology.Unmarshal(m, b)
  1618. }
  1619. func (m *Topology) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1620. return xxx_messageInfo_Topology.Marshal(b, m, deterministic)
  1621. }
  1622. func (m *Topology) XXX_Merge(src proto.Message) {
  1623. xxx_messageInfo_Topology.Merge(m, src)
  1624. }
  1625. func (m *Topology) XXX_Size() int {
  1626. return xxx_messageInfo_Topology.Size(m)
  1627. }
  1628. func (m *Topology) XXX_DiscardUnknown() {
  1629. xxx_messageInfo_Topology.DiscardUnknown(m)
  1630. }
  1631. var xxx_messageInfo_Topology proto.InternalMessageInfo
  1632. func (m *Topology) GetSegments() map[string]string {
  1633. if m != nil {
  1634. return m.Segments
  1635. }
  1636. return nil
  1637. }
  1638. type DeleteVolumeRequest struct {
  1639. // The ID of the volume to be deprovisioned.
  1640. // This field is REQUIRED.
  1641. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  1642. // Secrets required by plugin to complete volume deletion request.
  1643. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  1644. // section on how to use this field.
  1645. Secrets map[string]string `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1646. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1647. XXX_unrecognized []byte `json:"-"`
  1648. XXX_sizecache int32 `json:"-"`
  1649. }
  1650. func (m *DeleteVolumeRequest) Reset() { *m = DeleteVolumeRequest{} }
  1651. func (m *DeleteVolumeRequest) String() string { return proto.CompactTextString(m) }
  1652. func (*DeleteVolumeRequest) ProtoMessage() {}
  1653. func (*DeleteVolumeRequest) Descriptor() ([]byte, []int) {
  1654. return fileDescriptor_9cdb00adce470e01, []int{15}
  1655. }
  1656. func (m *DeleteVolumeRequest) XXX_Unmarshal(b []byte) error {
  1657. return xxx_messageInfo_DeleteVolumeRequest.Unmarshal(m, b)
  1658. }
  1659. func (m *DeleteVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1660. return xxx_messageInfo_DeleteVolumeRequest.Marshal(b, m, deterministic)
  1661. }
  1662. func (m *DeleteVolumeRequest) XXX_Merge(src proto.Message) {
  1663. xxx_messageInfo_DeleteVolumeRequest.Merge(m, src)
  1664. }
  1665. func (m *DeleteVolumeRequest) XXX_Size() int {
  1666. return xxx_messageInfo_DeleteVolumeRequest.Size(m)
  1667. }
  1668. func (m *DeleteVolumeRequest) XXX_DiscardUnknown() {
  1669. xxx_messageInfo_DeleteVolumeRequest.DiscardUnknown(m)
  1670. }
  1671. var xxx_messageInfo_DeleteVolumeRequest proto.InternalMessageInfo
  1672. func (m *DeleteVolumeRequest) GetVolumeId() string {
  1673. if m != nil {
  1674. return m.VolumeId
  1675. }
  1676. return ""
  1677. }
  1678. func (m *DeleteVolumeRequest) GetSecrets() map[string]string {
  1679. if m != nil {
  1680. return m.Secrets
  1681. }
  1682. return nil
  1683. }
  1684. type DeleteVolumeResponse struct {
  1685. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1686. XXX_unrecognized []byte `json:"-"`
  1687. XXX_sizecache int32 `json:"-"`
  1688. }
  1689. func (m *DeleteVolumeResponse) Reset() { *m = DeleteVolumeResponse{} }
  1690. func (m *DeleteVolumeResponse) String() string { return proto.CompactTextString(m) }
  1691. func (*DeleteVolumeResponse) ProtoMessage() {}
  1692. func (*DeleteVolumeResponse) Descriptor() ([]byte, []int) {
  1693. return fileDescriptor_9cdb00adce470e01, []int{16}
  1694. }
  1695. func (m *DeleteVolumeResponse) XXX_Unmarshal(b []byte) error {
  1696. return xxx_messageInfo_DeleteVolumeResponse.Unmarshal(m, b)
  1697. }
  1698. func (m *DeleteVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1699. return xxx_messageInfo_DeleteVolumeResponse.Marshal(b, m, deterministic)
  1700. }
  1701. func (m *DeleteVolumeResponse) XXX_Merge(src proto.Message) {
  1702. xxx_messageInfo_DeleteVolumeResponse.Merge(m, src)
  1703. }
  1704. func (m *DeleteVolumeResponse) XXX_Size() int {
  1705. return xxx_messageInfo_DeleteVolumeResponse.Size(m)
  1706. }
  1707. func (m *DeleteVolumeResponse) XXX_DiscardUnknown() {
  1708. xxx_messageInfo_DeleteVolumeResponse.DiscardUnknown(m)
  1709. }
  1710. var xxx_messageInfo_DeleteVolumeResponse proto.InternalMessageInfo
  1711. type ControllerPublishVolumeRequest struct {
  1712. // The ID of the volume to be used on a node.
  1713. // This field is REQUIRED.
  1714. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  1715. // The ID of the node. This field is REQUIRED. The CO SHALL set this
  1716. // field to match the node ID returned by `NodeGetInfo`.
  1717. NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
  1718. // Volume capability describing how the CO intends to use this volume.
  1719. // SP MUST ensure the CO can use the published volume as described.
  1720. // Otherwise SP MUST return the appropriate gRPC error code.
  1721. // This is a REQUIRED field.
  1722. VolumeCapability *VolumeCapability `protobuf:"bytes,3,opt,name=volume_capability,json=volumeCapability,proto3" json:"volume_capability,omitempty"`
  1723. // Indicates SP MUST publish the volume in readonly mode.
  1724. // CO MUST set this field to false if SP does not have the
  1725. // PUBLISH_READONLY controller capability.
  1726. // This is a REQUIRED field.
  1727. Readonly bool `protobuf:"varint,4,opt,name=readonly,proto3" json:"readonly,omitempty"`
  1728. // Secrets required by plugin to complete controller publish volume
  1729. // request. This field is OPTIONAL. Refer to the
  1730. // `Secrets Requirements` section on how to use this field.
  1731. Secrets map[string]string `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1732. // Volume context as returned by SP in
  1733. // CreateVolumeResponse.Volume.volume_context.
  1734. // This field is OPTIONAL and MUST match the volume_context of the
  1735. // volume identified by `volume_id`.
  1736. VolumeContext map[string]string `protobuf:"bytes,6,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1737. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1738. XXX_unrecognized []byte `json:"-"`
  1739. XXX_sizecache int32 `json:"-"`
  1740. }
  1741. func (m *ControllerPublishVolumeRequest) Reset() { *m = ControllerPublishVolumeRequest{} }
  1742. func (m *ControllerPublishVolumeRequest) String() string { return proto.CompactTextString(m) }
  1743. func (*ControllerPublishVolumeRequest) ProtoMessage() {}
  1744. func (*ControllerPublishVolumeRequest) Descriptor() ([]byte, []int) {
  1745. return fileDescriptor_9cdb00adce470e01, []int{17}
  1746. }
  1747. func (m *ControllerPublishVolumeRequest) XXX_Unmarshal(b []byte) error {
  1748. return xxx_messageInfo_ControllerPublishVolumeRequest.Unmarshal(m, b)
  1749. }
  1750. func (m *ControllerPublishVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1751. return xxx_messageInfo_ControllerPublishVolumeRequest.Marshal(b, m, deterministic)
  1752. }
  1753. func (m *ControllerPublishVolumeRequest) XXX_Merge(src proto.Message) {
  1754. xxx_messageInfo_ControllerPublishVolumeRequest.Merge(m, src)
  1755. }
  1756. func (m *ControllerPublishVolumeRequest) XXX_Size() int {
  1757. return xxx_messageInfo_ControllerPublishVolumeRequest.Size(m)
  1758. }
  1759. func (m *ControllerPublishVolumeRequest) XXX_DiscardUnknown() {
  1760. xxx_messageInfo_ControllerPublishVolumeRequest.DiscardUnknown(m)
  1761. }
  1762. var xxx_messageInfo_ControllerPublishVolumeRequest proto.InternalMessageInfo
  1763. func (m *ControllerPublishVolumeRequest) GetVolumeId() string {
  1764. if m != nil {
  1765. return m.VolumeId
  1766. }
  1767. return ""
  1768. }
  1769. func (m *ControllerPublishVolumeRequest) GetNodeId() string {
  1770. if m != nil {
  1771. return m.NodeId
  1772. }
  1773. return ""
  1774. }
  1775. func (m *ControllerPublishVolumeRequest) GetVolumeCapability() *VolumeCapability {
  1776. if m != nil {
  1777. return m.VolumeCapability
  1778. }
  1779. return nil
  1780. }
  1781. func (m *ControllerPublishVolumeRequest) GetReadonly() bool {
  1782. if m != nil {
  1783. return m.Readonly
  1784. }
  1785. return false
  1786. }
  1787. func (m *ControllerPublishVolumeRequest) GetSecrets() map[string]string {
  1788. if m != nil {
  1789. return m.Secrets
  1790. }
  1791. return nil
  1792. }
  1793. func (m *ControllerPublishVolumeRequest) GetVolumeContext() map[string]string {
  1794. if m != nil {
  1795. return m.VolumeContext
  1796. }
  1797. return nil
  1798. }
  1799. type ControllerPublishVolumeResponse struct {
  1800. // Opaque static publish properties of the volume. SP MAY use this
  1801. // field to ensure subsequent `NodeStageVolume` or `NodePublishVolume`
  1802. // calls calls have contextual information.
  1803. // The contents of this field SHALL be opaque to a CO.
  1804. // The contents of this field SHALL NOT be mutable.
  1805. // The contents of this field SHALL be safe for the CO to cache.
  1806. // The contents of this field SHOULD NOT contain sensitive
  1807. // information.
  1808. // The contents of this field SHOULD NOT be used for uniquely
  1809. // identifying a volume. The `volume_id` alone SHOULD be sufficient to
  1810. // identify the volume.
  1811. // This field is OPTIONAL and when present MUST be passed to
  1812. // subsequent `NodeStageVolume` or `NodePublishVolume` calls
  1813. PublishContext map[string]string `protobuf:"bytes,1,rep,name=publish_context,json=publishContext,proto3" json:"publish_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1814. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1815. XXX_unrecognized []byte `json:"-"`
  1816. XXX_sizecache int32 `json:"-"`
  1817. }
  1818. func (m *ControllerPublishVolumeResponse) Reset() { *m = ControllerPublishVolumeResponse{} }
  1819. func (m *ControllerPublishVolumeResponse) String() string { return proto.CompactTextString(m) }
  1820. func (*ControllerPublishVolumeResponse) ProtoMessage() {}
  1821. func (*ControllerPublishVolumeResponse) Descriptor() ([]byte, []int) {
  1822. return fileDescriptor_9cdb00adce470e01, []int{18}
  1823. }
  1824. func (m *ControllerPublishVolumeResponse) XXX_Unmarshal(b []byte) error {
  1825. return xxx_messageInfo_ControllerPublishVolumeResponse.Unmarshal(m, b)
  1826. }
  1827. func (m *ControllerPublishVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1828. return xxx_messageInfo_ControllerPublishVolumeResponse.Marshal(b, m, deterministic)
  1829. }
  1830. func (m *ControllerPublishVolumeResponse) XXX_Merge(src proto.Message) {
  1831. xxx_messageInfo_ControllerPublishVolumeResponse.Merge(m, src)
  1832. }
  1833. func (m *ControllerPublishVolumeResponse) XXX_Size() int {
  1834. return xxx_messageInfo_ControllerPublishVolumeResponse.Size(m)
  1835. }
  1836. func (m *ControllerPublishVolumeResponse) XXX_DiscardUnknown() {
  1837. xxx_messageInfo_ControllerPublishVolumeResponse.DiscardUnknown(m)
  1838. }
  1839. var xxx_messageInfo_ControllerPublishVolumeResponse proto.InternalMessageInfo
  1840. func (m *ControllerPublishVolumeResponse) GetPublishContext() map[string]string {
  1841. if m != nil {
  1842. return m.PublishContext
  1843. }
  1844. return nil
  1845. }
  1846. type ControllerUnpublishVolumeRequest struct {
  1847. // The ID of the volume. This field is REQUIRED.
  1848. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  1849. // The ID of the node. This field is OPTIONAL. The CO SHOULD set this
  1850. // field to match the node ID returned by `NodeGetInfo` or leave it
  1851. // unset. If the value is set, the SP MUST unpublish the volume from
  1852. // the specified node. If the value is unset, the SP MUST unpublish
  1853. // the volume from all nodes it is published to.
  1854. NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
  1855. // Secrets required by plugin to complete controller unpublish volume
  1856. // request. This SHOULD be the same secrets passed to the
  1857. // ControllerPublishVolume call for the specified volume.
  1858. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  1859. // section on how to use this field.
  1860. Secrets map[string]string `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1861. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1862. XXX_unrecognized []byte `json:"-"`
  1863. XXX_sizecache int32 `json:"-"`
  1864. }
  1865. func (m *ControllerUnpublishVolumeRequest) Reset() { *m = ControllerUnpublishVolumeRequest{} }
  1866. func (m *ControllerUnpublishVolumeRequest) String() string { return proto.CompactTextString(m) }
  1867. func (*ControllerUnpublishVolumeRequest) ProtoMessage() {}
  1868. func (*ControllerUnpublishVolumeRequest) Descriptor() ([]byte, []int) {
  1869. return fileDescriptor_9cdb00adce470e01, []int{19}
  1870. }
  1871. func (m *ControllerUnpublishVolumeRequest) XXX_Unmarshal(b []byte) error {
  1872. return xxx_messageInfo_ControllerUnpublishVolumeRequest.Unmarshal(m, b)
  1873. }
  1874. func (m *ControllerUnpublishVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1875. return xxx_messageInfo_ControllerUnpublishVolumeRequest.Marshal(b, m, deterministic)
  1876. }
  1877. func (m *ControllerUnpublishVolumeRequest) XXX_Merge(src proto.Message) {
  1878. xxx_messageInfo_ControllerUnpublishVolumeRequest.Merge(m, src)
  1879. }
  1880. func (m *ControllerUnpublishVolumeRequest) XXX_Size() int {
  1881. return xxx_messageInfo_ControllerUnpublishVolumeRequest.Size(m)
  1882. }
  1883. func (m *ControllerUnpublishVolumeRequest) XXX_DiscardUnknown() {
  1884. xxx_messageInfo_ControllerUnpublishVolumeRequest.DiscardUnknown(m)
  1885. }
  1886. var xxx_messageInfo_ControllerUnpublishVolumeRequest proto.InternalMessageInfo
  1887. func (m *ControllerUnpublishVolumeRequest) GetVolumeId() string {
  1888. if m != nil {
  1889. return m.VolumeId
  1890. }
  1891. return ""
  1892. }
  1893. func (m *ControllerUnpublishVolumeRequest) GetNodeId() string {
  1894. if m != nil {
  1895. return m.NodeId
  1896. }
  1897. return ""
  1898. }
  1899. func (m *ControllerUnpublishVolumeRequest) GetSecrets() map[string]string {
  1900. if m != nil {
  1901. return m.Secrets
  1902. }
  1903. return nil
  1904. }
  1905. type ControllerUnpublishVolumeResponse struct {
  1906. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1907. XXX_unrecognized []byte `json:"-"`
  1908. XXX_sizecache int32 `json:"-"`
  1909. }
  1910. func (m *ControllerUnpublishVolumeResponse) Reset() { *m = ControllerUnpublishVolumeResponse{} }
  1911. func (m *ControllerUnpublishVolumeResponse) String() string { return proto.CompactTextString(m) }
  1912. func (*ControllerUnpublishVolumeResponse) ProtoMessage() {}
  1913. func (*ControllerUnpublishVolumeResponse) Descriptor() ([]byte, []int) {
  1914. return fileDescriptor_9cdb00adce470e01, []int{20}
  1915. }
  1916. func (m *ControllerUnpublishVolumeResponse) XXX_Unmarshal(b []byte) error {
  1917. return xxx_messageInfo_ControllerUnpublishVolumeResponse.Unmarshal(m, b)
  1918. }
  1919. func (m *ControllerUnpublishVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1920. return xxx_messageInfo_ControllerUnpublishVolumeResponse.Marshal(b, m, deterministic)
  1921. }
  1922. func (m *ControllerUnpublishVolumeResponse) XXX_Merge(src proto.Message) {
  1923. xxx_messageInfo_ControllerUnpublishVolumeResponse.Merge(m, src)
  1924. }
  1925. func (m *ControllerUnpublishVolumeResponse) XXX_Size() int {
  1926. return xxx_messageInfo_ControllerUnpublishVolumeResponse.Size(m)
  1927. }
  1928. func (m *ControllerUnpublishVolumeResponse) XXX_DiscardUnknown() {
  1929. xxx_messageInfo_ControllerUnpublishVolumeResponse.DiscardUnknown(m)
  1930. }
  1931. var xxx_messageInfo_ControllerUnpublishVolumeResponse proto.InternalMessageInfo
  1932. type ValidateVolumeCapabilitiesRequest struct {
  1933. // The ID of the volume to check. This field is REQUIRED.
  1934. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  1935. // Volume context as returned by SP in
  1936. // CreateVolumeResponse.Volume.volume_context.
  1937. // This field is OPTIONAL and MUST match the volume_context of the
  1938. // volume identified by `volume_id`.
  1939. VolumeContext map[string]string `protobuf:"bytes,2,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1940. // The capabilities that the CO wants to check for the volume. This
  1941. // call SHALL return "confirmed" only if all the volume capabilities
  1942. // specified below are supported. This field is REQUIRED.
  1943. VolumeCapabilities []*VolumeCapability `protobuf:"bytes,3,rep,name=volume_capabilities,json=volumeCapabilities,proto3" json:"volume_capabilities,omitempty"`
  1944. // See CreateVolumeRequest.parameters.
  1945. // This field is OPTIONAL.
  1946. Parameters map[string]string `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1947. // Secrets required by plugin to complete volume validation request.
  1948. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  1949. // section on how to use this field.
  1950. Secrets map[string]string `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1951. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1952. XXX_unrecognized []byte `json:"-"`
  1953. XXX_sizecache int32 `json:"-"`
  1954. }
  1955. func (m *ValidateVolumeCapabilitiesRequest) Reset() { *m = ValidateVolumeCapabilitiesRequest{} }
  1956. func (m *ValidateVolumeCapabilitiesRequest) String() string { return proto.CompactTextString(m) }
  1957. func (*ValidateVolumeCapabilitiesRequest) ProtoMessage() {}
  1958. func (*ValidateVolumeCapabilitiesRequest) Descriptor() ([]byte, []int) {
  1959. return fileDescriptor_9cdb00adce470e01, []int{21}
  1960. }
  1961. func (m *ValidateVolumeCapabilitiesRequest) XXX_Unmarshal(b []byte) error {
  1962. return xxx_messageInfo_ValidateVolumeCapabilitiesRequest.Unmarshal(m, b)
  1963. }
  1964. func (m *ValidateVolumeCapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1965. return xxx_messageInfo_ValidateVolumeCapabilitiesRequest.Marshal(b, m, deterministic)
  1966. }
  1967. func (m *ValidateVolumeCapabilitiesRequest) XXX_Merge(src proto.Message) {
  1968. xxx_messageInfo_ValidateVolumeCapabilitiesRequest.Merge(m, src)
  1969. }
  1970. func (m *ValidateVolumeCapabilitiesRequest) XXX_Size() int {
  1971. return xxx_messageInfo_ValidateVolumeCapabilitiesRequest.Size(m)
  1972. }
  1973. func (m *ValidateVolumeCapabilitiesRequest) XXX_DiscardUnknown() {
  1974. xxx_messageInfo_ValidateVolumeCapabilitiesRequest.DiscardUnknown(m)
  1975. }
  1976. var xxx_messageInfo_ValidateVolumeCapabilitiesRequest proto.InternalMessageInfo
  1977. func (m *ValidateVolumeCapabilitiesRequest) GetVolumeId() string {
  1978. if m != nil {
  1979. return m.VolumeId
  1980. }
  1981. return ""
  1982. }
  1983. func (m *ValidateVolumeCapabilitiesRequest) GetVolumeContext() map[string]string {
  1984. if m != nil {
  1985. return m.VolumeContext
  1986. }
  1987. return nil
  1988. }
  1989. func (m *ValidateVolumeCapabilitiesRequest) GetVolumeCapabilities() []*VolumeCapability {
  1990. if m != nil {
  1991. return m.VolumeCapabilities
  1992. }
  1993. return nil
  1994. }
  1995. func (m *ValidateVolumeCapabilitiesRequest) GetParameters() map[string]string {
  1996. if m != nil {
  1997. return m.Parameters
  1998. }
  1999. return nil
  2000. }
  2001. func (m *ValidateVolumeCapabilitiesRequest) GetSecrets() map[string]string {
  2002. if m != nil {
  2003. return m.Secrets
  2004. }
  2005. return nil
  2006. }
  2007. type ValidateVolumeCapabilitiesResponse struct {
  2008. // Confirmed indicates to the CO the set of capabilities that the
  2009. // plugin has validated. This field SHALL only be set to a non-empty
  2010. // value for successful validation responses.
  2011. // For successful validation responses, the CO SHALL compare the
  2012. // fields of this message to the originally requested capabilities in
  2013. // order to guard against an older plugin reporting "valid" for newer
  2014. // capability fields that it does not yet understand.
  2015. // This field is OPTIONAL.
  2016. Confirmed *ValidateVolumeCapabilitiesResponse_Confirmed `protobuf:"bytes,1,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
  2017. // Message to the CO if `confirmed` above is empty. This field is
  2018. // OPTIONAL.
  2019. // An empty string is equal to an unspecified field value.
  2020. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  2021. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2022. XXX_unrecognized []byte `json:"-"`
  2023. XXX_sizecache int32 `json:"-"`
  2024. }
  2025. func (m *ValidateVolumeCapabilitiesResponse) Reset() { *m = ValidateVolumeCapabilitiesResponse{} }
  2026. func (m *ValidateVolumeCapabilitiesResponse) String() string { return proto.CompactTextString(m) }
  2027. func (*ValidateVolumeCapabilitiesResponse) ProtoMessage() {}
  2028. func (*ValidateVolumeCapabilitiesResponse) Descriptor() ([]byte, []int) {
  2029. return fileDescriptor_9cdb00adce470e01, []int{22}
  2030. }
  2031. func (m *ValidateVolumeCapabilitiesResponse) XXX_Unmarshal(b []byte) error {
  2032. return xxx_messageInfo_ValidateVolumeCapabilitiesResponse.Unmarshal(m, b)
  2033. }
  2034. func (m *ValidateVolumeCapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2035. return xxx_messageInfo_ValidateVolumeCapabilitiesResponse.Marshal(b, m, deterministic)
  2036. }
  2037. func (m *ValidateVolumeCapabilitiesResponse) XXX_Merge(src proto.Message) {
  2038. xxx_messageInfo_ValidateVolumeCapabilitiesResponse.Merge(m, src)
  2039. }
  2040. func (m *ValidateVolumeCapabilitiesResponse) XXX_Size() int {
  2041. return xxx_messageInfo_ValidateVolumeCapabilitiesResponse.Size(m)
  2042. }
  2043. func (m *ValidateVolumeCapabilitiesResponse) XXX_DiscardUnknown() {
  2044. xxx_messageInfo_ValidateVolumeCapabilitiesResponse.DiscardUnknown(m)
  2045. }
  2046. var xxx_messageInfo_ValidateVolumeCapabilitiesResponse proto.InternalMessageInfo
  2047. func (m *ValidateVolumeCapabilitiesResponse) GetConfirmed() *ValidateVolumeCapabilitiesResponse_Confirmed {
  2048. if m != nil {
  2049. return m.Confirmed
  2050. }
  2051. return nil
  2052. }
  2053. func (m *ValidateVolumeCapabilitiesResponse) GetMessage() string {
  2054. if m != nil {
  2055. return m.Message
  2056. }
  2057. return ""
  2058. }
  2059. type ValidateVolumeCapabilitiesResponse_Confirmed struct {
  2060. // Volume context validated by the plugin.
  2061. // This field is OPTIONAL.
  2062. VolumeContext map[string]string `protobuf:"bytes,1,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2063. // Volume capabilities supported by the plugin.
  2064. // This field is REQUIRED.
  2065. VolumeCapabilities []*VolumeCapability `protobuf:"bytes,2,rep,name=volume_capabilities,json=volumeCapabilities,proto3" json:"volume_capabilities,omitempty"`
  2066. // The volume creation parameters validated by the plugin.
  2067. // This field is OPTIONAL.
  2068. Parameters map[string]string `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2069. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2070. XXX_unrecognized []byte `json:"-"`
  2071. XXX_sizecache int32 `json:"-"`
  2072. }
  2073. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) Reset() {
  2074. *m = ValidateVolumeCapabilitiesResponse_Confirmed{}
  2075. }
  2076. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) String() string {
  2077. return proto.CompactTextString(m)
  2078. }
  2079. func (*ValidateVolumeCapabilitiesResponse_Confirmed) ProtoMessage() {}
  2080. func (*ValidateVolumeCapabilitiesResponse_Confirmed) Descriptor() ([]byte, []int) {
  2081. return fileDescriptor_9cdb00adce470e01, []int{22, 0}
  2082. }
  2083. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) XXX_Unmarshal(b []byte) error {
  2084. return xxx_messageInfo_ValidateVolumeCapabilitiesResponse_Confirmed.Unmarshal(m, b)
  2085. }
  2086. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2087. return xxx_messageInfo_ValidateVolumeCapabilitiesResponse_Confirmed.Marshal(b, m, deterministic)
  2088. }
  2089. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) XXX_Merge(src proto.Message) {
  2090. xxx_messageInfo_ValidateVolumeCapabilitiesResponse_Confirmed.Merge(m, src)
  2091. }
  2092. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) XXX_Size() int {
  2093. return xxx_messageInfo_ValidateVolumeCapabilitiesResponse_Confirmed.Size(m)
  2094. }
  2095. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) XXX_DiscardUnknown() {
  2096. xxx_messageInfo_ValidateVolumeCapabilitiesResponse_Confirmed.DiscardUnknown(m)
  2097. }
  2098. var xxx_messageInfo_ValidateVolumeCapabilitiesResponse_Confirmed proto.InternalMessageInfo
  2099. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) GetVolumeContext() map[string]string {
  2100. if m != nil {
  2101. return m.VolumeContext
  2102. }
  2103. return nil
  2104. }
  2105. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) GetVolumeCapabilities() []*VolumeCapability {
  2106. if m != nil {
  2107. return m.VolumeCapabilities
  2108. }
  2109. return nil
  2110. }
  2111. func (m *ValidateVolumeCapabilitiesResponse_Confirmed) GetParameters() map[string]string {
  2112. if m != nil {
  2113. return m.Parameters
  2114. }
  2115. return nil
  2116. }
  2117. type ListVolumesRequest struct {
  2118. // If specified (non-zero value), the Plugin MUST NOT return more
  2119. // entries than this number in the response. If the actual number of
  2120. // entries is more than this number, the Plugin MUST set `next_token`
  2121. // in the response which can be used to get the next page of entries
  2122. // in the subsequent `ListVolumes` call. This field is OPTIONAL. If
  2123. // not specified (zero value), it means there is no restriction on the
  2124. // number of entries that can be returned.
  2125. // The value of this field MUST NOT be negative.
  2126. MaxEntries int32 `protobuf:"varint,1,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
  2127. // A token to specify where to start paginating. Set this field to
  2128. // `next_token` returned by a previous `ListVolumes` call to get the
  2129. // next page of entries. This field is OPTIONAL.
  2130. // An empty string is equal to an unspecified field value.
  2131. StartingToken string `protobuf:"bytes,2,opt,name=starting_token,json=startingToken,proto3" json:"starting_token,omitempty"`
  2132. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2133. XXX_unrecognized []byte `json:"-"`
  2134. XXX_sizecache int32 `json:"-"`
  2135. }
  2136. func (m *ListVolumesRequest) Reset() { *m = ListVolumesRequest{} }
  2137. func (m *ListVolumesRequest) String() string { return proto.CompactTextString(m) }
  2138. func (*ListVolumesRequest) ProtoMessage() {}
  2139. func (*ListVolumesRequest) Descriptor() ([]byte, []int) {
  2140. return fileDescriptor_9cdb00adce470e01, []int{23}
  2141. }
  2142. func (m *ListVolumesRequest) XXX_Unmarshal(b []byte) error {
  2143. return xxx_messageInfo_ListVolumesRequest.Unmarshal(m, b)
  2144. }
  2145. func (m *ListVolumesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2146. return xxx_messageInfo_ListVolumesRequest.Marshal(b, m, deterministic)
  2147. }
  2148. func (m *ListVolumesRequest) XXX_Merge(src proto.Message) {
  2149. xxx_messageInfo_ListVolumesRequest.Merge(m, src)
  2150. }
  2151. func (m *ListVolumesRequest) XXX_Size() int {
  2152. return xxx_messageInfo_ListVolumesRequest.Size(m)
  2153. }
  2154. func (m *ListVolumesRequest) XXX_DiscardUnknown() {
  2155. xxx_messageInfo_ListVolumesRequest.DiscardUnknown(m)
  2156. }
  2157. var xxx_messageInfo_ListVolumesRequest proto.InternalMessageInfo
  2158. func (m *ListVolumesRequest) GetMaxEntries() int32 {
  2159. if m != nil {
  2160. return m.MaxEntries
  2161. }
  2162. return 0
  2163. }
  2164. func (m *ListVolumesRequest) GetStartingToken() string {
  2165. if m != nil {
  2166. return m.StartingToken
  2167. }
  2168. return ""
  2169. }
  2170. type ListVolumesResponse struct {
  2171. Entries []*ListVolumesResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
  2172. // This token allows you to get the next page of entries for
  2173. // `ListVolumes` request. If the number of entries is larger than
  2174. // `max_entries`, use the `next_token` as a value for the
  2175. // `starting_token` field in the next `ListVolumes` request. This
  2176. // field is OPTIONAL.
  2177. // An empty string is equal to an unspecified field value.
  2178. NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
  2179. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2180. XXX_unrecognized []byte `json:"-"`
  2181. XXX_sizecache int32 `json:"-"`
  2182. }
  2183. func (m *ListVolumesResponse) Reset() { *m = ListVolumesResponse{} }
  2184. func (m *ListVolumesResponse) String() string { return proto.CompactTextString(m) }
  2185. func (*ListVolumesResponse) ProtoMessage() {}
  2186. func (*ListVolumesResponse) Descriptor() ([]byte, []int) {
  2187. return fileDescriptor_9cdb00adce470e01, []int{24}
  2188. }
  2189. func (m *ListVolumesResponse) XXX_Unmarshal(b []byte) error {
  2190. return xxx_messageInfo_ListVolumesResponse.Unmarshal(m, b)
  2191. }
  2192. func (m *ListVolumesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2193. return xxx_messageInfo_ListVolumesResponse.Marshal(b, m, deterministic)
  2194. }
  2195. func (m *ListVolumesResponse) XXX_Merge(src proto.Message) {
  2196. xxx_messageInfo_ListVolumesResponse.Merge(m, src)
  2197. }
  2198. func (m *ListVolumesResponse) XXX_Size() int {
  2199. return xxx_messageInfo_ListVolumesResponse.Size(m)
  2200. }
  2201. func (m *ListVolumesResponse) XXX_DiscardUnknown() {
  2202. xxx_messageInfo_ListVolumesResponse.DiscardUnknown(m)
  2203. }
  2204. var xxx_messageInfo_ListVolumesResponse proto.InternalMessageInfo
  2205. func (m *ListVolumesResponse) GetEntries() []*ListVolumesResponse_Entry {
  2206. if m != nil {
  2207. return m.Entries
  2208. }
  2209. return nil
  2210. }
  2211. func (m *ListVolumesResponse) GetNextToken() string {
  2212. if m != nil {
  2213. return m.NextToken
  2214. }
  2215. return ""
  2216. }
  2217. type ListVolumesResponse_VolumeStatus struct {
  2218. // A list of all `node_id` of nodes that the volume in this entry
  2219. // is controller published on.
  2220. // This field is OPTIONAL. If it is not specified and the SP has
  2221. // the LIST_VOLUMES_PUBLISHED_NODES controller capability, the CO
  2222. // MAY assume the volume is not controller published to any nodes.
  2223. // If the field is not specified and the SP does not have the
  2224. // LIST_VOLUMES_PUBLISHED_NODES controller capability, the CO MUST
  2225. // not interpret this field.
  2226. // published_node_ids MAY include nodes not published to or
  2227. // reported by the SP. The CO MUST be resilient to that.
  2228. PublishedNodeIds []string `protobuf:"bytes,1,rep,name=published_node_ids,json=publishedNodeIds,proto3" json:"published_node_ids,omitempty"`
  2229. // Information about the current condition of the volume.
  2230. // This field is OPTIONAL.
  2231. // This field MUST be specified if the
  2232. // VOLUME_CONDITION controller capability is supported.
  2233. VolumeCondition *VolumeCondition `protobuf:"bytes,2,opt,name=volume_condition,json=volumeCondition,proto3" json:"volume_condition,omitempty"`
  2234. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2235. XXX_unrecognized []byte `json:"-"`
  2236. XXX_sizecache int32 `json:"-"`
  2237. }
  2238. func (m *ListVolumesResponse_VolumeStatus) Reset() { *m = ListVolumesResponse_VolumeStatus{} }
  2239. func (m *ListVolumesResponse_VolumeStatus) String() string { return proto.CompactTextString(m) }
  2240. func (*ListVolumesResponse_VolumeStatus) ProtoMessage() {}
  2241. func (*ListVolumesResponse_VolumeStatus) Descriptor() ([]byte, []int) {
  2242. return fileDescriptor_9cdb00adce470e01, []int{24, 0}
  2243. }
  2244. func (m *ListVolumesResponse_VolumeStatus) XXX_Unmarshal(b []byte) error {
  2245. return xxx_messageInfo_ListVolumesResponse_VolumeStatus.Unmarshal(m, b)
  2246. }
  2247. func (m *ListVolumesResponse_VolumeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2248. return xxx_messageInfo_ListVolumesResponse_VolumeStatus.Marshal(b, m, deterministic)
  2249. }
  2250. func (m *ListVolumesResponse_VolumeStatus) XXX_Merge(src proto.Message) {
  2251. xxx_messageInfo_ListVolumesResponse_VolumeStatus.Merge(m, src)
  2252. }
  2253. func (m *ListVolumesResponse_VolumeStatus) XXX_Size() int {
  2254. return xxx_messageInfo_ListVolumesResponse_VolumeStatus.Size(m)
  2255. }
  2256. func (m *ListVolumesResponse_VolumeStatus) XXX_DiscardUnknown() {
  2257. xxx_messageInfo_ListVolumesResponse_VolumeStatus.DiscardUnknown(m)
  2258. }
  2259. var xxx_messageInfo_ListVolumesResponse_VolumeStatus proto.InternalMessageInfo
  2260. func (m *ListVolumesResponse_VolumeStatus) GetPublishedNodeIds() []string {
  2261. if m != nil {
  2262. return m.PublishedNodeIds
  2263. }
  2264. return nil
  2265. }
  2266. func (m *ListVolumesResponse_VolumeStatus) GetVolumeCondition() *VolumeCondition {
  2267. if m != nil {
  2268. return m.VolumeCondition
  2269. }
  2270. return nil
  2271. }
  2272. type ListVolumesResponse_Entry struct {
  2273. // This field is REQUIRED
  2274. Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
  2275. // This field is OPTIONAL. This field MUST be specified if the
  2276. // LIST_VOLUMES_PUBLISHED_NODES controller capability is
  2277. // supported.
  2278. Status *ListVolumesResponse_VolumeStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
  2279. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2280. XXX_unrecognized []byte `json:"-"`
  2281. XXX_sizecache int32 `json:"-"`
  2282. }
  2283. func (m *ListVolumesResponse_Entry) Reset() { *m = ListVolumesResponse_Entry{} }
  2284. func (m *ListVolumesResponse_Entry) String() string { return proto.CompactTextString(m) }
  2285. func (*ListVolumesResponse_Entry) ProtoMessage() {}
  2286. func (*ListVolumesResponse_Entry) Descriptor() ([]byte, []int) {
  2287. return fileDescriptor_9cdb00adce470e01, []int{24, 1}
  2288. }
  2289. func (m *ListVolumesResponse_Entry) XXX_Unmarshal(b []byte) error {
  2290. return xxx_messageInfo_ListVolumesResponse_Entry.Unmarshal(m, b)
  2291. }
  2292. func (m *ListVolumesResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2293. return xxx_messageInfo_ListVolumesResponse_Entry.Marshal(b, m, deterministic)
  2294. }
  2295. func (m *ListVolumesResponse_Entry) XXX_Merge(src proto.Message) {
  2296. xxx_messageInfo_ListVolumesResponse_Entry.Merge(m, src)
  2297. }
  2298. func (m *ListVolumesResponse_Entry) XXX_Size() int {
  2299. return xxx_messageInfo_ListVolumesResponse_Entry.Size(m)
  2300. }
  2301. func (m *ListVolumesResponse_Entry) XXX_DiscardUnknown() {
  2302. xxx_messageInfo_ListVolumesResponse_Entry.DiscardUnknown(m)
  2303. }
  2304. var xxx_messageInfo_ListVolumesResponse_Entry proto.InternalMessageInfo
  2305. func (m *ListVolumesResponse_Entry) GetVolume() *Volume {
  2306. if m != nil {
  2307. return m.Volume
  2308. }
  2309. return nil
  2310. }
  2311. func (m *ListVolumesResponse_Entry) GetStatus() *ListVolumesResponse_VolumeStatus {
  2312. if m != nil {
  2313. return m.Status
  2314. }
  2315. return nil
  2316. }
  2317. type ControllerGetVolumeRequest struct {
  2318. // The ID of the volume to fetch current volume information for.
  2319. // This field is REQUIRED.
  2320. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  2321. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2322. XXX_unrecognized []byte `json:"-"`
  2323. XXX_sizecache int32 `json:"-"`
  2324. }
  2325. func (m *ControllerGetVolumeRequest) Reset() { *m = ControllerGetVolumeRequest{} }
  2326. func (m *ControllerGetVolumeRequest) String() string { return proto.CompactTextString(m) }
  2327. func (*ControllerGetVolumeRequest) ProtoMessage() {}
  2328. func (*ControllerGetVolumeRequest) Descriptor() ([]byte, []int) {
  2329. return fileDescriptor_9cdb00adce470e01, []int{25}
  2330. }
  2331. func (m *ControllerGetVolumeRequest) XXX_Unmarshal(b []byte) error {
  2332. return xxx_messageInfo_ControllerGetVolumeRequest.Unmarshal(m, b)
  2333. }
  2334. func (m *ControllerGetVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2335. return xxx_messageInfo_ControllerGetVolumeRequest.Marshal(b, m, deterministic)
  2336. }
  2337. func (m *ControllerGetVolumeRequest) XXX_Merge(src proto.Message) {
  2338. xxx_messageInfo_ControllerGetVolumeRequest.Merge(m, src)
  2339. }
  2340. func (m *ControllerGetVolumeRequest) XXX_Size() int {
  2341. return xxx_messageInfo_ControllerGetVolumeRequest.Size(m)
  2342. }
  2343. func (m *ControllerGetVolumeRequest) XXX_DiscardUnknown() {
  2344. xxx_messageInfo_ControllerGetVolumeRequest.DiscardUnknown(m)
  2345. }
  2346. var xxx_messageInfo_ControllerGetVolumeRequest proto.InternalMessageInfo
  2347. func (m *ControllerGetVolumeRequest) GetVolumeId() string {
  2348. if m != nil {
  2349. return m.VolumeId
  2350. }
  2351. return ""
  2352. }
  2353. type ControllerGetVolumeResponse struct {
  2354. // This field is REQUIRED
  2355. Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
  2356. // This field is REQUIRED.
  2357. Status *ControllerGetVolumeResponse_VolumeStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
  2358. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2359. XXX_unrecognized []byte `json:"-"`
  2360. XXX_sizecache int32 `json:"-"`
  2361. }
  2362. func (m *ControllerGetVolumeResponse) Reset() { *m = ControllerGetVolumeResponse{} }
  2363. func (m *ControllerGetVolumeResponse) String() string { return proto.CompactTextString(m) }
  2364. func (*ControllerGetVolumeResponse) ProtoMessage() {}
  2365. func (*ControllerGetVolumeResponse) Descriptor() ([]byte, []int) {
  2366. return fileDescriptor_9cdb00adce470e01, []int{26}
  2367. }
  2368. func (m *ControllerGetVolumeResponse) XXX_Unmarshal(b []byte) error {
  2369. return xxx_messageInfo_ControllerGetVolumeResponse.Unmarshal(m, b)
  2370. }
  2371. func (m *ControllerGetVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2372. return xxx_messageInfo_ControllerGetVolumeResponse.Marshal(b, m, deterministic)
  2373. }
  2374. func (m *ControllerGetVolumeResponse) XXX_Merge(src proto.Message) {
  2375. xxx_messageInfo_ControllerGetVolumeResponse.Merge(m, src)
  2376. }
  2377. func (m *ControllerGetVolumeResponse) XXX_Size() int {
  2378. return xxx_messageInfo_ControllerGetVolumeResponse.Size(m)
  2379. }
  2380. func (m *ControllerGetVolumeResponse) XXX_DiscardUnknown() {
  2381. xxx_messageInfo_ControllerGetVolumeResponse.DiscardUnknown(m)
  2382. }
  2383. var xxx_messageInfo_ControllerGetVolumeResponse proto.InternalMessageInfo
  2384. func (m *ControllerGetVolumeResponse) GetVolume() *Volume {
  2385. if m != nil {
  2386. return m.Volume
  2387. }
  2388. return nil
  2389. }
  2390. func (m *ControllerGetVolumeResponse) GetStatus() *ControllerGetVolumeResponse_VolumeStatus {
  2391. if m != nil {
  2392. return m.Status
  2393. }
  2394. return nil
  2395. }
  2396. type ControllerGetVolumeResponse_VolumeStatus struct {
  2397. // A list of all the `node_id` of nodes that this volume is
  2398. // controller published on.
  2399. // This field is OPTIONAL.
  2400. // This field MUST be specified if the PUBLISH_UNPUBLISH_VOLUME
  2401. // controller capability is supported.
  2402. // published_node_ids MAY include nodes not published to or
  2403. // reported by the SP. The CO MUST be resilient to that.
  2404. PublishedNodeIds []string `protobuf:"bytes,1,rep,name=published_node_ids,json=publishedNodeIds,proto3" json:"published_node_ids,omitempty"`
  2405. // Information about the current condition of the volume.
  2406. // This field is OPTIONAL.
  2407. // This field MUST be specified if the
  2408. // VOLUME_CONDITION controller capability is supported.
  2409. VolumeCondition *VolumeCondition `protobuf:"bytes,2,opt,name=volume_condition,json=volumeCondition,proto3" json:"volume_condition,omitempty"`
  2410. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2411. XXX_unrecognized []byte `json:"-"`
  2412. XXX_sizecache int32 `json:"-"`
  2413. }
  2414. func (m *ControllerGetVolumeResponse_VolumeStatus) Reset() {
  2415. *m = ControllerGetVolumeResponse_VolumeStatus{}
  2416. }
  2417. func (m *ControllerGetVolumeResponse_VolumeStatus) String() string { return proto.CompactTextString(m) }
  2418. func (*ControllerGetVolumeResponse_VolumeStatus) ProtoMessage() {}
  2419. func (*ControllerGetVolumeResponse_VolumeStatus) Descriptor() ([]byte, []int) {
  2420. return fileDescriptor_9cdb00adce470e01, []int{26, 0}
  2421. }
  2422. func (m *ControllerGetVolumeResponse_VolumeStatus) XXX_Unmarshal(b []byte) error {
  2423. return xxx_messageInfo_ControllerGetVolumeResponse_VolumeStatus.Unmarshal(m, b)
  2424. }
  2425. func (m *ControllerGetVolumeResponse_VolumeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2426. return xxx_messageInfo_ControllerGetVolumeResponse_VolumeStatus.Marshal(b, m, deterministic)
  2427. }
  2428. func (m *ControllerGetVolumeResponse_VolumeStatus) XXX_Merge(src proto.Message) {
  2429. xxx_messageInfo_ControllerGetVolumeResponse_VolumeStatus.Merge(m, src)
  2430. }
  2431. func (m *ControllerGetVolumeResponse_VolumeStatus) XXX_Size() int {
  2432. return xxx_messageInfo_ControllerGetVolumeResponse_VolumeStatus.Size(m)
  2433. }
  2434. func (m *ControllerGetVolumeResponse_VolumeStatus) XXX_DiscardUnknown() {
  2435. xxx_messageInfo_ControllerGetVolumeResponse_VolumeStatus.DiscardUnknown(m)
  2436. }
  2437. var xxx_messageInfo_ControllerGetVolumeResponse_VolumeStatus proto.InternalMessageInfo
  2438. func (m *ControllerGetVolumeResponse_VolumeStatus) GetPublishedNodeIds() []string {
  2439. if m != nil {
  2440. return m.PublishedNodeIds
  2441. }
  2442. return nil
  2443. }
  2444. func (m *ControllerGetVolumeResponse_VolumeStatus) GetVolumeCondition() *VolumeCondition {
  2445. if m != nil {
  2446. return m.VolumeCondition
  2447. }
  2448. return nil
  2449. }
  2450. type GetCapacityRequest struct {
  2451. // If specified, the Plugin SHALL report the capacity of the storage
  2452. // that can be used to provision volumes that satisfy ALL of the
  2453. // specified `volume_capabilities`. These are the same
  2454. // `volume_capabilities` the CO will use in `CreateVolumeRequest`.
  2455. // This field is OPTIONAL.
  2456. VolumeCapabilities []*VolumeCapability `protobuf:"bytes,1,rep,name=volume_capabilities,json=volumeCapabilities,proto3" json:"volume_capabilities,omitempty"`
  2457. // If specified, the Plugin SHALL report the capacity of the storage
  2458. // that can be used to provision volumes with the given Plugin
  2459. // specific `parameters`. These are the same `parameters` the CO will
  2460. // use in `CreateVolumeRequest`. This field is OPTIONAL.
  2461. Parameters map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2462. // If specified, the Plugin SHALL report the capacity of the storage
  2463. // that can be used to provision volumes that in the specified
  2464. // `accessible_topology`. This is the same as the
  2465. // `accessible_topology` the CO returns in a `CreateVolumeResponse`.
  2466. // This field is OPTIONAL. This field SHALL NOT be set unless the
  2467. // plugin advertises the VOLUME_ACCESSIBILITY_CONSTRAINTS capability.
  2468. AccessibleTopology *Topology `protobuf:"bytes,3,opt,name=accessible_topology,json=accessibleTopology,proto3" json:"accessible_topology,omitempty"`
  2469. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2470. XXX_unrecognized []byte `json:"-"`
  2471. XXX_sizecache int32 `json:"-"`
  2472. }
  2473. func (m *GetCapacityRequest) Reset() { *m = GetCapacityRequest{} }
  2474. func (m *GetCapacityRequest) String() string { return proto.CompactTextString(m) }
  2475. func (*GetCapacityRequest) ProtoMessage() {}
  2476. func (*GetCapacityRequest) Descriptor() ([]byte, []int) {
  2477. return fileDescriptor_9cdb00adce470e01, []int{27}
  2478. }
  2479. func (m *GetCapacityRequest) XXX_Unmarshal(b []byte) error {
  2480. return xxx_messageInfo_GetCapacityRequest.Unmarshal(m, b)
  2481. }
  2482. func (m *GetCapacityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2483. return xxx_messageInfo_GetCapacityRequest.Marshal(b, m, deterministic)
  2484. }
  2485. func (m *GetCapacityRequest) XXX_Merge(src proto.Message) {
  2486. xxx_messageInfo_GetCapacityRequest.Merge(m, src)
  2487. }
  2488. func (m *GetCapacityRequest) XXX_Size() int {
  2489. return xxx_messageInfo_GetCapacityRequest.Size(m)
  2490. }
  2491. func (m *GetCapacityRequest) XXX_DiscardUnknown() {
  2492. xxx_messageInfo_GetCapacityRequest.DiscardUnknown(m)
  2493. }
  2494. var xxx_messageInfo_GetCapacityRequest proto.InternalMessageInfo
  2495. func (m *GetCapacityRequest) GetVolumeCapabilities() []*VolumeCapability {
  2496. if m != nil {
  2497. return m.VolumeCapabilities
  2498. }
  2499. return nil
  2500. }
  2501. func (m *GetCapacityRequest) GetParameters() map[string]string {
  2502. if m != nil {
  2503. return m.Parameters
  2504. }
  2505. return nil
  2506. }
  2507. func (m *GetCapacityRequest) GetAccessibleTopology() *Topology {
  2508. if m != nil {
  2509. return m.AccessibleTopology
  2510. }
  2511. return nil
  2512. }
  2513. type GetCapacityResponse struct {
  2514. // The available capacity, in bytes, of the storage that can be used
  2515. // to provision volumes. If `volume_capabilities` or `parameters` is
  2516. // specified in the request, the Plugin SHALL take those into
  2517. // consideration when calculating the available capacity of the
  2518. // storage. This field is REQUIRED.
  2519. // The value of this field MUST NOT be negative.
  2520. AvailableCapacity int64 `protobuf:"varint,1,opt,name=available_capacity,json=availableCapacity,proto3" json:"available_capacity,omitempty"`
  2521. // The largest size that may be used in a
  2522. // CreateVolumeRequest.capacity_range.required_bytes field
  2523. // to create a volume with the same parameters as those in
  2524. // GetCapacityRequest.
  2525. //
  2526. // If `volume_capabilities` or `parameters` is
  2527. // specified in the request, the Plugin SHALL take those into
  2528. // consideration when calculating the minimum volume size of the
  2529. // storage.
  2530. //
  2531. // This field is OPTIONAL. MUST NOT be negative.
  2532. // The Plugin SHOULD provide a value for this field if it has
  2533. // a maximum size for individual volumes and leave it unset
  2534. // otherwise. COs MAY use it to make decision about
  2535. // where to create volumes.
  2536. MaximumVolumeSize *wrappers.Int64Value `protobuf:"bytes,2,opt,name=maximum_volume_size,json=maximumVolumeSize,proto3" json:"maximum_volume_size,omitempty"`
  2537. // The smallest size that may be used in a
  2538. // CreateVolumeRequest.capacity_range.limit_bytes field
  2539. // to create a volume with the same parameters as those in
  2540. // GetCapacityRequest.
  2541. //
  2542. // If `volume_capabilities` or `parameters` is
  2543. // specified in the request, the Plugin SHALL take those into
  2544. // consideration when calculating the maximum volume size of the
  2545. // storage.
  2546. //
  2547. // This field is OPTIONAL. MUST NOT be negative.
  2548. // The Plugin SHOULD provide a value for this field if it has
  2549. // a minimum size for individual volumes and leave it unset
  2550. // otherwise. COs MAY use it to make decision about
  2551. // where to create volumes.
  2552. MinimumVolumeSize *wrappers.Int64Value `protobuf:"bytes,3,opt,name=minimum_volume_size,json=minimumVolumeSize,proto3" json:"minimum_volume_size,omitempty"`
  2553. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2554. XXX_unrecognized []byte `json:"-"`
  2555. XXX_sizecache int32 `json:"-"`
  2556. }
  2557. func (m *GetCapacityResponse) Reset() { *m = GetCapacityResponse{} }
  2558. func (m *GetCapacityResponse) String() string { return proto.CompactTextString(m) }
  2559. func (*GetCapacityResponse) ProtoMessage() {}
  2560. func (*GetCapacityResponse) Descriptor() ([]byte, []int) {
  2561. return fileDescriptor_9cdb00adce470e01, []int{28}
  2562. }
  2563. func (m *GetCapacityResponse) XXX_Unmarshal(b []byte) error {
  2564. return xxx_messageInfo_GetCapacityResponse.Unmarshal(m, b)
  2565. }
  2566. func (m *GetCapacityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2567. return xxx_messageInfo_GetCapacityResponse.Marshal(b, m, deterministic)
  2568. }
  2569. func (m *GetCapacityResponse) XXX_Merge(src proto.Message) {
  2570. xxx_messageInfo_GetCapacityResponse.Merge(m, src)
  2571. }
  2572. func (m *GetCapacityResponse) XXX_Size() int {
  2573. return xxx_messageInfo_GetCapacityResponse.Size(m)
  2574. }
  2575. func (m *GetCapacityResponse) XXX_DiscardUnknown() {
  2576. xxx_messageInfo_GetCapacityResponse.DiscardUnknown(m)
  2577. }
  2578. var xxx_messageInfo_GetCapacityResponse proto.InternalMessageInfo
  2579. func (m *GetCapacityResponse) GetAvailableCapacity() int64 {
  2580. if m != nil {
  2581. return m.AvailableCapacity
  2582. }
  2583. return 0
  2584. }
  2585. func (m *GetCapacityResponse) GetMaximumVolumeSize() *wrappers.Int64Value {
  2586. if m != nil {
  2587. return m.MaximumVolumeSize
  2588. }
  2589. return nil
  2590. }
  2591. func (m *GetCapacityResponse) GetMinimumVolumeSize() *wrappers.Int64Value {
  2592. if m != nil {
  2593. return m.MinimumVolumeSize
  2594. }
  2595. return nil
  2596. }
  2597. type ControllerGetCapabilitiesRequest struct {
  2598. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2599. XXX_unrecognized []byte `json:"-"`
  2600. XXX_sizecache int32 `json:"-"`
  2601. }
  2602. func (m *ControllerGetCapabilitiesRequest) Reset() { *m = ControllerGetCapabilitiesRequest{} }
  2603. func (m *ControllerGetCapabilitiesRequest) String() string { return proto.CompactTextString(m) }
  2604. func (*ControllerGetCapabilitiesRequest) ProtoMessage() {}
  2605. func (*ControllerGetCapabilitiesRequest) Descriptor() ([]byte, []int) {
  2606. return fileDescriptor_9cdb00adce470e01, []int{29}
  2607. }
  2608. func (m *ControllerGetCapabilitiesRequest) XXX_Unmarshal(b []byte) error {
  2609. return xxx_messageInfo_ControllerGetCapabilitiesRequest.Unmarshal(m, b)
  2610. }
  2611. func (m *ControllerGetCapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2612. return xxx_messageInfo_ControllerGetCapabilitiesRequest.Marshal(b, m, deterministic)
  2613. }
  2614. func (m *ControllerGetCapabilitiesRequest) XXX_Merge(src proto.Message) {
  2615. xxx_messageInfo_ControllerGetCapabilitiesRequest.Merge(m, src)
  2616. }
  2617. func (m *ControllerGetCapabilitiesRequest) XXX_Size() int {
  2618. return xxx_messageInfo_ControllerGetCapabilitiesRequest.Size(m)
  2619. }
  2620. func (m *ControllerGetCapabilitiesRequest) XXX_DiscardUnknown() {
  2621. xxx_messageInfo_ControllerGetCapabilitiesRequest.DiscardUnknown(m)
  2622. }
  2623. var xxx_messageInfo_ControllerGetCapabilitiesRequest proto.InternalMessageInfo
  2624. type ControllerGetCapabilitiesResponse struct {
  2625. // All the capabilities that the controller service supports. This
  2626. // field is OPTIONAL.
  2627. Capabilities []*ControllerServiceCapability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
  2628. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2629. XXX_unrecognized []byte `json:"-"`
  2630. XXX_sizecache int32 `json:"-"`
  2631. }
  2632. func (m *ControllerGetCapabilitiesResponse) Reset() { *m = ControllerGetCapabilitiesResponse{} }
  2633. func (m *ControllerGetCapabilitiesResponse) String() string { return proto.CompactTextString(m) }
  2634. func (*ControllerGetCapabilitiesResponse) ProtoMessage() {}
  2635. func (*ControllerGetCapabilitiesResponse) Descriptor() ([]byte, []int) {
  2636. return fileDescriptor_9cdb00adce470e01, []int{30}
  2637. }
  2638. func (m *ControllerGetCapabilitiesResponse) XXX_Unmarshal(b []byte) error {
  2639. return xxx_messageInfo_ControllerGetCapabilitiesResponse.Unmarshal(m, b)
  2640. }
  2641. func (m *ControllerGetCapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2642. return xxx_messageInfo_ControllerGetCapabilitiesResponse.Marshal(b, m, deterministic)
  2643. }
  2644. func (m *ControllerGetCapabilitiesResponse) XXX_Merge(src proto.Message) {
  2645. xxx_messageInfo_ControllerGetCapabilitiesResponse.Merge(m, src)
  2646. }
  2647. func (m *ControllerGetCapabilitiesResponse) XXX_Size() int {
  2648. return xxx_messageInfo_ControllerGetCapabilitiesResponse.Size(m)
  2649. }
  2650. func (m *ControllerGetCapabilitiesResponse) XXX_DiscardUnknown() {
  2651. xxx_messageInfo_ControllerGetCapabilitiesResponse.DiscardUnknown(m)
  2652. }
  2653. var xxx_messageInfo_ControllerGetCapabilitiesResponse proto.InternalMessageInfo
  2654. func (m *ControllerGetCapabilitiesResponse) GetCapabilities() []*ControllerServiceCapability {
  2655. if m != nil {
  2656. return m.Capabilities
  2657. }
  2658. return nil
  2659. }
  2660. // Specifies a capability of the controller service.
  2661. type ControllerServiceCapability struct {
  2662. // Types that are valid to be assigned to Type:
  2663. // *ControllerServiceCapability_Rpc
  2664. Type isControllerServiceCapability_Type `protobuf_oneof:"type"`
  2665. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2666. XXX_unrecognized []byte `json:"-"`
  2667. XXX_sizecache int32 `json:"-"`
  2668. }
  2669. func (m *ControllerServiceCapability) Reset() { *m = ControllerServiceCapability{} }
  2670. func (m *ControllerServiceCapability) String() string { return proto.CompactTextString(m) }
  2671. func (*ControllerServiceCapability) ProtoMessage() {}
  2672. func (*ControllerServiceCapability) Descriptor() ([]byte, []int) {
  2673. return fileDescriptor_9cdb00adce470e01, []int{31}
  2674. }
  2675. func (m *ControllerServiceCapability) XXX_Unmarshal(b []byte) error {
  2676. return xxx_messageInfo_ControllerServiceCapability.Unmarshal(m, b)
  2677. }
  2678. func (m *ControllerServiceCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2679. return xxx_messageInfo_ControllerServiceCapability.Marshal(b, m, deterministic)
  2680. }
  2681. func (m *ControllerServiceCapability) XXX_Merge(src proto.Message) {
  2682. xxx_messageInfo_ControllerServiceCapability.Merge(m, src)
  2683. }
  2684. func (m *ControllerServiceCapability) XXX_Size() int {
  2685. return xxx_messageInfo_ControllerServiceCapability.Size(m)
  2686. }
  2687. func (m *ControllerServiceCapability) XXX_DiscardUnknown() {
  2688. xxx_messageInfo_ControllerServiceCapability.DiscardUnknown(m)
  2689. }
  2690. var xxx_messageInfo_ControllerServiceCapability proto.InternalMessageInfo
  2691. type isControllerServiceCapability_Type interface {
  2692. isControllerServiceCapability_Type()
  2693. }
  2694. type ControllerServiceCapability_Rpc struct {
  2695. Rpc *ControllerServiceCapability_RPC `protobuf:"bytes,1,opt,name=rpc,proto3,oneof"`
  2696. }
  2697. func (*ControllerServiceCapability_Rpc) isControllerServiceCapability_Type() {}
  2698. func (m *ControllerServiceCapability) GetType() isControllerServiceCapability_Type {
  2699. if m != nil {
  2700. return m.Type
  2701. }
  2702. return nil
  2703. }
  2704. func (m *ControllerServiceCapability) GetRpc() *ControllerServiceCapability_RPC {
  2705. if x, ok := m.GetType().(*ControllerServiceCapability_Rpc); ok {
  2706. return x.Rpc
  2707. }
  2708. return nil
  2709. }
  2710. // XXX_OneofWrappers is for the internal use of the proto package.
  2711. func (*ControllerServiceCapability) XXX_OneofWrappers() []interface{} {
  2712. return []interface{}{
  2713. (*ControllerServiceCapability_Rpc)(nil),
  2714. }
  2715. }
  2716. type ControllerServiceCapability_RPC struct {
  2717. Type ControllerServiceCapability_RPC_Type `protobuf:"varint,1,opt,name=type,proto3,enum=csi.v1.ControllerServiceCapability_RPC_Type" json:"type,omitempty"`
  2718. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2719. XXX_unrecognized []byte `json:"-"`
  2720. XXX_sizecache int32 `json:"-"`
  2721. }
  2722. func (m *ControllerServiceCapability_RPC) Reset() { *m = ControllerServiceCapability_RPC{} }
  2723. func (m *ControllerServiceCapability_RPC) String() string { return proto.CompactTextString(m) }
  2724. func (*ControllerServiceCapability_RPC) ProtoMessage() {}
  2725. func (*ControllerServiceCapability_RPC) Descriptor() ([]byte, []int) {
  2726. return fileDescriptor_9cdb00adce470e01, []int{31, 0}
  2727. }
  2728. func (m *ControllerServiceCapability_RPC) XXX_Unmarshal(b []byte) error {
  2729. return xxx_messageInfo_ControllerServiceCapability_RPC.Unmarshal(m, b)
  2730. }
  2731. func (m *ControllerServiceCapability_RPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2732. return xxx_messageInfo_ControllerServiceCapability_RPC.Marshal(b, m, deterministic)
  2733. }
  2734. func (m *ControllerServiceCapability_RPC) XXX_Merge(src proto.Message) {
  2735. xxx_messageInfo_ControllerServiceCapability_RPC.Merge(m, src)
  2736. }
  2737. func (m *ControllerServiceCapability_RPC) XXX_Size() int {
  2738. return xxx_messageInfo_ControllerServiceCapability_RPC.Size(m)
  2739. }
  2740. func (m *ControllerServiceCapability_RPC) XXX_DiscardUnknown() {
  2741. xxx_messageInfo_ControllerServiceCapability_RPC.DiscardUnknown(m)
  2742. }
  2743. var xxx_messageInfo_ControllerServiceCapability_RPC proto.InternalMessageInfo
  2744. func (m *ControllerServiceCapability_RPC) GetType() ControllerServiceCapability_RPC_Type {
  2745. if m != nil {
  2746. return m.Type
  2747. }
  2748. return ControllerServiceCapability_RPC_UNKNOWN
  2749. }
  2750. type CreateSnapshotRequest struct {
  2751. // The ID of the source volume to be snapshotted.
  2752. // This field is REQUIRED.
  2753. SourceVolumeId string `protobuf:"bytes,1,opt,name=source_volume_id,json=sourceVolumeId,proto3" json:"source_volume_id,omitempty"`
  2754. // The suggested name for the snapshot. This field is REQUIRED for
  2755. // idempotency.
  2756. // Any Unicode string that conforms to the length limit is allowed
  2757. // except those containing the following banned characters:
  2758. // U+0000-U+0008, U+000B, U+000C, U+000E-U+001F, U+007F-U+009F.
  2759. // (These are control characters other than commonly used whitespace.)
  2760. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  2761. // Secrets required by plugin to complete snapshot creation request.
  2762. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  2763. // section on how to use this field.
  2764. Secrets map[string]string `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2765. // Plugin specific parameters passed in as opaque key-value pairs.
  2766. // This field is OPTIONAL. The Plugin is responsible for parsing and
  2767. // validating these parameters. COs will treat these as opaque.
  2768. // Use cases for opaque parameters:
  2769. // - Specify a policy to automatically clean up the snapshot.
  2770. // - Specify an expiration date for the snapshot.
  2771. // - Specify whether the snapshot is readonly or read/write.
  2772. // - Specify if the snapshot should be replicated to some place.
  2773. // - Specify primary or secondary for replication systems that
  2774. // support snapshotting only on primary.
  2775. Parameters map[string]string `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2776. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2777. XXX_unrecognized []byte `json:"-"`
  2778. XXX_sizecache int32 `json:"-"`
  2779. }
  2780. func (m *CreateSnapshotRequest) Reset() { *m = CreateSnapshotRequest{} }
  2781. func (m *CreateSnapshotRequest) String() string { return proto.CompactTextString(m) }
  2782. func (*CreateSnapshotRequest) ProtoMessage() {}
  2783. func (*CreateSnapshotRequest) Descriptor() ([]byte, []int) {
  2784. return fileDescriptor_9cdb00adce470e01, []int{32}
  2785. }
  2786. func (m *CreateSnapshotRequest) XXX_Unmarshal(b []byte) error {
  2787. return xxx_messageInfo_CreateSnapshotRequest.Unmarshal(m, b)
  2788. }
  2789. func (m *CreateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2790. return xxx_messageInfo_CreateSnapshotRequest.Marshal(b, m, deterministic)
  2791. }
  2792. func (m *CreateSnapshotRequest) XXX_Merge(src proto.Message) {
  2793. xxx_messageInfo_CreateSnapshotRequest.Merge(m, src)
  2794. }
  2795. func (m *CreateSnapshotRequest) XXX_Size() int {
  2796. return xxx_messageInfo_CreateSnapshotRequest.Size(m)
  2797. }
  2798. func (m *CreateSnapshotRequest) XXX_DiscardUnknown() {
  2799. xxx_messageInfo_CreateSnapshotRequest.DiscardUnknown(m)
  2800. }
  2801. var xxx_messageInfo_CreateSnapshotRequest proto.InternalMessageInfo
  2802. func (m *CreateSnapshotRequest) GetSourceVolumeId() string {
  2803. if m != nil {
  2804. return m.SourceVolumeId
  2805. }
  2806. return ""
  2807. }
  2808. func (m *CreateSnapshotRequest) GetName() string {
  2809. if m != nil {
  2810. return m.Name
  2811. }
  2812. return ""
  2813. }
  2814. func (m *CreateSnapshotRequest) GetSecrets() map[string]string {
  2815. if m != nil {
  2816. return m.Secrets
  2817. }
  2818. return nil
  2819. }
  2820. func (m *CreateSnapshotRequest) GetParameters() map[string]string {
  2821. if m != nil {
  2822. return m.Parameters
  2823. }
  2824. return nil
  2825. }
  2826. type CreateSnapshotResponse struct {
  2827. // Contains all attributes of the newly created snapshot that are
  2828. // relevant to the CO along with information required by the Plugin
  2829. // to uniquely identify the snapshot. This field is REQUIRED.
  2830. Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  2831. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2832. XXX_unrecognized []byte `json:"-"`
  2833. XXX_sizecache int32 `json:"-"`
  2834. }
  2835. func (m *CreateSnapshotResponse) Reset() { *m = CreateSnapshotResponse{} }
  2836. func (m *CreateSnapshotResponse) String() string { return proto.CompactTextString(m) }
  2837. func (*CreateSnapshotResponse) ProtoMessage() {}
  2838. func (*CreateSnapshotResponse) Descriptor() ([]byte, []int) {
  2839. return fileDescriptor_9cdb00adce470e01, []int{33}
  2840. }
  2841. func (m *CreateSnapshotResponse) XXX_Unmarshal(b []byte) error {
  2842. return xxx_messageInfo_CreateSnapshotResponse.Unmarshal(m, b)
  2843. }
  2844. func (m *CreateSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2845. return xxx_messageInfo_CreateSnapshotResponse.Marshal(b, m, deterministic)
  2846. }
  2847. func (m *CreateSnapshotResponse) XXX_Merge(src proto.Message) {
  2848. xxx_messageInfo_CreateSnapshotResponse.Merge(m, src)
  2849. }
  2850. func (m *CreateSnapshotResponse) XXX_Size() int {
  2851. return xxx_messageInfo_CreateSnapshotResponse.Size(m)
  2852. }
  2853. func (m *CreateSnapshotResponse) XXX_DiscardUnknown() {
  2854. xxx_messageInfo_CreateSnapshotResponse.DiscardUnknown(m)
  2855. }
  2856. var xxx_messageInfo_CreateSnapshotResponse proto.InternalMessageInfo
  2857. func (m *CreateSnapshotResponse) GetSnapshot() *Snapshot {
  2858. if m != nil {
  2859. return m.Snapshot
  2860. }
  2861. return nil
  2862. }
  2863. // Information about a specific snapshot.
  2864. type Snapshot struct {
  2865. // This is the complete size of the snapshot in bytes. The purpose of
  2866. // this field is to give CO guidance on how much space is needed to
  2867. // create a volume from this snapshot. The size of the volume MUST NOT
  2868. // be less than the size of the source snapshot. This field is
  2869. // OPTIONAL. If this field is not set, it indicates that this size is
  2870. // unknown. The value of this field MUST NOT be negative and a size of
  2871. // zero means it is unspecified.
  2872. SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
  2873. // The identifier for this snapshot, generated by the plugin.
  2874. // This field is REQUIRED.
  2875. // This field MUST contain enough information to uniquely identify
  2876. // this specific snapshot vs all other snapshots supported by this
  2877. // plugin.
  2878. // This field SHALL be used by the CO in subsequent calls to refer to
  2879. // this snapshot.
  2880. // The SP is NOT responsible for global uniqueness of snapshot_id
  2881. // across multiple SPs.
  2882. SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
  2883. // Identity information for the source volume. Note that creating a
  2884. // snapshot from a snapshot is not supported here so the source has to
  2885. // be a volume. This field is REQUIRED.
  2886. SourceVolumeId string `protobuf:"bytes,3,opt,name=source_volume_id,json=sourceVolumeId,proto3" json:"source_volume_id,omitempty"`
  2887. // Timestamp when the point-in-time snapshot is taken on the storage
  2888. // system. This field is REQUIRED.
  2889. CreationTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
  2890. // Indicates if a snapshot is ready to use as a
  2891. // `volume_content_source` in a `CreateVolumeRequest`. The default
  2892. // value is false. This field is REQUIRED.
  2893. ReadyToUse bool `protobuf:"varint,5,opt,name=ready_to_use,json=readyToUse,proto3" json:"ready_to_use,omitempty"`
  2894. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2895. XXX_unrecognized []byte `json:"-"`
  2896. XXX_sizecache int32 `json:"-"`
  2897. }
  2898. func (m *Snapshot) Reset() { *m = Snapshot{} }
  2899. func (m *Snapshot) String() string { return proto.CompactTextString(m) }
  2900. func (*Snapshot) ProtoMessage() {}
  2901. func (*Snapshot) Descriptor() ([]byte, []int) {
  2902. return fileDescriptor_9cdb00adce470e01, []int{34}
  2903. }
  2904. func (m *Snapshot) XXX_Unmarshal(b []byte) error {
  2905. return xxx_messageInfo_Snapshot.Unmarshal(m, b)
  2906. }
  2907. func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2908. return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic)
  2909. }
  2910. func (m *Snapshot) XXX_Merge(src proto.Message) {
  2911. xxx_messageInfo_Snapshot.Merge(m, src)
  2912. }
  2913. func (m *Snapshot) XXX_Size() int {
  2914. return xxx_messageInfo_Snapshot.Size(m)
  2915. }
  2916. func (m *Snapshot) XXX_DiscardUnknown() {
  2917. xxx_messageInfo_Snapshot.DiscardUnknown(m)
  2918. }
  2919. var xxx_messageInfo_Snapshot proto.InternalMessageInfo
  2920. func (m *Snapshot) GetSizeBytes() int64 {
  2921. if m != nil {
  2922. return m.SizeBytes
  2923. }
  2924. return 0
  2925. }
  2926. func (m *Snapshot) GetSnapshotId() string {
  2927. if m != nil {
  2928. return m.SnapshotId
  2929. }
  2930. return ""
  2931. }
  2932. func (m *Snapshot) GetSourceVolumeId() string {
  2933. if m != nil {
  2934. return m.SourceVolumeId
  2935. }
  2936. return ""
  2937. }
  2938. func (m *Snapshot) GetCreationTime() *timestamp.Timestamp {
  2939. if m != nil {
  2940. return m.CreationTime
  2941. }
  2942. return nil
  2943. }
  2944. func (m *Snapshot) GetReadyToUse() bool {
  2945. if m != nil {
  2946. return m.ReadyToUse
  2947. }
  2948. return false
  2949. }
  2950. type DeleteSnapshotRequest struct {
  2951. // The ID of the snapshot to be deleted.
  2952. // This field is REQUIRED.
  2953. SnapshotId string `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
  2954. // Secrets required by plugin to complete snapshot deletion request.
  2955. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  2956. // section on how to use this field.
  2957. Secrets map[string]string `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2958. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2959. XXX_unrecognized []byte `json:"-"`
  2960. XXX_sizecache int32 `json:"-"`
  2961. }
  2962. func (m *DeleteSnapshotRequest) Reset() { *m = DeleteSnapshotRequest{} }
  2963. func (m *DeleteSnapshotRequest) String() string { return proto.CompactTextString(m) }
  2964. func (*DeleteSnapshotRequest) ProtoMessage() {}
  2965. func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int) {
  2966. return fileDescriptor_9cdb00adce470e01, []int{35}
  2967. }
  2968. func (m *DeleteSnapshotRequest) XXX_Unmarshal(b []byte) error {
  2969. return xxx_messageInfo_DeleteSnapshotRequest.Unmarshal(m, b)
  2970. }
  2971. func (m *DeleteSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2972. return xxx_messageInfo_DeleteSnapshotRequest.Marshal(b, m, deterministic)
  2973. }
  2974. func (m *DeleteSnapshotRequest) XXX_Merge(src proto.Message) {
  2975. xxx_messageInfo_DeleteSnapshotRequest.Merge(m, src)
  2976. }
  2977. func (m *DeleteSnapshotRequest) XXX_Size() int {
  2978. return xxx_messageInfo_DeleteSnapshotRequest.Size(m)
  2979. }
  2980. func (m *DeleteSnapshotRequest) XXX_DiscardUnknown() {
  2981. xxx_messageInfo_DeleteSnapshotRequest.DiscardUnknown(m)
  2982. }
  2983. var xxx_messageInfo_DeleteSnapshotRequest proto.InternalMessageInfo
  2984. func (m *DeleteSnapshotRequest) GetSnapshotId() string {
  2985. if m != nil {
  2986. return m.SnapshotId
  2987. }
  2988. return ""
  2989. }
  2990. func (m *DeleteSnapshotRequest) GetSecrets() map[string]string {
  2991. if m != nil {
  2992. return m.Secrets
  2993. }
  2994. return nil
  2995. }
  2996. type DeleteSnapshotResponse struct {
  2997. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2998. XXX_unrecognized []byte `json:"-"`
  2999. XXX_sizecache int32 `json:"-"`
  3000. }
  3001. func (m *DeleteSnapshotResponse) Reset() { *m = DeleteSnapshotResponse{} }
  3002. func (m *DeleteSnapshotResponse) String() string { return proto.CompactTextString(m) }
  3003. func (*DeleteSnapshotResponse) ProtoMessage() {}
  3004. func (*DeleteSnapshotResponse) Descriptor() ([]byte, []int) {
  3005. return fileDescriptor_9cdb00adce470e01, []int{36}
  3006. }
  3007. func (m *DeleteSnapshotResponse) XXX_Unmarshal(b []byte) error {
  3008. return xxx_messageInfo_DeleteSnapshotResponse.Unmarshal(m, b)
  3009. }
  3010. func (m *DeleteSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3011. return xxx_messageInfo_DeleteSnapshotResponse.Marshal(b, m, deterministic)
  3012. }
  3013. func (m *DeleteSnapshotResponse) XXX_Merge(src proto.Message) {
  3014. xxx_messageInfo_DeleteSnapshotResponse.Merge(m, src)
  3015. }
  3016. func (m *DeleteSnapshotResponse) XXX_Size() int {
  3017. return xxx_messageInfo_DeleteSnapshotResponse.Size(m)
  3018. }
  3019. func (m *DeleteSnapshotResponse) XXX_DiscardUnknown() {
  3020. xxx_messageInfo_DeleteSnapshotResponse.DiscardUnknown(m)
  3021. }
  3022. var xxx_messageInfo_DeleteSnapshotResponse proto.InternalMessageInfo
  3023. // List all snapshots on the storage system regardless of how they were
  3024. // created.
  3025. type ListSnapshotsRequest struct {
  3026. // If specified (non-zero value), the Plugin MUST NOT return more
  3027. // entries than this number in the response. If the actual number of
  3028. // entries is more than this number, the Plugin MUST set `next_token`
  3029. // in the response which can be used to get the next page of entries
  3030. // in the subsequent `ListSnapshots` call. This field is OPTIONAL. If
  3031. // not specified (zero value), it means there is no restriction on the
  3032. // number of entries that can be returned.
  3033. // The value of this field MUST NOT be negative.
  3034. MaxEntries int32 `protobuf:"varint,1,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
  3035. // A token to specify where to start paginating. Set this field to
  3036. // `next_token` returned by a previous `ListSnapshots` call to get the
  3037. // next page of entries. This field is OPTIONAL.
  3038. // An empty string is equal to an unspecified field value.
  3039. StartingToken string `protobuf:"bytes,2,opt,name=starting_token,json=startingToken,proto3" json:"starting_token,omitempty"`
  3040. // Identity information for the source volume. This field is OPTIONAL.
  3041. // It can be used to list snapshots by volume.
  3042. SourceVolumeId string `protobuf:"bytes,3,opt,name=source_volume_id,json=sourceVolumeId,proto3" json:"source_volume_id,omitempty"`
  3043. // Identity information for a specific snapshot. This field is
  3044. // OPTIONAL. It can be used to list only a specific snapshot.
  3045. // ListSnapshots will return with current snapshot information
  3046. // and will not block if the snapshot is being processed after
  3047. // it is cut.
  3048. SnapshotId string `protobuf:"bytes,4,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
  3049. // Secrets required by plugin to complete ListSnapshot request.
  3050. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  3051. // section on how to use this field.
  3052. Secrets map[string]string `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3053. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3054. XXX_unrecognized []byte `json:"-"`
  3055. XXX_sizecache int32 `json:"-"`
  3056. }
  3057. func (m *ListSnapshotsRequest) Reset() { *m = ListSnapshotsRequest{} }
  3058. func (m *ListSnapshotsRequest) String() string { return proto.CompactTextString(m) }
  3059. func (*ListSnapshotsRequest) ProtoMessage() {}
  3060. func (*ListSnapshotsRequest) Descriptor() ([]byte, []int) {
  3061. return fileDescriptor_9cdb00adce470e01, []int{37}
  3062. }
  3063. func (m *ListSnapshotsRequest) XXX_Unmarshal(b []byte) error {
  3064. return xxx_messageInfo_ListSnapshotsRequest.Unmarshal(m, b)
  3065. }
  3066. func (m *ListSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3067. return xxx_messageInfo_ListSnapshotsRequest.Marshal(b, m, deterministic)
  3068. }
  3069. func (m *ListSnapshotsRequest) XXX_Merge(src proto.Message) {
  3070. xxx_messageInfo_ListSnapshotsRequest.Merge(m, src)
  3071. }
  3072. func (m *ListSnapshotsRequest) XXX_Size() int {
  3073. return xxx_messageInfo_ListSnapshotsRequest.Size(m)
  3074. }
  3075. func (m *ListSnapshotsRequest) XXX_DiscardUnknown() {
  3076. xxx_messageInfo_ListSnapshotsRequest.DiscardUnknown(m)
  3077. }
  3078. var xxx_messageInfo_ListSnapshotsRequest proto.InternalMessageInfo
  3079. func (m *ListSnapshotsRequest) GetMaxEntries() int32 {
  3080. if m != nil {
  3081. return m.MaxEntries
  3082. }
  3083. return 0
  3084. }
  3085. func (m *ListSnapshotsRequest) GetStartingToken() string {
  3086. if m != nil {
  3087. return m.StartingToken
  3088. }
  3089. return ""
  3090. }
  3091. func (m *ListSnapshotsRequest) GetSourceVolumeId() string {
  3092. if m != nil {
  3093. return m.SourceVolumeId
  3094. }
  3095. return ""
  3096. }
  3097. func (m *ListSnapshotsRequest) GetSnapshotId() string {
  3098. if m != nil {
  3099. return m.SnapshotId
  3100. }
  3101. return ""
  3102. }
  3103. func (m *ListSnapshotsRequest) GetSecrets() map[string]string {
  3104. if m != nil {
  3105. return m.Secrets
  3106. }
  3107. return nil
  3108. }
  3109. type ListSnapshotsResponse struct {
  3110. Entries []*ListSnapshotsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
  3111. // This token allows you to get the next page of entries for
  3112. // `ListSnapshots` request. If the number of entries is larger than
  3113. // `max_entries`, use the `next_token` as a value for the
  3114. // `starting_token` field in the next `ListSnapshots` request. This
  3115. // field is OPTIONAL.
  3116. // An empty string is equal to an unspecified field value.
  3117. NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
  3118. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3119. XXX_unrecognized []byte `json:"-"`
  3120. XXX_sizecache int32 `json:"-"`
  3121. }
  3122. func (m *ListSnapshotsResponse) Reset() { *m = ListSnapshotsResponse{} }
  3123. func (m *ListSnapshotsResponse) String() string { return proto.CompactTextString(m) }
  3124. func (*ListSnapshotsResponse) ProtoMessage() {}
  3125. func (*ListSnapshotsResponse) Descriptor() ([]byte, []int) {
  3126. return fileDescriptor_9cdb00adce470e01, []int{38}
  3127. }
  3128. func (m *ListSnapshotsResponse) XXX_Unmarshal(b []byte) error {
  3129. return xxx_messageInfo_ListSnapshotsResponse.Unmarshal(m, b)
  3130. }
  3131. func (m *ListSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3132. return xxx_messageInfo_ListSnapshotsResponse.Marshal(b, m, deterministic)
  3133. }
  3134. func (m *ListSnapshotsResponse) XXX_Merge(src proto.Message) {
  3135. xxx_messageInfo_ListSnapshotsResponse.Merge(m, src)
  3136. }
  3137. func (m *ListSnapshotsResponse) XXX_Size() int {
  3138. return xxx_messageInfo_ListSnapshotsResponse.Size(m)
  3139. }
  3140. func (m *ListSnapshotsResponse) XXX_DiscardUnknown() {
  3141. xxx_messageInfo_ListSnapshotsResponse.DiscardUnknown(m)
  3142. }
  3143. var xxx_messageInfo_ListSnapshotsResponse proto.InternalMessageInfo
  3144. func (m *ListSnapshotsResponse) GetEntries() []*ListSnapshotsResponse_Entry {
  3145. if m != nil {
  3146. return m.Entries
  3147. }
  3148. return nil
  3149. }
  3150. func (m *ListSnapshotsResponse) GetNextToken() string {
  3151. if m != nil {
  3152. return m.NextToken
  3153. }
  3154. return ""
  3155. }
  3156. type ListSnapshotsResponse_Entry struct {
  3157. Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  3158. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3159. XXX_unrecognized []byte `json:"-"`
  3160. XXX_sizecache int32 `json:"-"`
  3161. }
  3162. func (m *ListSnapshotsResponse_Entry) Reset() { *m = ListSnapshotsResponse_Entry{} }
  3163. func (m *ListSnapshotsResponse_Entry) String() string { return proto.CompactTextString(m) }
  3164. func (*ListSnapshotsResponse_Entry) ProtoMessage() {}
  3165. func (*ListSnapshotsResponse_Entry) Descriptor() ([]byte, []int) {
  3166. return fileDescriptor_9cdb00adce470e01, []int{38, 0}
  3167. }
  3168. func (m *ListSnapshotsResponse_Entry) XXX_Unmarshal(b []byte) error {
  3169. return xxx_messageInfo_ListSnapshotsResponse_Entry.Unmarshal(m, b)
  3170. }
  3171. func (m *ListSnapshotsResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3172. return xxx_messageInfo_ListSnapshotsResponse_Entry.Marshal(b, m, deterministic)
  3173. }
  3174. func (m *ListSnapshotsResponse_Entry) XXX_Merge(src proto.Message) {
  3175. xxx_messageInfo_ListSnapshotsResponse_Entry.Merge(m, src)
  3176. }
  3177. func (m *ListSnapshotsResponse_Entry) XXX_Size() int {
  3178. return xxx_messageInfo_ListSnapshotsResponse_Entry.Size(m)
  3179. }
  3180. func (m *ListSnapshotsResponse_Entry) XXX_DiscardUnknown() {
  3181. xxx_messageInfo_ListSnapshotsResponse_Entry.DiscardUnknown(m)
  3182. }
  3183. var xxx_messageInfo_ListSnapshotsResponse_Entry proto.InternalMessageInfo
  3184. func (m *ListSnapshotsResponse_Entry) GetSnapshot() *Snapshot {
  3185. if m != nil {
  3186. return m.Snapshot
  3187. }
  3188. return nil
  3189. }
  3190. type ControllerExpandVolumeRequest struct {
  3191. // The ID of the volume to expand. This field is REQUIRED.
  3192. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  3193. // This allows CO to specify the capacity requirements of the volume
  3194. // after expansion. This field is REQUIRED.
  3195. CapacityRange *CapacityRange `protobuf:"bytes,2,opt,name=capacity_range,json=capacityRange,proto3" json:"capacity_range,omitempty"`
  3196. // Secrets required by the plugin for expanding the volume.
  3197. // This field is OPTIONAL.
  3198. Secrets map[string]string `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3199. // Volume capability describing how the CO intends to use this volume.
  3200. // This allows SP to determine if volume is being used as a block
  3201. // device or mounted file system. For example - if volume is
  3202. // being used as a block device - the SP MAY set
  3203. // node_expansion_required to false in ControllerExpandVolumeResponse
  3204. // to skip invocation of NodeExpandVolume on the node by the CO.
  3205. // This is an OPTIONAL field.
  3206. VolumeCapability *VolumeCapability `protobuf:"bytes,4,opt,name=volume_capability,json=volumeCapability,proto3" json:"volume_capability,omitempty"`
  3207. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3208. XXX_unrecognized []byte `json:"-"`
  3209. XXX_sizecache int32 `json:"-"`
  3210. }
  3211. func (m *ControllerExpandVolumeRequest) Reset() { *m = ControllerExpandVolumeRequest{} }
  3212. func (m *ControllerExpandVolumeRequest) String() string { return proto.CompactTextString(m) }
  3213. func (*ControllerExpandVolumeRequest) ProtoMessage() {}
  3214. func (*ControllerExpandVolumeRequest) Descriptor() ([]byte, []int) {
  3215. return fileDescriptor_9cdb00adce470e01, []int{39}
  3216. }
  3217. func (m *ControllerExpandVolumeRequest) XXX_Unmarshal(b []byte) error {
  3218. return xxx_messageInfo_ControllerExpandVolumeRequest.Unmarshal(m, b)
  3219. }
  3220. func (m *ControllerExpandVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3221. return xxx_messageInfo_ControllerExpandVolumeRequest.Marshal(b, m, deterministic)
  3222. }
  3223. func (m *ControllerExpandVolumeRequest) XXX_Merge(src proto.Message) {
  3224. xxx_messageInfo_ControllerExpandVolumeRequest.Merge(m, src)
  3225. }
  3226. func (m *ControllerExpandVolumeRequest) XXX_Size() int {
  3227. return xxx_messageInfo_ControllerExpandVolumeRequest.Size(m)
  3228. }
  3229. func (m *ControllerExpandVolumeRequest) XXX_DiscardUnknown() {
  3230. xxx_messageInfo_ControllerExpandVolumeRequest.DiscardUnknown(m)
  3231. }
  3232. var xxx_messageInfo_ControllerExpandVolumeRequest proto.InternalMessageInfo
  3233. func (m *ControllerExpandVolumeRequest) GetVolumeId() string {
  3234. if m != nil {
  3235. return m.VolumeId
  3236. }
  3237. return ""
  3238. }
  3239. func (m *ControllerExpandVolumeRequest) GetCapacityRange() *CapacityRange {
  3240. if m != nil {
  3241. return m.CapacityRange
  3242. }
  3243. return nil
  3244. }
  3245. func (m *ControllerExpandVolumeRequest) GetSecrets() map[string]string {
  3246. if m != nil {
  3247. return m.Secrets
  3248. }
  3249. return nil
  3250. }
  3251. func (m *ControllerExpandVolumeRequest) GetVolumeCapability() *VolumeCapability {
  3252. if m != nil {
  3253. return m.VolumeCapability
  3254. }
  3255. return nil
  3256. }
  3257. type ControllerExpandVolumeResponse struct {
  3258. // Capacity of volume after expansion. This field is REQUIRED.
  3259. CapacityBytes int64 `protobuf:"varint,1,opt,name=capacity_bytes,json=capacityBytes,proto3" json:"capacity_bytes,omitempty"`
  3260. // Whether node expansion is required for the volume. When true
  3261. // the CO MUST make NodeExpandVolume RPC call on the node. This field
  3262. // is REQUIRED.
  3263. NodeExpansionRequired bool `protobuf:"varint,2,opt,name=node_expansion_required,json=nodeExpansionRequired,proto3" json:"node_expansion_required,omitempty"`
  3264. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3265. XXX_unrecognized []byte `json:"-"`
  3266. XXX_sizecache int32 `json:"-"`
  3267. }
  3268. func (m *ControllerExpandVolumeResponse) Reset() { *m = ControllerExpandVolumeResponse{} }
  3269. func (m *ControllerExpandVolumeResponse) String() string { return proto.CompactTextString(m) }
  3270. func (*ControllerExpandVolumeResponse) ProtoMessage() {}
  3271. func (*ControllerExpandVolumeResponse) Descriptor() ([]byte, []int) {
  3272. return fileDescriptor_9cdb00adce470e01, []int{40}
  3273. }
  3274. func (m *ControllerExpandVolumeResponse) XXX_Unmarshal(b []byte) error {
  3275. return xxx_messageInfo_ControllerExpandVolumeResponse.Unmarshal(m, b)
  3276. }
  3277. func (m *ControllerExpandVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3278. return xxx_messageInfo_ControllerExpandVolumeResponse.Marshal(b, m, deterministic)
  3279. }
  3280. func (m *ControllerExpandVolumeResponse) XXX_Merge(src proto.Message) {
  3281. xxx_messageInfo_ControllerExpandVolumeResponse.Merge(m, src)
  3282. }
  3283. func (m *ControllerExpandVolumeResponse) XXX_Size() int {
  3284. return xxx_messageInfo_ControllerExpandVolumeResponse.Size(m)
  3285. }
  3286. func (m *ControllerExpandVolumeResponse) XXX_DiscardUnknown() {
  3287. xxx_messageInfo_ControllerExpandVolumeResponse.DiscardUnknown(m)
  3288. }
  3289. var xxx_messageInfo_ControllerExpandVolumeResponse proto.InternalMessageInfo
  3290. func (m *ControllerExpandVolumeResponse) GetCapacityBytes() int64 {
  3291. if m != nil {
  3292. return m.CapacityBytes
  3293. }
  3294. return 0
  3295. }
  3296. func (m *ControllerExpandVolumeResponse) GetNodeExpansionRequired() bool {
  3297. if m != nil {
  3298. return m.NodeExpansionRequired
  3299. }
  3300. return false
  3301. }
  3302. type NodeStageVolumeRequest struct {
  3303. // The ID of the volume to publish. This field is REQUIRED.
  3304. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  3305. // The CO SHALL set this field to the value returned by
  3306. // `ControllerPublishVolume` if the corresponding Controller Plugin
  3307. // has `PUBLISH_UNPUBLISH_VOLUME` controller capability, and SHALL be
  3308. // left unset if the corresponding Controller Plugin does not have
  3309. // this capability. This is an OPTIONAL field.
  3310. PublishContext map[string]string `protobuf:"bytes,2,rep,name=publish_context,json=publishContext,proto3" json:"publish_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3311. // The path to which the volume MAY be staged. It MUST be an
  3312. // absolute path in the root filesystem of the process serving this
  3313. // request, and MUST be a directory. The CO SHALL ensure that there
  3314. // is only one `staging_target_path` per volume. The CO SHALL ensure
  3315. // that the path is directory and that the process serving the
  3316. // request has `read` and `write` permission to that directory. The
  3317. // CO SHALL be responsible for creating the directory if it does not
  3318. // exist.
  3319. // This is a REQUIRED field.
  3320. // This field overrides the general CSI size limit.
  3321. // SP SHOULD support the maximum path length allowed by the operating
  3322. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3323. // length of at least 128 bytes.
  3324. StagingTargetPath string `protobuf:"bytes,3,opt,name=staging_target_path,json=stagingTargetPath,proto3" json:"staging_target_path,omitempty"`
  3325. // Volume capability describing how the CO intends to use this volume.
  3326. // SP MUST ensure the CO can use the staged volume as described.
  3327. // Otherwise SP MUST return the appropriate gRPC error code.
  3328. // This is a REQUIRED field.
  3329. VolumeCapability *VolumeCapability `protobuf:"bytes,4,opt,name=volume_capability,json=volumeCapability,proto3" json:"volume_capability,omitempty"`
  3330. // Secrets required by plugin to complete node stage volume request.
  3331. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  3332. // section on how to use this field.
  3333. Secrets map[string]string `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3334. // Volume context as returned by SP in
  3335. // CreateVolumeResponse.Volume.volume_context.
  3336. // This field is OPTIONAL and MUST match the volume_context of the
  3337. // volume identified by `volume_id`.
  3338. VolumeContext map[string]string `protobuf:"bytes,6,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3339. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3340. XXX_unrecognized []byte `json:"-"`
  3341. XXX_sizecache int32 `json:"-"`
  3342. }
  3343. func (m *NodeStageVolumeRequest) Reset() { *m = NodeStageVolumeRequest{} }
  3344. func (m *NodeStageVolumeRequest) String() string { return proto.CompactTextString(m) }
  3345. func (*NodeStageVolumeRequest) ProtoMessage() {}
  3346. func (*NodeStageVolumeRequest) Descriptor() ([]byte, []int) {
  3347. return fileDescriptor_9cdb00adce470e01, []int{41}
  3348. }
  3349. func (m *NodeStageVolumeRequest) XXX_Unmarshal(b []byte) error {
  3350. return xxx_messageInfo_NodeStageVolumeRequest.Unmarshal(m, b)
  3351. }
  3352. func (m *NodeStageVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3353. return xxx_messageInfo_NodeStageVolumeRequest.Marshal(b, m, deterministic)
  3354. }
  3355. func (m *NodeStageVolumeRequest) XXX_Merge(src proto.Message) {
  3356. xxx_messageInfo_NodeStageVolumeRequest.Merge(m, src)
  3357. }
  3358. func (m *NodeStageVolumeRequest) XXX_Size() int {
  3359. return xxx_messageInfo_NodeStageVolumeRequest.Size(m)
  3360. }
  3361. func (m *NodeStageVolumeRequest) XXX_DiscardUnknown() {
  3362. xxx_messageInfo_NodeStageVolumeRequest.DiscardUnknown(m)
  3363. }
  3364. var xxx_messageInfo_NodeStageVolumeRequest proto.InternalMessageInfo
  3365. func (m *NodeStageVolumeRequest) GetVolumeId() string {
  3366. if m != nil {
  3367. return m.VolumeId
  3368. }
  3369. return ""
  3370. }
  3371. func (m *NodeStageVolumeRequest) GetPublishContext() map[string]string {
  3372. if m != nil {
  3373. return m.PublishContext
  3374. }
  3375. return nil
  3376. }
  3377. func (m *NodeStageVolumeRequest) GetStagingTargetPath() string {
  3378. if m != nil {
  3379. return m.StagingTargetPath
  3380. }
  3381. return ""
  3382. }
  3383. func (m *NodeStageVolumeRequest) GetVolumeCapability() *VolumeCapability {
  3384. if m != nil {
  3385. return m.VolumeCapability
  3386. }
  3387. return nil
  3388. }
  3389. func (m *NodeStageVolumeRequest) GetSecrets() map[string]string {
  3390. if m != nil {
  3391. return m.Secrets
  3392. }
  3393. return nil
  3394. }
  3395. func (m *NodeStageVolumeRequest) GetVolumeContext() map[string]string {
  3396. if m != nil {
  3397. return m.VolumeContext
  3398. }
  3399. return nil
  3400. }
  3401. type NodeStageVolumeResponse struct {
  3402. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3403. XXX_unrecognized []byte `json:"-"`
  3404. XXX_sizecache int32 `json:"-"`
  3405. }
  3406. func (m *NodeStageVolumeResponse) Reset() { *m = NodeStageVolumeResponse{} }
  3407. func (m *NodeStageVolumeResponse) String() string { return proto.CompactTextString(m) }
  3408. func (*NodeStageVolumeResponse) ProtoMessage() {}
  3409. func (*NodeStageVolumeResponse) Descriptor() ([]byte, []int) {
  3410. return fileDescriptor_9cdb00adce470e01, []int{42}
  3411. }
  3412. func (m *NodeStageVolumeResponse) XXX_Unmarshal(b []byte) error {
  3413. return xxx_messageInfo_NodeStageVolumeResponse.Unmarshal(m, b)
  3414. }
  3415. func (m *NodeStageVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3416. return xxx_messageInfo_NodeStageVolumeResponse.Marshal(b, m, deterministic)
  3417. }
  3418. func (m *NodeStageVolumeResponse) XXX_Merge(src proto.Message) {
  3419. xxx_messageInfo_NodeStageVolumeResponse.Merge(m, src)
  3420. }
  3421. func (m *NodeStageVolumeResponse) XXX_Size() int {
  3422. return xxx_messageInfo_NodeStageVolumeResponse.Size(m)
  3423. }
  3424. func (m *NodeStageVolumeResponse) XXX_DiscardUnknown() {
  3425. xxx_messageInfo_NodeStageVolumeResponse.DiscardUnknown(m)
  3426. }
  3427. var xxx_messageInfo_NodeStageVolumeResponse proto.InternalMessageInfo
  3428. type NodeUnstageVolumeRequest struct {
  3429. // The ID of the volume. This field is REQUIRED.
  3430. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  3431. // The path at which the volume was staged. It MUST be an absolute
  3432. // path in the root filesystem of the process serving this request.
  3433. // This is a REQUIRED field.
  3434. // This field overrides the general CSI size limit.
  3435. // SP SHOULD support the maximum path length allowed by the operating
  3436. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3437. // length of at least 128 bytes.
  3438. StagingTargetPath string `protobuf:"bytes,2,opt,name=staging_target_path,json=stagingTargetPath,proto3" json:"staging_target_path,omitempty"`
  3439. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3440. XXX_unrecognized []byte `json:"-"`
  3441. XXX_sizecache int32 `json:"-"`
  3442. }
  3443. func (m *NodeUnstageVolumeRequest) Reset() { *m = NodeUnstageVolumeRequest{} }
  3444. func (m *NodeUnstageVolumeRequest) String() string { return proto.CompactTextString(m) }
  3445. func (*NodeUnstageVolumeRequest) ProtoMessage() {}
  3446. func (*NodeUnstageVolumeRequest) Descriptor() ([]byte, []int) {
  3447. return fileDescriptor_9cdb00adce470e01, []int{43}
  3448. }
  3449. func (m *NodeUnstageVolumeRequest) XXX_Unmarshal(b []byte) error {
  3450. return xxx_messageInfo_NodeUnstageVolumeRequest.Unmarshal(m, b)
  3451. }
  3452. func (m *NodeUnstageVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3453. return xxx_messageInfo_NodeUnstageVolumeRequest.Marshal(b, m, deterministic)
  3454. }
  3455. func (m *NodeUnstageVolumeRequest) XXX_Merge(src proto.Message) {
  3456. xxx_messageInfo_NodeUnstageVolumeRequest.Merge(m, src)
  3457. }
  3458. func (m *NodeUnstageVolumeRequest) XXX_Size() int {
  3459. return xxx_messageInfo_NodeUnstageVolumeRequest.Size(m)
  3460. }
  3461. func (m *NodeUnstageVolumeRequest) XXX_DiscardUnknown() {
  3462. xxx_messageInfo_NodeUnstageVolumeRequest.DiscardUnknown(m)
  3463. }
  3464. var xxx_messageInfo_NodeUnstageVolumeRequest proto.InternalMessageInfo
  3465. func (m *NodeUnstageVolumeRequest) GetVolumeId() string {
  3466. if m != nil {
  3467. return m.VolumeId
  3468. }
  3469. return ""
  3470. }
  3471. func (m *NodeUnstageVolumeRequest) GetStagingTargetPath() string {
  3472. if m != nil {
  3473. return m.StagingTargetPath
  3474. }
  3475. return ""
  3476. }
  3477. type NodeUnstageVolumeResponse struct {
  3478. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3479. XXX_unrecognized []byte `json:"-"`
  3480. XXX_sizecache int32 `json:"-"`
  3481. }
  3482. func (m *NodeUnstageVolumeResponse) Reset() { *m = NodeUnstageVolumeResponse{} }
  3483. func (m *NodeUnstageVolumeResponse) String() string { return proto.CompactTextString(m) }
  3484. func (*NodeUnstageVolumeResponse) ProtoMessage() {}
  3485. func (*NodeUnstageVolumeResponse) Descriptor() ([]byte, []int) {
  3486. return fileDescriptor_9cdb00adce470e01, []int{44}
  3487. }
  3488. func (m *NodeUnstageVolumeResponse) XXX_Unmarshal(b []byte) error {
  3489. return xxx_messageInfo_NodeUnstageVolumeResponse.Unmarshal(m, b)
  3490. }
  3491. func (m *NodeUnstageVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3492. return xxx_messageInfo_NodeUnstageVolumeResponse.Marshal(b, m, deterministic)
  3493. }
  3494. func (m *NodeUnstageVolumeResponse) XXX_Merge(src proto.Message) {
  3495. xxx_messageInfo_NodeUnstageVolumeResponse.Merge(m, src)
  3496. }
  3497. func (m *NodeUnstageVolumeResponse) XXX_Size() int {
  3498. return xxx_messageInfo_NodeUnstageVolumeResponse.Size(m)
  3499. }
  3500. func (m *NodeUnstageVolumeResponse) XXX_DiscardUnknown() {
  3501. xxx_messageInfo_NodeUnstageVolumeResponse.DiscardUnknown(m)
  3502. }
  3503. var xxx_messageInfo_NodeUnstageVolumeResponse proto.InternalMessageInfo
  3504. type NodePublishVolumeRequest struct {
  3505. // The ID of the volume to publish. This field is REQUIRED.
  3506. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  3507. // The CO SHALL set this field to the value returned by
  3508. // `ControllerPublishVolume` if the corresponding Controller Plugin
  3509. // has `PUBLISH_UNPUBLISH_VOLUME` controller capability, and SHALL be
  3510. // left unset if the corresponding Controller Plugin does not have
  3511. // this capability. This is an OPTIONAL field.
  3512. PublishContext map[string]string `protobuf:"bytes,2,rep,name=publish_context,json=publishContext,proto3" json:"publish_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3513. // The path to which the volume was staged by `NodeStageVolume`.
  3514. // It MUST be an absolute path in the root filesystem of the process
  3515. // serving this request.
  3516. // It MUST be set if the Node Plugin implements the
  3517. // `STAGE_UNSTAGE_VOLUME` node capability.
  3518. // This is an OPTIONAL field.
  3519. // This field overrides the general CSI size limit.
  3520. // SP SHOULD support the maximum path length allowed by the operating
  3521. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3522. // length of at least 128 bytes.
  3523. StagingTargetPath string `protobuf:"bytes,3,opt,name=staging_target_path,json=stagingTargetPath,proto3" json:"staging_target_path,omitempty"`
  3524. // The path to which the volume will be published. It MUST be an
  3525. // absolute path in the root filesystem of the process serving this
  3526. // request. The CO SHALL ensure uniqueness of target_path per volume.
  3527. // The CO SHALL ensure that the parent directory of this path exists
  3528. // and that the process serving the request has `read` and `write`
  3529. // permissions to that parent directory.
  3530. // For volumes with an access type of block, the SP SHALL place the
  3531. // block device at target_path.
  3532. // For volumes with an access type of mount, the SP SHALL place the
  3533. // mounted directory at target_path.
  3534. // Creation of target_path is the responsibility of the SP.
  3535. // This is a REQUIRED field.
  3536. // This field overrides the general CSI size limit.
  3537. // SP SHOULD support the maximum path length allowed by the operating
  3538. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3539. // length of at least 128 bytes.
  3540. TargetPath string `protobuf:"bytes,4,opt,name=target_path,json=targetPath,proto3" json:"target_path,omitempty"`
  3541. // Volume capability describing how the CO intends to use this volume.
  3542. // SP MUST ensure the CO can use the published volume as described.
  3543. // Otherwise SP MUST return the appropriate gRPC error code.
  3544. // This is a REQUIRED field.
  3545. VolumeCapability *VolumeCapability `protobuf:"bytes,5,opt,name=volume_capability,json=volumeCapability,proto3" json:"volume_capability,omitempty"`
  3546. // Indicates SP MUST publish the volume in readonly mode.
  3547. // This field is REQUIRED.
  3548. Readonly bool `protobuf:"varint,6,opt,name=readonly,proto3" json:"readonly,omitempty"`
  3549. // Secrets required by plugin to complete node publish volume request.
  3550. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  3551. // section on how to use this field.
  3552. Secrets map[string]string `protobuf:"bytes,7,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3553. // Volume context as returned by SP in
  3554. // CreateVolumeResponse.Volume.volume_context.
  3555. // This field is OPTIONAL and MUST match the volume_context of the
  3556. // volume identified by `volume_id`.
  3557. VolumeContext map[string]string `protobuf:"bytes,8,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3558. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3559. XXX_unrecognized []byte `json:"-"`
  3560. XXX_sizecache int32 `json:"-"`
  3561. }
  3562. func (m *NodePublishVolumeRequest) Reset() { *m = NodePublishVolumeRequest{} }
  3563. func (m *NodePublishVolumeRequest) String() string { return proto.CompactTextString(m) }
  3564. func (*NodePublishVolumeRequest) ProtoMessage() {}
  3565. func (*NodePublishVolumeRequest) Descriptor() ([]byte, []int) {
  3566. return fileDescriptor_9cdb00adce470e01, []int{45}
  3567. }
  3568. func (m *NodePublishVolumeRequest) XXX_Unmarshal(b []byte) error {
  3569. return xxx_messageInfo_NodePublishVolumeRequest.Unmarshal(m, b)
  3570. }
  3571. func (m *NodePublishVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3572. return xxx_messageInfo_NodePublishVolumeRequest.Marshal(b, m, deterministic)
  3573. }
  3574. func (m *NodePublishVolumeRequest) XXX_Merge(src proto.Message) {
  3575. xxx_messageInfo_NodePublishVolumeRequest.Merge(m, src)
  3576. }
  3577. func (m *NodePublishVolumeRequest) XXX_Size() int {
  3578. return xxx_messageInfo_NodePublishVolumeRequest.Size(m)
  3579. }
  3580. func (m *NodePublishVolumeRequest) XXX_DiscardUnknown() {
  3581. xxx_messageInfo_NodePublishVolumeRequest.DiscardUnknown(m)
  3582. }
  3583. var xxx_messageInfo_NodePublishVolumeRequest proto.InternalMessageInfo
  3584. func (m *NodePublishVolumeRequest) GetVolumeId() string {
  3585. if m != nil {
  3586. return m.VolumeId
  3587. }
  3588. return ""
  3589. }
  3590. func (m *NodePublishVolumeRequest) GetPublishContext() map[string]string {
  3591. if m != nil {
  3592. return m.PublishContext
  3593. }
  3594. return nil
  3595. }
  3596. func (m *NodePublishVolumeRequest) GetStagingTargetPath() string {
  3597. if m != nil {
  3598. return m.StagingTargetPath
  3599. }
  3600. return ""
  3601. }
  3602. func (m *NodePublishVolumeRequest) GetTargetPath() string {
  3603. if m != nil {
  3604. return m.TargetPath
  3605. }
  3606. return ""
  3607. }
  3608. func (m *NodePublishVolumeRequest) GetVolumeCapability() *VolumeCapability {
  3609. if m != nil {
  3610. return m.VolumeCapability
  3611. }
  3612. return nil
  3613. }
  3614. func (m *NodePublishVolumeRequest) GetReadonly() bool {
  3615. if m != nil {
  3616. return m.Readonly
  3617. }
  3618. return false
  3619. }
  3620. func (m *NodePublishVolumeRequest) GetSecrets() map[string]string {
  3621. if m != nil {
  3622. return m.Secrets
  3623. }
  3624. return nil
  3625. }
  3626. func (m *NodePublishVolumeRequest) GetVolumeContext() map[string]string {
  3627. if m != nil {
  3628. return m.VolumeContext
  3629. }
  3630. return nil
  3631. }
  3632. type NodePublishVolumeResponse struct {
  3633. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3634. XXX_unrecognized []byte `json:"-"`
  3635. XXX_sizecache int32 `json:"-"`
  3636. }
  3637. func (m *NodePublishVolumeResponse) Reset() { *m = NodePublishVolumeResponse{} }
  3638. func (m *NodePublishVolumeResponse) String() string { return proto.CompactTextString(m) }
  3639. func (*NodePublishVolumeResponse) ProtoMessage() {}
  3640. func (*NodePublishVolumeResponse) Descriptor() ([]byte, []int) {
  3641. return fileDescriptor_9cdb00adce470e01, []int{46}
  3642. }
  3643. func (m *NodePublishVolumeResponse) XXX_Unmarshal(b []byte) error {
  3644. return xxx_messageInfo_NodePublishVolumeResponse.Unmarshal(m, b)
  3645. }
  3646. func (m *NodePublishVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3647. return xxx_messageInfo_NodePublishVolumeResponse.Marshal(b, m, deterministic)
  3648. }
  3649. func (m *NodePublishVolumeResponse) XXX_Merge(src proto.Message) {
  3650. xxx_messageInfo_NodePublishVolumeResponse.Merge(m, src)
  3651. }
  3652. func (m *NodePublishVolumeResponse) XXX_Size() int {
  3653. return xxx_messageInfo_NodePublishVolumeResponse.Size(m)
  3654. }
  3655. func (m *NodePublishVolumeResponse) XXX_DiscardUnknown() {
  3656. xxx_messageInfo_NodePublishVolumeResponse.DiscardUnknown(m)
  3657. }
  3658. var xxx_messageInfo_NodePublishVolumeResponse proto.InternalMessageInfo
  3659. type NodeUnpublishVolumeRequest struct {
  3660. // The ID of the volume. This field is REQUIRED.
  3661. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  3662. // The path at which the volume was published. It MUST be an absolute
  3663. // path in the root filesystem of the process serving this request.
  3664. // The SP MUST delete the file or directory it created at this path.
  3665. // This is a REQUIRED field.
  3666. // This field overrides the general CSI size limit.
  3667. // SP SHOULD support the maximum path length allowed by the operating
  3668. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3669. // length of at least 128 bytes.
  3670. TargetPath string `protobuf:"bytes,2,opt,name=target_path,json=targetPath,proto3" json:"target_path,omitempty"`
  3671. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3672. XXX_unrecognized []byte `json:"-"`
  3673. XXX_sizecache int32 `json:"-"`
  3674. }
  3675. func (m *NodeUnpublishVolumeRequest) Reset() { *m = NodeUnpublishVolumeRequest{} }
  3676. func (m *NodeUnpublishVolumeRequest) String() string { return proto.CompactTextString(m) }
  3677. func (*NodeUnpublishVolumeRequest) ProtoMessage() {}
  3678. func (*NodeUnpublishVolumeRequest) Descriptor() ([]byte, []int) {
  3679. return fileDescriptor_9cdb00adce470e01, []int{47}
  3680. }
  3681. func (m *NodeUnpublishVolumeRequest) XXX_Unmarshal(b []byte) error {
  3682. return xxx_messageInfo_NodeUnpublishVolumeRequest.Unmarshal(m, b)
  3683. }
  3684. func (m *NodeUnpublishVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3685. return xxx_messageInfo_NodeUnpublishVolumeRequest.Marshal(b, m, deterministic)
  3686. }
  3687. func (m *NodeUnpublishVolumeRequest) XXX_Merge(src proto.Message) {
  3688. xxx_messageInfo_NodeUnpublishVolumeRequest.Merge(m, src)
  3689. }
  3690. func (m *NodeUnpublishVolumeRequest) XXX_Size() int {
  3691. return xxx_messageInfo_NodeUnpublishVolumeRequest.Size(m)
  3692. }
  3693. func (m *NodeUnpublishVolumeRequest) XXX_DiscardUnknown() {
  3694. xxx_messageInfo_NodeUnpublishVolumeRequest.DiscardUnknown(m)
  3695. }
  3696. var xxx_messageInfo_NodeUnpublishVolumeRequest proto.InternalMessageInfo
  3697. func (m *NodeUnpublishVolumeRequest) GetVolumeId() string {
  3698. if m != nil {
  3699. return m.VolumeId
  3700. }
  3701. return ""
  3702. }
  3703. func (m *NodeUnpublishVolumeRequest) GetTargetPath() string {
  3704. if m != nil {
  3705. return m.TargetPath
  3706. }
  3707. return ""
  3708. }
  3709. type NodeUnpublishVolumeResponse struct {
  3710. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3711. XXX_unrecognized []byte `json:"-"`
  3712. XXX_sizecache int32 `json:"-"`
  3713. }
  3714. func (m *NodeUnpublishVolumeResponse) Reset() { *m = NodeUnpublishVolumeResponse{} }
  3715. func (m *NodeUnpublishVolumeResponse) String() string { return proto.CompactTextString(m) }
  3716. func (*NodeUnpublishVolumeResponse) ProtoMessage() {}
  3717. func (*NodeUnpublishVolumeResponse) Descriptor() ([]byte, []int) {
  3718. return fileDescriptor_9cdb00adce470e01, []int{48}
  3719. }
  3720. func (m *NodeUnpublishVolumeResponse) XXX_Unmarshal(b []byte) error {
  3721. return xxx_messageInfo_NodeUnpublishVolumeResponse.Unmarshal(m, b)
  3722. }
  3723. func (m *NodeUnpublishVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3724. return xxx_messageInfo_NodeUnpublishVolumeResponse.Marshal(b, m, deterministic)
  3725. }
  3726. func (m *NodeUnpublishVolumeResponse) XXX_Merge(src proto.Message) {
  3727. xxx_messageInfo_NodeUnpublishVolumeResponse.Merge(m, src)
  3728. }
  3729. func (m *NodeUnpublishVolumeResponse) XXX_Size() int {
  3730. return xxx_messageInfo_NodeUnpublishVolumeResponse.Size(m)
  3731. }
  3732. func (m *NodeUnpublishVolumeResponse) XXX_DiscardUnknown() {
  3733. xxx_messageInfo_NodeUnpublishVolumeResponse.DiscardUnknown(m)
  3734. }
  3735. var xxx_messageInfo_NodeUnpublishVolumeResponse proto.InternalMessageInfo
  3736. type NodeGetVolumeStatsRequest struct {
  3737. // The ID of the volume. This field is REQUIRED.
  3738. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  3739. // It can be any valid path where volume was previously
  3740. // staged or published.
  3741. // It MUST be an absolute path in the root filesystem of
  3742. // the process serving this request.
  3743. // This is a REQUIRED field.
  3744. // This field overrides the general CSI size limit.
  3745. // SP SHOULD support the maximum path length allowed by the operating
  3746. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3747. // length of at least 128 bytes.
  3748. VolumePath string `protobuf:"bytes,2,opt,name=volume_path,json=volumePath,proto3" json:"volume_path,omitempty"`
  3749. // The path where the volume is staged, if the plugin has the
  3750. // STAGE_UNSTAGE_VOLUME capability, otherwise empty.
  3751. // If not empty, it MUST be an absolute path in the root
  3752. // filesystem of the process serving this request.
  3753. // This field is OPTIONAL.
  3754. // This field overrides the general CSI size limit.
  3755. // SP SHOULD support the maximum path length allowed by the operating
  3756. // system/filesystem, but, at a minimum, SP MUST accept a max path
  3757. // length of at least 128 bytes.
  3758. StagingTargetPath string `protobuf:"bytes,3,opt,name=staging_target_path,json=stagingTargetPath,proto3" json:"staging_target_path,omitempty"`
  3759. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3760. XXX_unrecognized []byte `json:"-"`
  3761. XXX_sizecache int32 `json:"-"`
  3762. }
  3763. func (m *NodeGetVolumeStatsRequest) Reset() { *m = NodeGetVolumeStatsRequest{} }
  3764. func (m *NodeGetVolumeStatsRequest) String() string { return proto.CompactTextString(m) }
  3765. func (*NodeGetVolumeStatsRequest) ProtoMessage() {}
  3766. func (*NodeGetVolumeStatsRequest) Descriptor() ([]byte, []int) {
  3767. return fileDescriptor_9cdb00adce470e01, []int{49}
  3768. }
  3769. func (m *NodeGetVolumeStatsRequest) XXX_Unmarshal(b []byte) error {
  3770. return xxx_messageInfo_NodeGetVolumeStatsRequest.Unmarshal(m, b)
  3771. }
  3772. func (m *NodeGetVolumeStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3773. return xxx_messageInfo_NodeGetVolumeStatsRequest.Marshal(b, m, deterministic)
  3774. }
  3775. func (m *NodeGetVolumeStatsRequest) XXX_Merge(src proto.Message) {
  3776. xxx_messageInfo_NodeGetVolumeStatsRequest.Merge(m, src)
  3777. }
  3778. func (m *NodeGetVolumeStatsRequest) XXX_Size() int {
  3779. return xxx_messageInfo_NodeGetVolumeStatsRequest.Size(m)
  3780. }
  3781. func (m *NodeGetVolumeStatsRequest) XXX_DiscardUnknown() {
  3782. xxx_messageInfo_NodeGetVolumeStatsRequest.DiscardUnknown(m)
  3783. }
  3784. var xxx_messageInfo_NodeGetVolumeStatsRequest proto.InternalMessageInfo
  3785. func (m *NodeGetVolumeStatsRequest) GetVolumeId() string {
  3786. if m != nil {
  3787. return m.VolumeId
  3788. }
  3789. return ""
  3790. }
  3791. func (m *NodeGetVolumeStatsRequest) GetVolumePath() string {
  3792. if m != nil {
  3793. return m.VolumePath
  3794. }
  3795. return ""
  3796. }
  3797. func (m *NodeGetVolumeStatsRequest) GetStagingTargetPath() string {
  3798. if m != nil {
  3799. return m.StagingTargetPath
  3800. }
  3801. return ""
  3802. }
  3803. type NodeGetVolumeStatsResponse struct {
  3804. // This field is OPTIONAL.
  3805. Usage []*VolumeUsage `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"`
  3806. // Information about the current condition of the volume.
  3807. // This field is OPTIONAL.
  3808. // This field MUST be specified if the VOLUME_CONDITION node
  3809. // capability is supported.
  3810. VolumeCondition *VolumeCondition `protobuf:"bytes,2,opt,name=volume_condition,json=volumeCondition,proto3" json:"volume_condition,omitempty"`
  3811. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3812. XXX_unrecognized []byte `json:"-"`
  3813. XXX_sizecache int32 `json:"-"`
  3814. }
  3815. func (m *NodeGetVolumeStatsResponse) Reset() { *m = NodeGetVolumeStatsResponse{} }
  3816. func (m *NodeGetVolumeStatsResponse) String() string { return proto.CompactTextString(m) }
  3817. func (*NodeGetVolumeStatsResponse) ProtoMessage() {}
  3818. func (*NodeGetVolumeStatsResponse) Descriptor() ([]byte, []int) {
  3819. return fileDescriptor_9cdb00adce470e01, []int{50}
  3820. }
  3821. func (m *NodeGetVolumeStatsResponse) XXX_Unmarshal(b []byte) error {
  3822. return xxx_messageInfo_NodeGetVolumeStatsResponse.Unmarshal(m, b)
  3823. }
  3824. func (m *NodeGetVolumeStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3825. return xxx_messageInfo_NodeGetVolumeStatsResponse.Marshal(b, m, deterministic)
  3826. }
  3827. func (m *NodeGetVolumeStatsResponse) XXX_Merge(src proto.Message) {
  3828. xxx_messageInfo_NodeGetVolumeStatsResponse.Merge(m, src)
  3829. }
  3830. func (m *NodeGetVolumeStatsResponse) XXX_Size() int {
  3831. return xxx_messageInfo_NodeGetVolumeStatsResponse.Size(m)
  3832. }
  3833. func (m *NodeGetVolumeStatsResponse) XXX_DiscardUnknown() {
  3834. xxx_messageInfo_NodeGetVolumeStatsResponse.DiscardUnknown(m)
  3835. }
  3836. var xxx_messageInfo_NodeGetVolumeStatsResponse proto.InternalMessageInfo
  3837. func (m *NodeGetVolumeStatsResponse) GetUsage() []*VolumeUsage {
  3838. if m != nil {
  3839. return m.Usage
  3840. }
  3841. return nil
  3842. }
  3843. func (m *NodeGetVolumeStatsResponse) GetVolumeCondition() *VolumeCondition {
  3844. if m != nil {
  3845. return m.VolumeCondition
  3846. }
  3847. return nil
  3848. }
  3849. type VolumeUsage struct {
  3850. // The available capacity in specified Unit. This field is OPTIONAL.
  3851. // The value of this field MUST NOT be negative.
  3852. Available int64 `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
  3853. // The total capacity in specified Unit. This field is REQUIRED.
  3854. // The value of this field MUST NOT be negative.
  3855. Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  3856. // The used capacity in specified Unit. This field is OPTIONAL.
  3857. // The value of this field MUST NOT be negative.
  3858. Used int64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"`
  3859. // Units by which values are measured. This field is REQUIRED.
  3860. Unit VolumeUsage_Unit `protobuf:"varint,4,opt,name=unit,proto3,enum=csi.v1.VolumeUsage_Unit" json:"unit,omitempty"`
  3861. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3862. XXX_unrecognized []byte `json:"-"`
  3863. XXX_sizecache int32 `json:"-"`
  3864. }
  3865. func (m *VolumeUsage) Reset() { *m = VolumeUsage{} }
  3866. func (m *VolumeUsage) String() string { return proto.CompactTextString(m) }
  3867. func (*VolumeUsage) ProtoMessage() {}
  3868. func (*VolumeUsage) Descriptor() ([]byte, []int) {
  3869. return fileDescriptor_9cdb00adce470e01, []int{51}
  3870. }
  3871. func (m *VolumeUsage) XXX_Unmarshal(b []byte) error {
  3872. return xxx_messageInfo_VolumeUsage.Unmarshal(m, b)
  3873. }
  3874. func (m *VolumeUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3875. return xxx_messageInfo_VolumeUsage.Marshal(b, m, deterministic)
  3876. }
  3877. func (m *VolumeUsage) XXX_Merge(src proto.Message) {
  3878. xxx_messageInfo_VolumeUsage.Merge(m, src)
  3879. }
  3880. func (m *VolumeUsage) XXX_Size() int {
  3881. return xxx_messageInfo_VolumeUsage.Size(m)
  3882. }
  3883. func (m *VolumeUsage) XXX_DiscardUnknown() {
  3884. xxx_messageInfo_VolumeUsage.DiscardUnknown(m)
  3885. }
  3886. var xxx_messageInfo_VolumeUsage proto.InternalMessageInfo
  3887. func (m *VolumeUsage) GetAvailable() int64 {
  3888. if m != nil {
  3889. return m.Available
  3890. }
  3891. return 0
  3892. }
  3893. func (m *VolumeUsage) GetTotal() int64 {
  3894. if m != nil {
  3895. return m.Total
  3896. }
  3897. return 0
  3898. }
  3899. func (m *VolumeUsage) GetUsed() int64 {
  3900. if m != nil {
  3901. return m.Used
  3902. }
  3903. return 0
  3904. }
  3905. func (m *VolumeUsage) GetUnit() VolumeUsage_Unit {
  3906. if m != nil {
  3907. return m.Unit
  3908. }
  3909. return VolumeUsage_UNKNOWN
  3910. }
  3911. // VolumeCondition represents the current condition of a volume.
  3912. type VolumeCondition struct {
  3913. // Normal volumes are available for use and operating optimally.
  3914. // An abnormal volume does not meet these criteria.
  3915. // This field is REQUIRED.
  3916. Abnormal bool `protobuf:"varint,1,opt,name=abnormal,proto3" json:"abnormal,omitempty"`
  3917. // The message describing the condition of the volume.
  3918. // This field is REQUIRED.
  3919. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  3920. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3921. XXX_unrecognized []byte `json:"-"`
  3922. XXX_sizecache int32 `json:"-"`
  3923. }
  3924. func (m *VolumeCondition) Reset() { *m = VolumeCondition{} }
  3925. func (m *VolumeCondition) String() string { return proto.CompactTextString(m) }
  3926. func (*VolumeCondition) ProtoMessage() {}
  3927. func (*VolumeCondition) Descriptor() ([]byte, []int) {
  3928. return fileDescriptor_9cdb00adce470e01, []int{52}
  3929. }
  3930. func (m *VolumeCondition) XXX_Unmarshal(b []byte) error {
  3931. return xxx_messageInfo_VolumeCondition.Unmarshal(m, b)
  3932. }
  3933. func (m *VolumeCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3934. return xxx_messageInfo_VolumeCondition.Marshal(b, m, deterministic)
  3935. }
  3936. func (m *VolumeCondition) XXX_Merge(src proto.Message) {
  3937. xxx_messageInfo_VolumeCondition.Merge(m, src)
  3938. }
  3939. func (m *VolumeCondition) XXX_Size() int {
  3940. return xxx_messageInfo_VolumeCondition.Size(m)
  3941. }
  3942. func (m *VolumeCondition) XXX_DiscardUnknown() {
  3943. xxx_messageInfo_VolumeCondition.DiscardUnknown(m)
  3944. }
  3945. var xxx_messageInfo_VolumeCondition proto.InternalMessageInfo
  3946. func (m *VolumeCondition) GetAbnormal() bool {
  3947. if m != nil {
  3948. return m.Abnormal
  3949. }
  3950. return false
  3951. }
  3952. func (m *VolumeCondition) GetMessage() string {
  3953. if m != nil {
  3954. return m.Message
  3955. }
  3956. return ""
  3957. }
  3958. type NodeGetCapabilitiesRequest struct {
  3959. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3960. XXX_unrecognized []byte `json:"-"`
  3961. XXX_sizecache int32 `json:"-"`
  3962. }
  3963. func (m *NodeGetCapabilitiesRequest) Reset() { *m = NodeGetCapabilitiesRequest{} }
  3964. func (m *NodeGetCapabilitiesRequest) String() string { return proto.CompactTextString(m) }
  3965. func (*NodeGetCapabilitiesRequest) ProtoMessage() {}
  3966. func (*NodeGetCapabilitiesRequest) Descriptor() ([]byte, []int) {
  3967. return fileDescriptor_9cdb00adce470e01, []int{53}
  3968. }
  3969. func (m *NodeGetCapabilitiesRequest) XXX_Unmarshal(b []byte) error {
  3970. return xxx_messageInfo_NodeGetCapabilitiesRequest.Unmarshal(m, b)
  3971. }
  3972. func (m *NodeGetCapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3973. return xxx_messageInfo_NodeGetCapabilitiesRequest.Marshal(b, m, deterministic)
  3974. }
  3975. func (m *NodeGetCapabilitiesRequest) XXX_Merge(src proto.Message) {
  3976. xxx_messageInfo_NodeGetCapabilitiesRequest.Merge(m, src)
  3977. }
  3978. func (m *NodeGetCapabilitiesRequest) XXX_Size() int {
  3979. return xxx_messageInfo_NodeGetCapabilitiesRequest.Size(m)
  3980. }
  3981. func (m *NodeGetCapabilitiesRequest) XXX_DiscardUnknown() {
  3982. xxx_messageInfo_NodeGetCapabilitiesRequest.DiscardUnknown(m)
  3983. }
  3984. var xxx_messageInfo_NodeGetCapabilitiesRequest proto.InternalMessageInfo
  3985. type NodeGetCapabilitiesResponse struct {
  3986. // All the capabilities that the node service supports. This field
  3987. // is OPTIONAL.
  3988. Capabilities []*NodeServiceCapability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
  3989. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3990. XXX_unrecognized []byte `json:"-"`
  3991. XXX_sizecache int32 `json:"-"`
  3992. }
  3993. func (m *NodeGetCapabilitiesResponse) Reset() { *m = NodeGetCapabilitiesResponse{} }
  3994. func (m *NodeGetCapabilitiesResponse) String() string { return proto.CompactTextString(m) }
  3995. func (*NodeGetCapabilitiesResponse) ProtoMessage() {}
  3996. func (*NodeGetCapabilitiesResponse) Descriptor() ([]byte, []int) {
  3997. return fileDescriptor_9cdb00adce470e01, []int{54}
  3998. }
  3999. func (m *NodeGetCapabilitiesResponse) XXX_Unmarshal(b []byte) error {
  4000. return xxx_messageInfo_NodeGetCapabilitiesResponse.Unmarshal(m, b)
  4001. }
  4002. func (m *NodeGetCapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4003. return xxx_messageInfo_NodeGetCapabilitiesResponse.Marshal(b, m, deterministic)
  4004. }
  4005. func (m *NodeGetCapabilitiesResponse) XXX_Merge(src proto.Message) {
  4006. xxx_messageInfo_NodeGetCapabilitiesResponse.Merge(m, src)
  4007. }
  4008. func (m *NodeGetCapabilitiesResponse) XXX_Size() int {
  4009. return xxx_messageInfo_NodeGetCapabilitiesResponse.Size(m)
  4010. }
  4011. func (m *NodeGetCapabilitiesResponse) XXX_DiscardUnknown() {
  4012. xxx_messageInfo_NodeGetCapabilitiesResponse.DiscardUnknown(m)
  4013. }
  4014. var xxx_messageInfo_NodeGetCapabilitiesResponse proto.InternalMessageInfo
  4015. func (m *NodeGetCapabilitiesResponse) GetCapabilities() []*NodeServiceCapability {
  4016. if m != nil {
  4017. return m.Capabilities
  4018. }
  4019. return nil
  4020. }
  4021. // Specifies a capability of the node service.
  4022. type NodeServiceCapability struct {
  4023. // Types that are valid to be assigned to Type:
  4024. // *NodeServiceCapability_Rpc
  4025. Type isNodeServiceCapability_Type `protobuf_oneof:"type"`
  4026. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4027. XXX_unrecognized []byte `json:"-"`
  4028. XXX_sizecache int32 `json:"-"`
  4029. }
  4030. func (m *NodeServiceCapability) Reset() { *m = NodeServiceCapability{} }
  4031. func (m *NodeServiceCapability) String() string { return proto.CompactTextString(m) }
  4032. func (*NodeServiceCapability) ProtoMessage() {}
  4033. func (*NodeServiceCapability) Descriptor() ([]byte, []int) {
  4034. return fileDescriptor_9cdb00adce470e01, []int{55}
  4035. }
  4036. func (m *NodeServiceCapability) XXX_Unmarshal(b []byte) error {
  4037. return xxx_messageInfo_NodeServiceCapability.Unmarshal(m, b)
  4038. }
  4039. func (m *NodeServiceCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4040. return xxx_messageInfo_NodeServiceCapability.Marshal(b, m, deterministic)
  4041. }
  4042. func (m *NodeServiceCapability) XXX_Merge(src proto.Message) {
  4043. xxx_messageInfo_NodeServiceCapability.Merge(m, src)
  4044. }
  4045. func (m *NodeServiceCapability) XXX_Size() int {
  4046. return xxx_messageInfo_NodeServiceCapability.Size(m)
  4047. }
  4048. func (m *NodeServiceCapability) XXX_DiscardUnknown() {
  4049. xxx_messageInfo_NodeServiceCapability.DiscardUnknown(m)
  4050. }
  4051. var xxx_messageInfo_NodeServiceCapability proto.InternalMessageInfo
  4052. type isNodeServiceCapability_Type interface {
  4053. isNodeServiceCapability_Type()
  4054. }
  4055. type NodeServiceCapability_Rpc struct {
  4056. Rpc *NodeServiceCapability_RPC `protobuf:"bytes,1,opt,name=rpc,proto3,oneof"`
  4057. }
  4058. func (*NodeServiceCapability_Rpc) isNodeServiceCapability_Type() {}
  4059. func (m *NodeServiceCapability) GetType() isNodeServiceCapability_Type {
  4060. if m != nil {
  4061. return m.Type
  4062. }
  4063. return nil
  4064. }
  4065. func (m *NodeServiceCapability) GetRpc() *NodeServiceCapability_RPC {
  4066. if x, ok := m.GetType().(*NodeServiceCapability_Rpc); ok {
  4067. return x.Rpc
  4068. }
  4069. return nil
  4070. }
  4071. // XXX_OneofWrappers is for the internal use of the proto package.
  4072. func (*NodeServiceCapability) XXX_OneofWrappers() []interface{} {
  4073. return []interface{}{
  4074. (*NodeServiceCapability_Rpc)(nil),
  4075. }
  4076. }
  4077. type NodeServiceCapability_RPC struct {
  4078. Type NodeServiceCapability_RPC_Type `protobuf:"varint,1,opt,name=type,proto3,enum=csi.v1.NodeServiceCapability_RPC_Type" json:"type,omitempty"`
  4079. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4080. XXX_unrecognized []byte `json:"-"`
  4081. XXX_sizecache int32 `json:"-"`
  4082. }
  4083. func (m *NodeServiceCapability_RPC) Reset() { *m = NodeServiceCapability_RPC{} }
  4084. func (m *NodeServiceCapability_RPC) String() string { return proto.CompactTextString(m) }
  4085. func (*NodeServiceCapability_RPC) ProtoMessage() {}
  4086. func (*NodeServiceCapability_RPC) Descriptor() ([]byte, []int) {
  4087. return fileDescriptor_9cdb00adce470e01, []int{55, 0}
  4088. }
  4089. func (m *NodeServiceCapability_RPC) XXX_Unmarshal(b []byte) error {
  4090. return xxx_messageInfo_NodeServiceCapability_RPC.Unmarshal(m, b)
  4091. }
  4092. func (m *NodeServiceCapability_RPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4093. return xxx_messageInfo_NodeServiceCapability_RPC.Marshal(b, m, deterministic)
  4094. }
  4095. func (m *NodeServiceCapability_RPC) XXX_Merge(src proto.Message) {
  4096. xxx_messageInfo_NodeServiceCapability_RPC.Merge(m, src)
  4097. }
  4098. func (m *NodeServiceCapability_RPC) XXX_Size() int {
  4099. return xxx_messageInfo_NodeServiceCapability_RPC.Size(m)
  4100. }
  4101. func (m *NodeServiceCapability_RPC) XXX_DiscardUnknown() {
  4102. xxx_messageInfo_NodeServiceCapability_RPC.DiscardUnknown(m)
  4103. }
  4104. var xxx_messageInfo_NodeServiceCapability_RPC proto.InternalMessageInfo
  4105. func (m *NodeServiceCapability_RPC) GetType() NodeServiceCapability_RPC_Type {
  4106. if m != nil {
  4107. return m.Type
  4108. }
  4109. return NodeServiceCapability_RPC_UNKNOWN
  4110. }
  4111. type NodeGetInfoRequest struct {
  4112. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4113. XXX_unrecognized []byte `json:"-"`
  4114. XXX_sizecache int32 `json:"-"`
  4115. }
  4116. func (m *NodeGetInfoRequest) Reset() { *m = NodeGetInfoRequest{} }
  4117. func (m *NodeGetInfoRequest) String() string { return proto.CompactTextString(m) }
  4118. func (*NodeGetInfoRequest) ProtoMessage() {}
  4119. func (*NodeGetInfoRequest) Descriptor() ([]byte, []int) {
  4120. return fileDescriptor_9cdb00adce470e01, []int{56}
  4121. }
  4122. func (m *NodeGetInfoRequest) XXX_Unmarshal(b []byte) error {
  4123. return xxx_messageInfo_NodeGetInfoRequest.Unmarshal(m, b)
  4124. }
  4125. func (m *NodeGetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4126. return xxx_messageInfo_NodeGetInfoRequest.Marshal(b, m, deterministic)
  4127. }
  4128. func (m *NodeGetInfoRequest) XXX_Merge(src proto.Message) {
  4129. xxx_messageInfo_NodeGetInfoRequest.Merge(m, src)
  4130. }
  4131. func (m *NodeGetInfoRequest) XXX_Size() int {
  4132. return xxx_messageInfo_NodeGetInfoRequest.Size(m)
  4133. }
  4134. func (m *NodeGetInfoRequest) XXX_DiscardUnknown() {
  4135. xxx_messageInfo_NodeGetInfoRequest.DiscardUnknown(m)
  4136. }
  4137. var xxx_messageInfo_NodeGetInfoRequest proto.InternalMessageInfo
  4138. type NodeGetInfoResponse struct {
  4139. // The identifier of the node as understood by the SP.
  4140. // This field is REQUIRED.
  4141. // This field MUST contain enough information to uniquely identify
  4142. // this specific node vs all other nodes supported by this plugin.
  4143. // This field SHALL be used by the CO in subsequent calls, including
  4144. // `ControllerPublishVolume`, to refer to this node.
  4145. // The SP is NOT responsible for global uniqueness of node_id across
  4146. // multiple SPs.
  4147. // This field overrides the general CSI size limit.
  4148. // The size of this field SHALL NOT exceed 256 bytes. The general
  4149. // CSI size limit, 128 byte, is RECOMMENDED for best backwards
  4150. // compatibility.
  4151. NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
  4152. // Maximum number of volumes that controller can publish to the node.
  4153. // If value is not set or zero CO SHALL decide how many volumes of
  4154. // this type can be published by the controller to the node. The
  4155. // plugin MUST NOT set negative values here.
  4156. // This field is OPTIONAL.
  4157. MaxVolumesPerNode int64 `protobuf:"varint,2,opt,name=max_volumes_per_node,json=maxVolumesPerNode,proto3" json:"max_volumes_per_node,omitempty"`
  4158. // Specifies where (regions, zones, racks, etc.) the node is
  4159. // accessible from.
  4160. // A plugin that returns this field MUST also set the
  4161. // VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability.
  4162. // COs MAY use this information along with the topology information
  4163. // returned in CreateVolumeResponse to ensure that a given volume is
  4164. // accessible from a given node when scheduling workloads.
  4165. // This field is OPTIONAL. If it is not specified, the CO MAY assume
  4166. // the node is not subject to any topological constraint, and MAY
  4167. // schedule workloads that reference any volume V, such that there are
  4168. // no topological constraints declared for V.
  4169. //
  4170. // Example 1:
  4171. // accessible_topology =
  4172. // {"region": "R1", "zone": "Z2"}
  4173. // Indicates the node exists within the "region" "R1" and the "zone"
  4174. // "Z2".
  4175. AccessibleTopology *Topology `protobuf:"bytes,3,opt,name=accessible_topology,json=accessibleTopology,proto3" json:"accessible_topology,omitempty"`
  4176. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4177. XXX_unrecognized []byte `json:"-"`
  4178. XXX_sizecache int32 `json:"-"`
  4179. }
  4180. func (m *NodeGetInfoResponse) Reset() { *m = NodeGetInfoResponse{} }
  4181. func (m *NodeGetInfoResponse) String() string { return proto.CompactTextString(m) }
  4182. func (*NodeGetInfoResponse) ProtoMessage() {}
  4183. func (*NodeGetInfoResponse) Descriptor() ([]byte, []int) {
  4184. return fileDescriptor_9cdb00adce470e01, []int{57}
  4185. }
  4186. func (m *NodeGetInfoResponse) XXX_Unmarshal(b []byte) error {
  4187. return xxx_messageInfo_NodeGetInfoResponse.Unmarshal(m, b)
  4188. }
  4189. func (m *NodeGetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4190. return xxx_messageInfo_NodeGetInfoResponse.Marshal(b, m, deterministic)
  4191. }
  4192. func (m *NodeGetInfoResponse) XXX_Merge(src proto.Message) {
  4193. xxx_messageInfo_NodeGetInfoResponse.Merge(m, src)
  4194. }
  4195. func (m *NodeGetInfoResponse) XXX_Size() int {
  4196. return xxx_messageInfo_NodeGetInfoResponse.Size(m)
  4197. }
  4198. func (m *NodeGetInfoResponse) XXX_DiscardUnknown() {
  4199. xxx_messageInfo_NodeGetInfoResponse.DiscardUnknown(m)
  4200. }
  4201. var xxx_messageInfo_NodeGetInfoResponse proto.InternalMessageInfo
  4202. func (m *NodeGetInfoResponse) GetNodeId() string {
  4203. if m != nil {
  4204. return m.NodeId
  4205. }
  4206. return ""
  4207. }
  4208. func (m *NodeGetInfoResponse) GetMaxVolumesPerNode() int64 {
  4209. if m != nil {
  4210. return m.MaxVolumesPerNode
  4211. }
  4212. return 0
  4213. }
  4214. func (m *NodeGetInfoResponse) GetAccessibleTopology() *Topology {
  4215. if m != nil {
  4216. return m.AccessibleTopology
  4217. }
  4218. return nil
  4219. }
  4220. type NodeExpandVolumeRequest struct {
  4221. // The ID of the volume. This field is REQUIRED.
  4222. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
  4223. // The path on which volume is available. This field is REQUIRED.
  4224. // This field overrides the general CSI size limit.
  4225. // SP SHOULD support the maximum path length allowed by the operating
  4226. // system/filesystem, but, at a minimum, SP MUST accept a max path
  4227. // length of at least 128 bytes.
  4228. VolumePath string `protobuf:"bytes,2,opt,name=volume_path,json=volumePath,proto3" json:"volume_path,omitempty"`
  4229. // This allows CO to specify the capacity requirements of the volume
  4230. // after expansion. If capacity_range is omitted then a plugin MAY
  4231. // inspect the file system of the volume to determine the maximum
  4232. // capacity to which the volume can be expanded. In such cases a
  4233. // plugin MAY expand the volume to its maximum capacity.
  4234. // This field is OPTIONAL.
  4235. CapacityRange *CapacityRange `protobuf:"bytes,3,opt,name=capacity_range,json=capacityRange,proto3" json:"capacity_range,omitempty"`
  4236. // The path where the volume is staged, if the plugin has the
  4237. // STAGE_UNSTAGE_VOLUME capability, otherwise empty.
  4238. // If not empty, it MUST be an absolute path in the root
  4239. // filesystem of the process serving this request.
  4240. // This field is OPTIONAL.
  4241. // This field overrides the general CSI size limit.
  4242. // SP SHOULD support the maximum path length allowed by the operating
  4243. // system/filesystem, but, at a minimum, SP MUST accept a max path
  4244. // length of at least 128 bytes.
  4245. StagingTargetPath string `protobuf:"bytes,4,opt,name=staging_target_path,json=stagingTargetPath,proto3" json:"staging_target_path,omitempty"`
  4246. // Volume capability describing how the CO intends to use this volume.
  4247. // This allows SP to determine if volume is being used as a block
  4248. // device or mounted file system. For example - if volume is being
  4249. // used as a block device the SP MAY choose to skip expanding the
  4250. // filesystem in NodeExpandVolume implementation but still perform
  4251. // rest of the housekeeping needed for expanding the volume. If
  4252. // volume_capability is omitted the SP MAY determine
  4253. // access_type from given volume_path for the volume and perform
  4254. // node expansion. This is an OPTIONAL field.
  4255. VolumeCapability *VolumeCapability `protobuf:"bytes,5,opt,name=volume_capability,json=volumeCapability,proto3" json:"volume_capability,omitempty"`
  4256. // Secrets required by plugin to complete node expand volume request.
  4257. // This field is OPTIONAL. Refer to the `Secrets Requirements`
  4258. // section on how to use this field.
  4259. Secrets map[string]string `protobuf:"bytes,6,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4260. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4261. XXX_unrecognized []byte `json:"-"`
  4262. XXX_sizecache int32 `json:"-"`
  4263. }
  4264. func (m *NodeExpandVolumeRequest) Reset() { *m = NodeExpandVolumeRequest{} }
  4265. func (m *NodeExpandVolumeRequest) String() string { return proto.CompactTextString(m) }
  4266. func (*NodeExpandVolumeRequest) ProtoMessage() {}
  4267. func (*NodeExpandVolumeRequest) Descriptor() ([]byte, []int) {
  4268. return fileDescriptor_9cdb00adce470e01, []int{58}
  4269. }
  4270. func (m *NodeExpandVolumeRequest) XXX_Unmarshal(b []byte) error {
  4271. return xxx_messageInfo_NodeExpandVolumeRequest.Unmarshal(m, b)
  4272. }
  4273. func (m *NodeExpandVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4274. return xxx_messageInfo_NodeExpandVolumeRequest.Marshal(b, m, deterministic)
  4275. }
  4276. func (m *NodeExpandVolumeRequest) XXX_Merge(src proto.Message) {
  4277. xxx_messageInfo_NodeExpandVolumeRequest.Merge(m, src)
  4278. }
  4279. func (m *NodeExpandVolumeRequest) XXX_Size() int {
  4280. return xxx_messageInfo_NodeExpandVolumeRequest.Size(m)
  4281. }
  4282. func (m *NodeExpandVolumeRequest) XXX_DiscardUnknown() {
  4283. xxx_messageInfo_NodeExpandVolumeRequest.DiscardUnknown(m)
  4284. }
  4285. var xxx_messageInfo_NodeExpandVolumeRequest proto.InternalMessageInfo
  4286. func (m *NodeExpandVolumeRequest) GetVolumeId() string {
  4287. if m != nil {
  4288. return m.VolumeId
  4289. }
  4290. return ""
  4291. }
  4292. func (m *NodeExpandVolumeRequest) GetVolumePath() string {
  4293. if m != nil {
  4294. return m.VolumePath
  4295. }
  4296. return ""
  4297. }
  4298. func (m *NodeExpandVolumeRequest) GetCapacityRange() *CapacityRange {
  4299. if m != nil {
  4300. return m.CapacityRange
  4301. }
  4302. return nil
  4303. }
  4304. func (m *NodeExpandVolumeRequest) GetStagingTargetPath() string {
  4305. if m != nil {
  4306. return m.StagingTargetPath
  4307. }
  4308. return ""
  4309. }
  4310. func (m *NodeExpandVolumeRequest) GetVolumeCapability() *VolumeCapability {
  4311. if m != nil {
  4312. return m.VolumeCapability
  4313. }
  4314. return nil
  4315. }
  4316. func (m *NodeExpandVolumeRequest) GetSecrets() map[string]string {
  4317. if m != nil {
  4318. return m.Secrets
  4319. }
  4320. return nil
  4321. }
  4322. type NodeExpandVolumeResponse struct {
  4323. // The capacity of the volume in bytes. This field is OPTIONAL.
  4324. CapacityBytes int64 `protobuf:"varint,1,opt,name=capacity_bytes,json=capacityBytes,proto3" json:"capacity_bytes,omitempty"`
  4325. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4326. XXX_unrecognized []byte `json:"-"`
  4327. XXX_sizecache int32 `json:"-"`
  4328. }
  4329. func (m *NodeExpandVolumeResponse) Reset() { *m = NodeExpandVolumeResponse{} }
  4330. func (m *NodeExpandVolumeResponse) String() string { return proto.CompactTextString(m) }
  4331. func (*NodeExpandVolumeResponse) ProtoMessage() {}
  4332. func (*NodeExpandVolumeResponse) Descriptor() ([]byte, []int) {
  4333. return fileDescriptor_9cdb00adce470e01, []int{59}
  4334. }
  4335. func (m *NodeExpandVolumeResponse) XXX_Unmarshal(b []byte) error {
  4336. return xxx_messageInfo_NodeExpandVolumeResponse.Unmarshal(m, b)
  4337. }
  4338. func (m *NodeExpandVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4339. return xxx_messageInfo_NodeExpandVolumeResponse.Marshal(b, m, deterministic)
  4340. }
  4341. func (m *NodeExpandVolumeResponse) XXX_Merge(src proto.Message) {
  4342. xxx_messageInfo_NodeExpandVolumeResponse.Merge(m, src)
  4343. }
  4344. func (m *NodeExpandVolumeResponse) XXX_Size() int {
  4345. return xxx_messageInfo_NodeExpandVolumeResponse.Size(m)
  4346. }
  4347. func (m *NodeExpandVolumeResponse) XXX_DiscardUnknown() {
  4348. xxx_messageInfo_NodeExpandVolumeResponse.DiscardUnknown(m)
  4349. }
  4350. var xxx_messageInfo_NodeExpandVolumeResponse proto.InternalMessageInfo
  4351. func (m *NodeExpandVolumeResponse) GetCapacityBytes() int64 {
  4352. if m != nil {
  4353. return m.CapacityBytes
  4354. }
  4355. return 0
  4356. }
  4357. var E_AlphaEnum = &proto.ExtensionDesc{
  4358. ExtendedType: (*descriptor.EnumOptions)(nil),
  4359. ExtensionType: (*bool)(nil),
  4360. Field: 1060,
  4361. Name: "csi.v1.alpha_enum",
  4362. Tag: "varint,1060,opt,name=alpha_enum",
  4363. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4364. }
  4365. var E_AlphaEnumValue = &proto.ExtensionDesc{
  4366. ExtendedType: (*descriptor.EnumValueOptions)(nil),
  4367. ExtensionType: (*bool)(nil),
  4368. Field: 1060,
  4369. Name: "csi.v1.alpha_enum_value",
  4370. Tag: "varint,1060,opt,name=alpha_enum_value",
  4371. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4372. }
  4373. var E_CsiSecret = &proto.ExtensionDesc{
  4374. ExtendedType: (*descriptor.FieldOptions)(nil),
  4375. ExtensionType: (*bool)(nil),
  4376. Field: 1059,
  4377. Name: "csi.v1.csi_secret",
  4378. Tag: "varint,1059,opt,name=csi_secret",
  4379. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4380. }
  4381. var E_AlphaField = &proto.ExtensionDesc{
  4382. ExtendedType: (*descriptor.FieldOptions)(nil),
  4383. ExtensionType: (*bool)(nil),
  4384. Field: 1060,
  4385. Name: "csi.v1.alpha_field",
  4386. Tag: "varint,1060,opt,name=alpha_field",
  4387. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4388. }
  4389. var E_AlphaMessage = &proto.ExtensionDesc{
  4390. ExtendedType: (*descriptor.MessageOptions)(nil),
  4391. ExtensionType: (*bool)(nil),
  4392. Field: 1060,
  4393. Name: "csi.v1.alpha_message",
  4394. Tag: "varint,1060,opt,name=alpha_message",
  4395. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4396. }
  4397. var E_AlphaMethod = &proto.ExtensionDesc{
  4398. ExtendedType: (*descriptor.MethodOptions)(nil),
  4399. ExtensionType: (*bool)(nil),
  4400. Field: 1060,
  4401. Name: "csi.v1.alpha_method",
  4402. Tag: "varint,1060,opt,name=alpha_method",
  4403. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4404. }
  4405. var E_AlphaService = &proto.ExtensionDesc{
  4406. ExtendedType: (*descriptor.ServiceOptions)(nil),
  4407. ExtensionType: (*bool)(nil),
  4408. Field: 1060,
  4409. Name: "csi.v1.alpha_service",
  4410. Tag: "varint,1060,opt,name=alpha_service",
  4411. Filename: "github.com/container-storage-interface/spec/csi.proto",
  4412. }
  4413. func init() {
  4414. proto.RegisterEnum("csi.v1.PluginCapability_Service_Type", PluginCapability_Service_Type_name, PluginCapability_Service_Type_value)
  4415. proto.RegisterEnum("csi.v1.PluginCapability_VolumeExpansion_Type", PluginCapability_VolumeExpansion_Type_name, PluginCapability_VolumeExpansion_Type_value)
  4416. proto.RegisterEnum("csi.v1.VolumeCapability_AccessMode_Mode", VolumeCapability_AccessMode_Mode_name, VolumeCapability_AccessMode_Mode_value)
  4417. proto.RegisterEnum("csi.v1.ControllerServiceCapability_RPC_Type", ControllerServiceCapability_RPC_Type_name, ControllerServiceCapability_RPC_Type_value)
  4418. proto.RegisterEnum("csi.v1.VolumeUsage_Unit", VolumeUsage_Unit_name, VolumeUsage_Unit_value)
  4419. proto.RegisterEnum("csi.v1.NodeServiceCapability_RPC_Type", NodeServiceCapability_RPC_Type_name, NodeServiceCapability_RPC_Type_value)
  4420. proto.RegisterType((*GetPluginInfoRequest)(nil), "csi.v1.GetPluginInfoRequest")
  4421. proto.RegisterType((*GetPluginInfoResponse)(nil), "csi.v1.GetPluginInfoResponse")
  4422. proto.RegisterMapType((map[string]string)(nil), "csi.v1.GetPluginInfoResponse.ManifestEntry")
  4423. proto.RegisterType((*GetPluginCapabilitiesRequest)(nil), "csi.v1.GetPluginCapabilitiesRequest")
  4424. proto.RegisterType((*GetPluginCapabilitiesResponse)(nil), "csi.v1.GetPluginCapabilitiesResponse")
  4425. proto.RegisterType((*PluginCapability)(nil), "csi.v1.PluginCapability")
  4426. proto.RegisterType((*PluginCapability_Service)(nil), "csi.v1.PluginCapability.Service")
  4427. proto.RegisterType((*PluginCapability_VolumeExpansion)(nil), "csi.v1.PluginCapability.VolumeExpansion")
  4428. proto.RegisterType((*ProbeRequest)(nil), "csi.v1.ProbeRequest")
  4429. proto.RegisterType((*ProbeResponse)(nil), "csi.v1.ProbeResponse")
  4430. proto.RegisterType((*CreateVolumeRequest)(nil), "csi.v1.CreateVolumeRequest")
  4431. proto.RegisterMapType((map[string]string)(nil), "csi.v1.CreateVolumeRequest.ParametersEntry")
  4432. proto.RegisterMapType((map[string]string)(nil), "csi.v1.CreateVolumeRequest.SecretsEntry")
  4433. proto.RegisterType((*VolumeContentSource)(nil), "csi.v1.VolumeContentSource")
  4434. proto.RegisterType((*VolumeContentSource_SnapshotSource)(nil), "csi.v1.VolumeContentSource.SnapshotSource")
  4435. proto.RegisterType((*VolumeContentSource_VolumeSource)(nil), "csi.v1.VolumeContentSource.VolumeSource")
  4436. proto.RegisterType((*CreateVolumeResponse)(nil), "csi.v1.CreateVolumeResponse")
  4437. proto.RegisterType((*VolumeCapability)(nil), "csi.v1.VolumeCapability")
  4438. proto.RegisterType((*VolumeCapability_BlockVolume)(nil), "csi.v1.VolumeCapability.BlockVolume")
  4439. proto.RegisterType((*VolumeCapability_MountVolume)(nil), "csi.v1.VolumeCapability.MountVolume")
  4440. proto.RegisterType((*VolumeCapability_AccessMode)(nil), "csi.v1.VolumeCapability.AccessMode")
  4441. proto.RegisterType((*CapacityRange)(nil), "csi.v1.CapacityRange")
  4442. proto.RegisterType((*Volume)(nil), "csi.v1.Volume")
  4443. proto.RegisterMapType((map[string]string)(nil), "csi.v1.Volume.VolumeContextEntry")
  4444. proto.RegisterType((*TopologyRequirement)(nil), "csi.v1.TopologyRequirement")
  4445. proto.RegisterType((*Topology)(nil), "csi.v1.Topology")
  4446. proto.RegisterMapType((map[string]string)(nil), "csi.v1.Topology.SegmentsEntry")
  4447. proto.RegisterType((*DeleteVolumeRequest)(nil), "csi.v1.DeleteVolumeRequest")
  4448. proto.RegisterMapType((map[string]string)(nil), "csi.v1.DeleteVolumeRequest.SecretsEntry")
  4449. proto.RegisterType((*DeleteVolumeResponse)(nil), "csi.v1.DeleteVolumeResponse")
  4450. proto.RegisterType((*ControllerPublishVolumeRequest)(nil), "csi.v1.ControllerPublishVolumeRequest")
  4451. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ControllerPublishVolumeRequest.SecretsEntry")
  4452. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ControllerPublishVolumeRequest.VolumeContextEntry")
  4453. proto.RegisterType((*ControllerPublishVolumeResponse)(nil), "csi.v1.ControllerPublishVolumeResponse")
  4454. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ControllerPublishVolumeResponse.PublishContextEntry")
  4455. proto.RegisterType((*ControllerUnpublishVolumeRequest)(nil), "csi.v1.ControllerUnpublishVolumeRequest")
  4456. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ControllerUnpublishVolumeRequest.SecretsEntry")
  4457. proto.RegisterType((*ControllerUnpublishVolumeResponse)(nil), "csi.v1.ControllerUnpublishVolumeResponse")
  4458. proto.RegisterType((*ValidateVolumeCapabilitiesRequest)(nil), "csi.v1.ValidateVolumeCapabilitiesRequest")
  4459. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ValidateVolumeCapabilitiesRequest.ParametersEntry")
  4460. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ValidateVolumeCapabilitiesRequest.SecretsEntry")
  4461. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ValidateVolumeCapabilitiesRequest.VolumeContextEntry")
  4462. proto.RegisterType((*ValidateVolumeCapabilitiesResponse)(nil), "csi.v1.ValidateVolumeCapabilitiesResponse")
  4463. proto.RegisterType((*ValidateVolumeCapabilitiesResponse_Confirmed)(nil), "csi.v1.ValidateVolumeCapabilitiesResponse.Confirmed")
  4464. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ValidateVolumeCapabilitiesResponse.Confirmed.ParametersEntry")
  4465. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ValidateVolumeCapabilitiesResponse.Confirmed.VolumeContextEntry")
  4466. proto.RegisterType((*ListVolumesRequest)(nil), "csi.v1.ListVolumesRequest")
  4467. proto.RegisterType((*ListVolumesResponse)(nil), "csi.v1.ListVolumesResponse")
  4468. proto.RegisterType((*ListVolumesResponse_VolumeStatus)(nil), "csi.v1.ListVolumesResponse.VolumeStatus")
  4469. proto.RegisterType((*ListVolumesResponse_Entry)(nil), "csi.v1.ListVolumesResponse.Entry")
  4470. proto.RegisterType((*ControllerGetVolumeRequest)(nil), "csi.v1.ControllerGetVolumeRequest")
  4471. proto.RegisterType((*ControllerGetVolumeResponse)(nil), "csi.v1.ControllerGetVolumeResponse")
  4472. proto.RegisterType((*ControllerGetVolumeResponse_VolumeStatus)(nil), "csi.v1.ControllerGetVolumeResponse.VolumeStatus")
  4473. proto.RegisterType((*GetCapacityRequest)(nil), "csi.v1.GetCapacityRequest")
  4474. proto.RegisterMapType((map[string]string)(nil), "csi.v1.GetCapacityRequest.ParametersEntry")
  4475. proto.RegisterType((*GetCapacityResponse)(nil), "csi.v1.GetCapacityResponse")
  4476. proto.RegisterType((*ControllerGetCapabilitiesRequest)(nil), "csi.v1.ControllerGetCapabilitiesRequest")
  4477. proto.RegisterType((*ControllerGetCapabilitiesResponse)(nil), "csi.v1.ControllerGetCapabilitiesResponse")
  4478. proto.RegisterType((*ControllerServiceCapability)(nil), "csi.v1.ControllerServiceCapability")
  4479. proto.RegisterType((*ControllerServiceCapability_RPC)(nil), "csi.v1.ControllerServiceCapability.RPC")
  4480. proto.RegisterType((*CreateSnapshotRequest)(nil), "csi.v1.CreateSnapshotRequest")
  4481. proto.RegisterMapType((map[string]string)(nil), "csi.v1.CreateSnapshotRequest.ParametersEntry")
  4482. proto.RegisterMapType((map[string]string)(nil), "csi.v1.CreateSnapshotRequest.SecretsEntry")
  4483. proto.RegisterType((*CreateSnapshotResponse)(nil), "csi.v1.CreateSnapshotResponse")
  4484. proto.RegisterType((*Snapshot)(nil), "csi.v1.Snapshot")
  4485. proto.RegisterType((*DeleteSnapshotRequest)(nil), "csi.v1.DeleteSnapshotRequest")
  4486. proto.RegisterMapType((map[string]string)(nil), "csi.v1.DeleteSnapshotRequest.SecretsEntry")
  4487. proto.RegisterType((*DeleteSnapshotResponse)(nil), "csi.v1.DeleteSnapshotResponse")
  4488. proto.RegisterType((*ListSnapshotsRequest)(nil), "csi.v1.ListSnapshotsRequest")
  4489. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ListSnapshotsRequest.SecretsEntry")
  4490. proto.RegisterType((*ListSnapshotsResponse)(nil), "csi.v1.ListSnapshotsResponse")
  4491. proto.RegisterType((*ListSnapshotsResponse_Entry)(nil), "csi.v1.ListSnapshotsResponse.Entry")
  4492. proto.RegisterType((*ControllerExpandVolumeRequest)(nil), "csi.v1.ControllerExpandVolumeRequest")
  4493. proto.RegisterMapType((map[string]string)(nil), "csi.v1.ControllerExpandVolumeRequest.SecretsEntry")
  4494. proto.RegisterType((*ControllerExpandVolumeResponse)(nil), "csi.v1.ControllerExpandVolumeResponse")
  4495. proto.RegisterType((*NodeStageVolumeRequest)(nil), "csi.v1.NodeStageVolumeRequest")
  4496. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodeStageVolumeRequest.PublishContextEntry")
  4497. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodeStageVolumeRequest.SecretsEntry")
  4498. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodeStageVolumeRequest.VolumeContextEntry")
  4499. proto.RegisterType((*NodeStageVolumeResponse)(nil), "csi.v1.NodeStageVolumeResponse")
  4500. proto.RegisterType((*NodeUnstageVolumeRequest)(nil), "csi.v1.NodeUnstageVolumeRequest")
  4501. proto.RegisterType((*NodeUnstageVolumeResponse)(nil), "csi.v1.NodeUnstageVolumeResponse")
  4502. proto.RegisterType((*NodePublishVolumeRequest)(nil), "csi.v1.NodePublishVolumeRequest")
  4503. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodePublishVolumeRequest.PublishContextEntry")
  4504. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodePublishVolumeRequest.SecretsEntry")
  4505. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodePublishVolumeRequest.VolumeContextEntry")
  4506. proto.RegisterType((*NodePublishVolumeResponse)(nil), "csi.v1.NodePublishVolumeResponse")
  4507. proto.RegisterType((*NodeUnpublishVolumeRequest)(nil), "csi.v1.NodeUnpublishVolumeRequest")
  4508. proto.RegisterType((*NodeUnpublishVolumeResponse)(nil), "csi.v1.NodeUnpublishVolumeResponse")
  4509. proto.RegisterType((*NodeGetVolumeStatsRequest)(nil), "csi.v1.NodeGetVolumeStatsRequest")
  4510. proto.RegisterType((*NodeGetVolumeStatsResponse)(nil), "csi.v1.NodeGetVolumeStatsResponse")
  4511. proto.RegisterType((*VolumeUsage)(nil), "csi.v1.VolumeUsage")
  4512. proto.RegisterType((*VolumeCondition)(nil), "csi.v1.VolumeCondition")
  4513. proto.RegisterType((*NodeGetCapabilitiesRequest)(nil), "csi.v1.NodeGetCapabilitiesRequest")
  4514. proto.RegisterType((*NodeGetCapabilitiesResponse)(nil), "csi.v1.NodeGetCapabilitiesResponse")
  4515. proto.RegisterType((*NodeServiceCapability)(nil), "csi.v1.NodeServiceCapability")
  4516. proto.RegisterType((*NodeServiceCapability_RPC)(nil), "csi.v1.NodeServiceCapability.RPC")
  4517. proto.RegisterType((*NodeGetInfoRequest)(nil), "csi.v1.NodeGetInfoRequest")
  4518. proto.RegisterType((*NodeGetInfoResponse)(nil), "csi.v1.NodeGetInfoResponse")
  4519. proto.RegisterType((*NodeExpandVolumeRequest)(nil), "csi.v1.NodeExpandVolumeRequest")
  4520. proto.RegisterMapType((map[string]string)(nil), "csi.v1.NodeExpandVolumeRequest.SecretsEntry")
  4521. proto.RegisterType((*NodeExpandVolumeResponse)(nil), "csi.v1.NodeExpandVolumeResponse")
  4522. proto.RegisterExtension(E_AlphaEnum)
  4523. proto.RegisterExtension(E_AlphaEnumValue)
  4524. proto.RegisterExtension(E_CsiSecret)
  4525. proto.RegisterExtension(E_AlphaField)
  4526. proto.RegisterExtension(E_AlphaMessage)
  4527. proto.RegisterExtension(E_AlphaMethod)
  4528. proto.RegisterExtension(E_AlphaService)
  4529. }
  4530. func init() {
  4531. proto.RegisterFile("github.com/container-storage-interface/spec/csi.proto", fileDescriptor_9cdb00adce470e01)
  4532. }
  4533. var fileDescriptor_9cdb00adce470e01 = []byte{
  4534. // 3797 bytes of a gzipped FileDescriptorProto
  4535. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x3b, 0x4b, 0x6c, 0x1b, 0x49,
  4536. 0x76, 0x6a, 0xfe, 0x24, 0x3d, 0x4a, 0x32, 0x5d, 0xfa, 0x98, 0x6e, 0x49, 0x96, 0xdc, 0x1e, 0x7b,
  4537. 0x65, 0x8f, 0x4d, 0xaf, 0xb5, 0x63, 0x23, 0x23, 0x7b, 0x76, 0x87, 0xa4, 0x68, 0x89, 0x6b, 0x8a,
  4538. 0xd4, 0x34, 0x29, 0x7b, 0xed, 0x64, 0xd0, 0xd3, 0x22, 0x4b, 0x74, 0x63, 0xc8, 0x6e, 0x4e, 0x77,
  4539. 0x53, 0x91, 0xe6, 0x92, 0x20, 0x41, 0x0e, 0x41, 0x2e, 0xb9, 0xed, 0xe4, 0xb6, 0x48, 0xf6, 0x98,
  4540. 0xc5, 0x22, 0x08, 0x82, 0x1c, 0x03, 0xe4, 0x18, 0x20, 0x9b, 0xdc, 0x12, 0xe4, 0xb2, 0xb7, 0x20,
  4541. 0x58, 0x24, 0xc0, 0x5c, 0x72, 0xc9, 0x21, 0x08, 0xba, 0xaa, 0xba, 0xd9, 0x5f, 0x7e, 0x2c, 0x19,
  4542. 0x73, 0xc8, 0x49, 0xec, 0x57, 0xef, 0xbd, 0x7a, 0x55, 0xf5, 0xde, 0xab, 0xf7, 0x29, 0xc1, 0xe3,
  4543. 0xb6, 0x62, 0xbe, 0xed, 0x1f, 0xe7, 0x9a, 0x5a, 0xf7, 0x61, 0x53, 0x53, 0x4d, 0x59, 0x51, 0xb1,
  4544. 0xfe, 0xc0, 0x30, 0x35, 0x5d, 0x6e, 0xe3, 0x07, 0x8a, 0x6a, 0x62, 0xfd, 0x44, 0x6e, 0xe2, 0x87,
  4545. 0x46, 0x0f, 0x37, 0x1f, 0x36, 0x0d, 0x25, 0xd7, 0xd3, 0x35, 0x53, 0x43, 0x29, 0xeb, 0xe7, 0xe9,
  4546. 0x23, 0x7e, 0xb3, 0xad, 0x69, 0xed, 0x0e, 0x7e, 0x48, 0xa0, 0xc7, 0xfd, 0x93, 0x87, 0x2d, 0x6c,
  4547. 0x34, 0x75, 0xa5, 0x67, 0x6a, 0x3a, 0xc5, 0xe4, 0x37, 0xfc, 0x18, 0xa6, 0xd2, 0xc5, 0x86, 0x29,
  4548. 0x77, 0x7b, 0x0c, 0xe1, 0x86, 0x1f, 0xe1, 0x77, 0x75, 0xb9, 0xd7, 0xc3, 0xba, 0x41, 0xc7, 0x85,
  4549. 0x15, 0x58, 0xda, 0xc3, 0xe6, 0x61, 0xa7, 0xdf, 0x56, 0xd4, 0xb2, 0x7a, 0xa2, 0x89, 0xf8, 0xab,
  4550. 0x3e, 0x36, 0x4c, 0xe1, 0x5f, 0x39, 0x58, 0xf6, 0x0d, 0x18, 0x3d, 0x4d, 0x35, 0x30, 0x42, 0x90,
  4551. 0x50, 0xe5, 0x2e, 0xce, 0x72, 0x9b, 0xdc, 0xd6, 0xac, 0x48, 0x7e, 0xa3, 0xdb, 0xb0, 0x70, 0x8a,
  4552. 0xd5, 0x96, 0xa6, 0x4b, 0xa7, 0x58, 0x37, 0x14, 0x4d, 0xcd, 0xc6, 0xc8, 0xe8, 0x3c, 0x85, 0xbe,
  4553. 0xa4, 0x40, 0xb4, 0x07, 0x33, 0x5d, 0x59, 0x55, 0x4e, 0xb0, 0x61, 0x66, 0xe3, 0x9b, 0xf1, 0xad,
  4554. 0xf4, 0xf6, 0x87, 0x39, 0xba, 0xd4, 0x5c, 0xe8, 0x5c, 0xb9, 0x03, 0x86, 0x5d, 0x52, 0x4d, 0xfd,
  4555. 0x5c, 0x74, 0x88, 0xf9, 0xa7, 0x30, 0xef, 0x19, 0x42, 0x19, 0x88, 0x7f, 0x89, 0xcf, 0x99, 0x4c,
  4556. 0xd6, 0x4f, 0xb4, 0x04, 0xc9, 0x53, 0xb9, 0xd3, 0xc7, 0x4c, 0x12, 0xfa, 0xb1, 0x13, 0xfb, 0x2d,
  4557. 0x4e, 0xb8, 0x01, 0x6b, 0xce, 0x6c, 0x45, 0xb9, 0x27, 0x1f, 0x2b, 0x1d, 0xc5, 0x54, 0xb0, 0x61,
  4558. 0x2f, 0xfd, 0x73, 0x58, 0x8f, 0x18, 0x67, 0x3b, 0xf0, 0x0c, 0xe6, 0x9a, 0x2e, 0x78, 0x96, 0x23,
  4559. 0x4b, 0xc9, 0xda, 0x4b, 0xf1, 0x51, 0x9e, 0x8b, 0x1e, 0x6c, 0xe1, 0x57, 0x71, 0xc8, 0xf8, 0x51,
  4560. 0xd0, 0x33, 0x98, 0x36, 0xb0, 0x7e, 0xaa, 0x34, 0xe9, 0xbe, 0xa6, 0xb7, 0x37, 0xa3, 0xb8, 0xe5,
  4561. 0xea, 0x14, 0x6f, 0x7f, 0x4a, 0xb4, 0x49, 0xd0, 0x11, 0x64, 0x4e, 0xb5, 0x4e, 0xbf, 0x8b, 0x25,
  4562. 0x7c, 0xd6, 0x93, 0x55, 0xe7, 0x00, 0xd2, 0xdb, 0x5b, 0x91, 0x6c, 0x5e, 0x12, 0x82, 0x92, 0x8d,
  4563. 0xbf, 0x3f, 0x25, 0x5e, 0x39, 0xf5, 0x82, 0xf8, 0x9f, 0x72, 0x30, 0xcd, 0x66, 0x43, 0x1f, 0x43,
  4564. 0xc2, 0x3c, 0xef, 0x51, 0xe9, 0x16, 0xb6, 0x6f, 0x8f, 0x92, 0x2e, 0xd7, 0x38, 0xef, 0x61, 0x91,
  4565. 0x90, 0x08, 0x9f, 0x41, 0xc2, 0xfa, 0x42, 0x69, 0x98, 0x3e, 0xaa, 0xbe, 0xa8, 0xd6, 0x5e, 0x55,
  4566. 0x33, 0x53, 0x68, 0x05, 0x50, 0xb1, 0x56, 0x6d, 0x88, 0xb5, 0x4a, 0xa5, 0x24, 0x4a, 0xf5, 0x92,
  4567. 0xf8, 0xb2, 0x5c, 0x2c, 0x65, 0x38, 0xf4, 0x01, 0x6c, 0xbe, 0xac, 0x55, 0x8e, 0x0e, 0x4a, 0x52,
  4568. 0xbe, 0x58, 0x2c, 0xd5, 0xeb, 0xe5, 0x42, 0xb9, 0x52, 0x6e, 0xbc, 0x96, 0x8a, 0xb5, 0x6a, 0xbd,
  4569. 0x21, 0xe6, 0xcb, 0xd5, 0x46, 0x3d, 0x13, 0xe3, 0xff, 0x80, 0x83, 0x2b, 0xbe, 0x05, 0xa0, 0xbc,
  4570. 0x47, 0xc2, 0x07, 0xe3, 0x2e, 0xdc, 0x2d, 0xe9, 0xfd, 0x30, 0x49, 0x01, 0x52, 0xb5, 0x6a, 0xa5,
  4571. 0x5c, 0xb5, 0xa4, 0x4b, 0xc3, 0x74, 0xed, 0xf9, 0x73, 0xf2, 0x11, 0x2b, 0xa4, 0xe8, 0x84, 0xc2,
  4572. 0x02, 0xcc, 0x1d, 0xea, 0xda, 0x31, 0xb6, 0xf5, 0x27, 0x0f, 0xf3, 0xec, 0x9b, 0xe9, 0xcb, 0xf7,
  4573. 0x21, 0xa9, 0x63, 0xb9, 0x75, 0xce, 0x8e, 0x96, 0xcf, 0x51, 0x9b, 0xcc, 0xd9, 0x36, 0x99, 0x2b,
  4574. 0x68, 0x5a, 0xe7, 0xa5, 0xa5, 0x9f, 0x22, 0x45, 0x14, 0xbe, 0x4d, 0xc0, 0x62, 0x51, 0xc7, 0xb2,
  4575. 0x89, 0xa9, 0xb4, 0x8c, 0x75, 0xa8, 0xed, 0x3d, 0x83, 0x05, 0x4b, 0xbf, 0x9a, 0x8a, 0x79, 0x2e,
  4576. 0xe9, 0xb2, 0xda, 0xc6, 0xec, 0xe8, 0x97, 0xed, 0x1d, 0x28, 0xb2, 0x51, 0xd1, 0x1a, 0x14, 0xe7,
  4577. 0x9b, 0xee, 0x4f, 0x54, 0x86, 0x45, 0xa6, 0x3a, 0x1e, 0x95, 0x8e, 0x7b, 0x55, 0x9a, 0x4a, 0xe1,
  4578. 0x52, 0x69, 0x74, 0xea, 0x85, 0x28, 0xd8, 0x40, 0x2f, 0x00, 0x7a, 0xb2, 0x2e, 0x77, 0xb1, 0x89,
  4579. 0x75, 0x23, 0x9b, 0xf0, 0xda, 0x77, 0xc8, 0x6a, 0x72, 0x87, 0x0e, 0x36, 0xb5, 0x6f, 0x17, 0x39,
  4580. 0xda, 0xb3, 0x0c, 0xa2, 0xa9, 0x63, 0xd3, 0xc8, 0x26, 0x09, 0xa7, 0xad, 0x61, 0x9c, 0xea, 0x14,
  4581. 0x95, 0xb0, 0x29, 0xc4, 0xbf, 0x29, 0x70, 0xa2, 0x4d, 0x8d, 0x6a, 0xb0, 0x6c, 0x2f, 0x50, 0x53,
  4582. 0x4d, 0xac, 0x9a, 0x92, 0xa1, 0xf5, 0xf5, 0x26, 0xce, 0xa6, 0xc8, 0x2e, 0xad, 0xfa, 0x96, 0x48,
  4583. 0x71, 0xea, 0x04, 0x45, 0x64, 0x5b, 0xe3, 0x01, 0xa2, 0x37, 0xc0, 0xcb, 0xcd, 0x26, 0x36, 0x0c,
  4584. 0x85, 0xee, 0x85, 0xa4, 0xe3, 0xaf, 0xfa, 0x8a, 0x8e, 0xbb, 0x58, 0x35, 0x8d, 0xec, 0xb4, 0x97,
  4585. 0x6b, 0x43, 0xeb, 0x69, 0x1d, 0xad, 0x7d, 0x2e, 0x0e, 0x70, 0xc4, 0xeb, 0x1e, 0x72, 0xd7, 0x88,
  4586. 0xc1, 0x7f, 0x02, 0x57, 0x7c, 0x9b, 0x32, 0x89, 0x67, 0xe3, 0x77, 0x60, 0xce, 0xbd, 0x13, 0x13,
  4587. 0x79, 0xc5, 0x3f, 0x89, 0xc1, 0x62, 0xc8, 0x1e, 0xa0, 0x7d, 0x98, 0x31, 0x54, 0xb9, 0x67, 0xbc,
  4588. 0xd5, 0x4c, 0xa6, 0xbf, 0xf7, 0x86, 0x6c, 0x59, 0xae, 0xce, 0x70, 0xe9, 0xe7, 0xfe, 0x94, 0xe8,
  4589. 0x50, 0xa3, 0x02, 0xa4, 0xe8, 0x7e, 0xfa, 0x7d, 0x53, 0x18, 0x1f, 0x0a, 0x73, 0xb8, 0x30, 0x4a,
  4590. 0xfe, 0x11, 0x2c, 0x78, 0x67, 0x40, 0x1b, 0x90, 0xb6, 0x67, 0x90, 0x94, 0x16, 0x5b, 0x2b, 0xd8,
  4591. 0xa0, 0x72, 0x8b, 0xff, 0x10, 0xe6, 0xdc, 0xcc, 0xd0, 0x2a, 0xcc, 0x32, 0x85, 0x70, 0xd0, 0x67,
  4592. 0x28, 0xa0, 0xdc, 0x72, 0x6c, 0xfa, 0x87, 0xb0, 0xe4, 0xd5, 0x33, 0x66, 0xca, 0x77, 0x9c, 0x35,
  4593. 0xd0, 0xbd, 0x58, 0xf0, 0xae, 0xc1, 0x96, 0x53, 0xf8, 0x79, 0x12, 0x32, 0x7e, 0xa3, 0x41, 0xcf,
  4594. 0x20, 0x79, 0xdc, 0xd1, 0x9a, 0x5f, 0x32, 0xda, 0x0f, 0xa2, 0xac, 0x2b, 0x57, 0xb0, 0xb0, 0x28,
  4595. 0x74, 0x7f, 0x4a, 0xa4, 0x44, 0x16, 0x75, 0x57, 0xeb, 0xab, 0x26, 0xdb, 0xbd, 0x68, 0xea, 0x03,
  4596. 0x0b, 0x6b, 0x40, 0x4d, 0x88, 0xd0, 0x2e, 0xa4, 0xa9, 0xda, 0x49, 0x5d, 0xad, 0x85, 0xb3, 0x71,
  4597. 0xc2, 0xe3, 0x56, 0x24, 0x8f, 0x3c, 0xc1, 0x3d, 0xd0, 0x5a, 0x58, 0x04, 0xd9, 0xf9, 0xcd, 0xcf,
  4598. 0x43, 0xda, 0x25, 0x1b, 0xff, 0x35, 0xa4, 0x5d, 0x93, 0xa1, 0x6b, 0x30, 0x7d, 0x62, 0x48, 0x8e,
  4599. 0x13, 0x9e, 0x15, 0x53, 0x27, 0x06, 0xf1, 0xa7, 0x1b, 0x90, 0x26, 0x52, 0x48, 0x27, 0x1d, 0xb9,
  4600. 0x6d, 0x64, 0x63, 0x9b, 0x71, 0xeb, 0x8c, 0x08, 0xe8, 0xb9, 0x05, 0x41, 0x8f, 0x80, 0x39, 0x14,
  4601. 0x89, 0xe2, 0xb5, 0x75, 0xad, 0xdf, 0x23, 0x42, 0xce, 0x16, 0xe2, 0x3f, 0x2b, 0x70, 0x22, 0xbb,
  4602. 0xdf, 0xc8, 0x6c, 0x7b, 0xd6, 0x20, 0xff, 0xd7, 0x31, 0x80, 0x81, 0x94, 0xe8, 0x19, 0x24, 0xc8,
  4603. 0xc2, 0xa8, 0xf7, 0xdf, 0x1a, 0x63, 0x61, 0x39, 0xb2, 0x3a, 0x42, 0x25, 0xfc, 0x3b, 0x07, 0x09,
  4604. 0xc2, 0xc6, 0x7f, 0x47, 0xd5, 0xcb, 0xd5, 0xbd, 0x4a, 0x49, 0xaa, 0xd6, 0x76, 0x4b, 0xd2, 0x2b,
  4605. 0xb1, 0xdc, 0x28, 0x89, 0x19, 0x0e, 0xad, 0xc2, 0x35, 0x37, 0x5c, 0x2c, 0xe5, 0x77, 0x4b, 0xa2,
  4606. 0x54, 0xab, 0x56, 0x5e, 0x67, 0x62, 0x88, 0x87, 0x95, 0x83, 0xa3, 0x4a, 0xa3, 0x1c, 0x1c, 0x8b,
  4607. 0xa3, 0x35, 0xc8, 0xba, 0xc6, 0x18, 0x0f, 0xc6, 0x36, 0x61, 0xb1, 0x75, 0x8d, 0xd2, 0x9f, 0x6c,
  4608. 0x30, 0x89, 0x04, 0xb8, 0xee, 0x9e, 0xd3, 0x4b, 0x9b, 0xe2, 0xad, 0x4d, 0x42, 0x37, 0x21, 0xeb,
  4609. 0xc6, 0xf1, 0x70, 0x98, 0x26, 0x28, 0x85, 0x79, 0x47, 0x0d, 0x88, 0x9a, 0xbf, 0x82, 0x79, 0xcf,
  4610. 0xed, 0x60, 0x05, 0x72, 0xcc, 0x9d, 0xb5, 0xa4, 0xe3, 0x73, 0x93, 0x04, 0x37, 0xdc, 0x56, 0x5c,
  4611. 0x9c, 0xb7, 0xa1, 0x05, 0x0b, 0x68, 0x1d, 0x68, 0x47, 0xe9, 0x2a, 0x26, 0xc3, 0x89, 0x11, 0x1c,
  4612. 0x20, 0x20, 0x82, 0x20, 0xfc, 0x3a, 0x06, 0x29, 0xa6, 0x15, 0xb7, 0x5d, 0xf7, 0x93, 0x87, 0xa5,
  4613. 0x0d, 0xa5, 0x2c, 0x3d, 0x66, 0x19, 0xf3, 0x9a, 0x25, 0xda, 0x87, 0x05, 0xb7, 0x13, 0x3f, 0xb3,
  4614. 0xc3, 0xc7, 0x9b, 0xde, 0x73, 0x76, 0x7b, 0x92, 0x33, 0x16, 0x34, 0xce, 0x9f, 0xba, 0x61, 0xa8,
  4615. 0x00, 0x0b, 0xbe, 0x7b, 0x20, 0x31, 0xfa, 0x1e, 0x98, 0x6f, 0x7a, 0x5c, 0x62, 0x1e, 0x16, 0x6d,
  4616. 0x17, 0xde, 0xc1, 0x92, 0xc9, 0x5c, 0x3c, 0xbb, 0xa7, 0x32, 0x01, 0xd7, 0x8f, 0x06, 0xc8, 0x36,
  4617. 0x8c, 0xff, 0x14, 0x50, 0x50, 0xd6, 0x89, 0xfc, 0x75, 0x1f, 0x16, 0x43, 0x2e, 0x17, 0x94, 0x83,
  4618. 0x59, 0x72, 0x54, 0x86, 0x62, 0x62, 0x16, 0x98, 0x06, 0x25, 0x1a, 0xa0, 0x58, 0xf8, 0x3d, 0x1d,
  4619. 0x9f, 0x60, 0x5d, 0xc7, 0x2d, 0x62, 0x98, 0xa1, 0xf8, 0x0e, 0x8a, 0xf0, 0x87, 0x1c, 0xcc, 0xd8,
  4620. 0x70, 0xb4, 0x03, 0x33, 0x06, 0x6e, 0xd3, 0x8b, 0x8f, 0xce, 0x75, 0xc3, 0x4f, 0x9b, 0xab, 0x33,
  4621. 0x04, 0x16, 0xc2, 0xdb, 0xf8, 0x56, 0x08, 0xef, 0x19, 0x9a, 0x68, 0xf1, 0x7f, 0xcb, 0xc1, 0xe2,
  4622. 0x2e, 0xee, 0x60, 0x7f, 0x7c, 0x34, 0xcc, 0xb7, 0xbb, 0x43, 0x8a, 0x98, 0x37, 0xa4, 0x08, 0x61,
  4623. 0x35, 0x24, 0xa4, 0xb8, 0xd0, 0x35, 0xbb, 0x02, 0x4b, 0xde, 0xd9, 0xe8, 0xc5, 0x22, 0xfc, 0x57,
  4624. 0x1c, 0x6e, 0x58, 0xba, 0xa0, 0x6b, 0x9d, 0x0e, 0xd6, 0x0f, 0xfb, 0xc7, 0x1d, 0xc5, 0x78, 0x3b,
  4625. 0xc1, 0xe2, 0xae, 0xc1, 0xb4, 0xaa, 0xb5, 0x5c, 0xc6, 0x93, 0xb2, 0x3e, 0xcb, 0x2d, 0x54, 0x82,
  4626. 0xab, 0xfe, 0x00, 0xef, 0x9c, 0xb9, 0xff, 0xe8, 0xf0, 0x2e, 0x73, 0xea, 0xbf, 0xbb, 0x78, 0x98,
  4627. 0xb1, 0x42, 0x53, 0x4d, 0xed, 0x9c, 0x13, 0x8b, 0x99, 0x11, 0x9d, 0x6f, 0x24, 0xfa, 0x63, 0xb5,
  4628. 0x1f, 0x38, 0xb1, 0xda, 0xd0, 0x15, 0x0d, 0x0b, 0xdb, 0xbe, 0x08, 0x58, 0x7c, 0x8a, 0xb0, 0xfe,
  4629. 0x78, 0x4c, 0xd6, 0x23, 0x3d, 0xc1, 0x45, 0x4e, 0xf1, 0x12, 0xcc, 0xf7, 0x1f, 0x38, 0xd8, 0x88,
  4630. 0x5c, 0x02, 0x0b, 0x36, 0x5a, 0x70, 0xa5, 0x47, 0x07, 0x9c, 0x4d, 0xa0, 0x56, 0xf6, 0x74, 0xe4,
  4631. 0x26, 0xb0, 0xfc, 0x99, 0x41, 0x3d, 0xdb, 0xb0, 0xd0, 0xf3, 0x00, 0xf9, 0x3c, 0x2c, 0x86, 0xa0,
  4632. 0x4d, 0xb4, 0x98, 0xdf, 0x70, 0xb0, 0x39, 0x10, 0xe5, 0x48, 0xed, 0x5d, 0x9e, 0xfa, 0x36, 0x06,
  4633. 0xba, 0x45, 0x5d, 0xfe, 0xe3, 0xe0, 0xda, 0xc3, 0x27, 0x7c, 0x5f, 0x16, 0x7c, 0x0b, 0x6e, 0x0e,
  4634. 0x99, 0x9a, 0x99, 0xf3, 0xaf, 0x13, 0x70, 0xf3, 0xa5, 0xdc, 0x51, 0x5a, 0x4e, 0x08, 0x19, 0x52,
  4635. 0x69, 0x18, 0xbe, 0x25, 0xcd, 0x80, 0x05, 0x50, 0xaf, 0xf5, 0xcc, 0xb1, 0xda, 0x51, 0xfc, 0xc7,
  4636. 0xb8, 0x0e, 0x2f, 0x31, 0xfd, 0x7b, 0x1d, 0x92, 0xfe, 0x7d, 0x3c, 0xbe, 0xac, 0xc3, 0x92, 0xc1,
  4637. 0x23, 0xbf, 0x83, 0x79, 0x32, 0x3e, 0xdf, 0x21, 0x5a, 0x70, 0x61, 0x2b, 0xfe, 0x2e, 0xf3, 0xb5,
  4638. 0xbf, 0x4f, 0x80, 0x30, 0x6c, 0xf5, 0xcc, 0x87, 0x88, 0x30, 0xdb, 0xd4, 0xd4, 0x13, 0x45, 0xef,
  4639. 0xe2, 0x16, 0xcb, 0x3b, 0x3e, 0x1a, 0x67, 0xf3, 0x98, 0x03, 0x29, 0xda, 0xb4, 0xe2, 0x80, 0x0d,
  4640. 0xca, 0xc2, 0x74, 0x17, 0x1b, 0x86, 0xdc, 0xb6, 0xc5, 0xb2, 0x3f, 0xf9, 0x5f, 0xc4, 0x61, 0xd6,
  4641. 0x21, 0x41, 0x6a, 0x40, 0x83, 0xa9, 0xfb, 0xda, 0x7b, 0x17, 0x01, 0xde, 0x5d, 0x99, 0x63, 0xef,
  4642. 0xa0, 0xcc, 0x2d, 0x8f, 0x32, 0x53, 0x73, 0xd8, 0x7d, 0x27, 0xb1, 0x87, 0xe8, 0xf5, 0x77, 0xae,
  4643. 0x80, 0xc2, 0xef, 0x00, 0xaa, 0x28, 0x06, 0xcb, 0xdf, 0x1c, 0xb7, 0x64, 0xa5, 0x6b, 0xf2, 0x99,
  4644. 0x84, 0x55, 0x53, 0x57, 0x58, 0xb8, 0x9e, 0x14, 0xa1, 0x2b, 0x9f, 0x95, 0x28, 0xc4, 0x0a, 0xe9,
  4645. 0x0d, 0x53, 0xd6, 0x4d, 0x45, 0x6d, 0x4b, 0xa6, 0xf6, 0x25, 0x76, 0xca, 0xbd, 0x36, 0xb4, 0x61,
  4646. 0x01, 0x85, 0xff, 0x8c, 0xc1, 0xa2, 0x87, 0x3d, 0xd3, 0xc9, 0xa7, 0x30, 0x3d, 0xe0, 0xed, 0x09,
  4647. 0xe3, 0x43, 0xb0, 0x73, 0x74, 0xdb, 0x6c, 0x0a, 0xb4, 0x0e, 0xa0, 0xe2, 0x33, 0xd3, 0x33, 0xef,
  4648. 0xac, 0x05, 0x21, 0x73, 0xf2, 0x7f, 0xc4, 0x39, 0xe9, 0xbe, 0x29, 0x9b, 0x7d, 0x03, 0xdd, 0x07,
  4649. 0xc4, 0x5c, 0x34, 0x6e, 0x49, 0xec, 0x8e, 0xa1, 0xf3, 0xce, 0x8a, 0x19, 0x67, 0xa4, 0x4a, 0x6e,
  4650. 0x1b, 0x03, 0xed, 0x39, 0x95, 0xd4, 0xa6, 0xa6, 0xb6, 0x14, 0x73, 0x50, 0x49, 0xbd, 0x16, 0x48,
  4651. 0x10, 0xe8, 0x30, 0xcd, 0x4f, 0xaf, 0x9c, 0x7a, 0xa1, 0xfc, 0x57, 0x90, 0xa4, 0xc7, 0x31, 0x66,
  4652. 0xc5, 0x00, 0x7d, 0x0a, 0x29, 0x83, 0x48, 0xec, 0xaf, 0x8e, 0x84, 0xed, 0x89, 0x7b, 0x85, 0x22,
  4653. 0xa3, 0x13, 0x7e, 0x08, 0xfc, 0xe0, 0x62, 0xda, 0xc3, 0xe6, 0xf8, 0xd7, 0xef, 0x8e, 0xb5, 0x06,
  4654. 0xe1, 0xa7, 0x31, 0x58, 0x0d, 0x65, 0x30, 0x59, 0xed, 0x03, 0xed, 0xfb, 0x56, 0xf2, 0xfd, 0xe0,
  4655. 0x8d, 0x1d, 0x60, 0x1e, 0xba, 0x22, 0xfe, 0xf7, 0x2f, 0x76, 0x98, 0x85, 0x89, 0x0f, 0x33, 0x70,
  4656. 0x8e, 0x74, 0x67, 0x7e, 0x11, 0x03, 0xb4, 0x87, 0x4d, 0x27, 0x55, 0x66, 0x5b, 0x1a, 0xe1, 0x6f,
  4657. 0xb8, 0x77, 0xf0, 0x37, 0x3f, 0xf6, 0xf8, 0x1b, 0xea, 0xb1, 0xee, 0xb9, 0x7a, 0x23, 0xbe, 0xa9,
  4658. 0x87, 0xde, 0x96, 0x11, 0xe9, 0x29, 0x8d, 0xf9, 0xc7, 0x4b, 0x4f, 0x2f, 0xe8, 0x56, 0xfe, 0x83,
  4659. 0x83, 0x45, 0x8f, 0xd0, 0x4c, 0x83, 0x1e, 0x00, 0x92, 0x4f, 0x65, 0xa5, 0x23, 0x5b, 0x82, 0xd9,
  4660. 0xe9, 0x3f, 0x2b, 0x07, 0x5c, 0x75, 0x46, 0x6c, 0x32, 0x74, 0x08, 0x8b, 0x5d, 0xf9, 0x4c, 0xe9,
  4661. 0xf6, 0xbb, 0x12, 0xdb, 0x67, 0x43, 0xf9, 0xda, 0xae, 0x1e, 0xae, 0x06, 0xaa, 0xe8, 0x65, 0xd5,
  4662. 0x7c, 0xf2, 0x11, 0x29, 0xa3, 0x53, 0x9b, 0xbc, 0xca, 0x88, 0x99, 0x06, 0x29, 0x5f, 0x63, 0xc2,
  4663. 0x51, 0x51, 0x03, 0x1c, 0xe3, 0x63, 0x73, 0xa4, 0xc4, 0x03, 0x8e, 0x82, 0xe0, 0x8e, 0x7c, 0xd9,
  4664. 0x9a, 0xfd, 0x0d, 0xa5, 0x8e, 0x3b, 0x62, 0x0c, 0xe0, 0xb0, 0xbd, 0xd9, 0x0b, 0x6d, 0x2a, 0xdd,
  4665. 0x0a, 0xda, 0x0e, 0xeb, 0xb0, 0x44, 0xf6, 0x97, 0xfe, 0x37, 0xee, 0x36, 0xe3, 0x00, 0x36, 0x7a,
  4666. 0x0a, 0x71, 0xbd, 0xd7, 0x64, 0x36, 0xfc, 0xbd, 0x31, 0xf8, 0xe7, 0xc4, 0xc3, 0xe2, 0xfe, 0x94,
  4667. 0x68, 0x51, 0xf1, 0x7f, 0x16, 0x87, 0xb8, 0x78, 0x58, 0x44, 0x9f, 0x7a, 0x9a, 0x2d, 0xf7, 0xc7,
  4668. 0xe4, 0xe2, 0xee, 0xb5, 0xfc, 0x53, 0x2c, 0xac, 0xd9, 0x92, 0x85, 0xa5, 0xa2, 0x58, 0xca, 0x37,
  4669. 0x4a, 0xd2, 0x6e, 0xa9, 0x52, 0x6a, 0x94, 0x24, 0xda, 0x0c, 0xca, 0x70, 0x68, 0x0d, 0xb2, 0x87,
  4670. 0x47, 0x85, 0x4a, 0xb9, 0xbe, 0x2f, 0x1d, 0x55, 0xed, 0x5f, 0x6c, 0x34, 0x86, 0x32, 0x30, 0x57,
  4671. 0x29, 0xd7, 0x1b, 0x0c, 0x50, 0xcf, 0xc4, 0x2d, 0xc8, 0x5e, 0xa9, 0x21, 0x15, 0xf3, 0x87, 0xf9,
  4672. 0x62, 0xb9, 0xf1, 0x3a, 0x93, 0x40, 0x3c, 0xac, 0x78, 0x79, 0xd7, 0xab, 0xf9, 0xc3, 0xfa, 0x7e,
  4673. 0xad, 0x91, 0x49, 0x22, 0x04, 0x0b, 0x84, 0xde, 0x06, 0xd5, 0x33, 0x29, 0x8b, 0x43, 0xb1, 0x52,
  4674. 0xab, 0x3a, 0x32, 0x4c, 0xa3, 0x25, 0xc8, 0xd8, 0x33, 0x8b, 0xa5, 0xfc, 0x2e, 0xa9, 0xea, 0xcd,
  4675. 0xa0, 0xab, 0x30, 0x5f, 0xfa, 0xc9, 0x61, 0xbe, 0xba, 0x6b, 0x23, 0xce, 0xa2, 0x4d, 0x58, 0x73,
  4676. 0x8b, 0x23, 0x31, 0xaa, 0xd2, 0x2e, 0xa9, 0xcc, 0xd5, 0x33, 0x80, 0xae, 0x43, 0x86, 0xf5, 0xb9,
  4677. 0x8a, 0xb5, 0xea, 0x6e, 0xb9, 0x51, 0xae, 0x55, 0x33, 0x69, 0x5a, 0xc6, 0x5b, 0x04, 0xb0, 0x24,
  4678. 0x67, 0xcc, 0xe6, 0x46, 0xd7, 0xf6, 0xe6, 0x69, 0x6d, 0xcf, 0xae, 0x5d, 0xff, 0x26, 0x06, 0xcb,
  4679. 0xb4, 0x78, 0x6d, 0x97, 0xca, 0x6d, 0x87, 0xb5, 0x05, 0x19, 0x5a, 0xf4, 0x92, 0xfc, 0x57, 0xc1,
  4680. 0x02, 0x85, 0xbf, 0xb4, 0x93, 0x0f, 0xbb, 0xd1, 0x14, 0x73, 0x35, 0x9a, 0xca, 0xfe, 0x54, 0xec,
  4681. 0x9e, 0xb7, 0x25, 0xe3, 0x9b, 0x6d, 0x58, 0x76, 0x7f, 0x10, 0x92, 0x2b, 0x3c, 0x18, 0xce, 0x6d,
  4682. 0x58, 0x1c, 0x75, 0x91, 0x54, 0xfe, 0x82, 0xae, 0xee, 0x39, 0xac, 0xf8, 0xe5, 0x65, 0x06, 0x7d,
  4683. 0x3f, 0xd0, 0x38, 0x71, 0x7c, 0xaf, 0x83, 0xeb, 0x60, 0x08, 0xff, 0xc2, 0xc1, 0x8c, 0x0d, 0xb6,
  4684. 0x62, 0x1c, 0xcb, 0x2f, 0x79, 0xca, 0xa5, 0xb3, 0x16, 0xc4, 0xa9, 0xbe, 0xba, 0x5b, 0x1e, 0x31,
  4685. 0x7f, 0xcb, 0x23, 0xf4, 0x9c, 0xe3, 0xa1, 0xe7, 0xfc, 0x23, 0x98, 0x6f, 0x5a, 0xe2, 0x2b, 0x9a,
  4686. 0x2a, 0x99, 0x4a, 0xd7, 0xae, 0x86, 0x06, 0x5b, 0x94, 0x0d, 0xfb, 0x5d, 0x81, 0x38, 0x67, 0x13,
  4687. 0x58, 0x20, 0xb4, 0x09, 0x73, 0xa4, 0x65, 0x29, 0x99, 0x9a, 0xd4, 0x37, 0x70, 0x36, 0x49, 0x6a,
  4688. 0x43, 0x40, 0x60, 0x0d, 0xed, 0xc8, 0xc0, 0xc2, 0xdf, 0x71, 0xb0, 0x4c, 0x4b, 0x5e, 0x7e, 0x75,
  4689. 0x1c, 0xd5, 0xba, 0x71, 0x6b, 0x9c, 0xef, 0x4a, 0x0c, 0x65, 0xf8, 0xbe, 0x32, 0xfe, 0x2c, 0xac,
  4690. 0xf8, 0xe7, 0x63, 0x69, 0xfe, 0x2f, 0x63, 0xb0, 0x64, 0xc5, 0x67, 0xf6, 0xc0, 0x65, 0x87, 0xd0,
  4691. 0x13, 0x9c, 0xa4, 0x6f, 0x33, 0x13, 0x81, 0xcd, 0xdc, 0xf7, 0x27, 0xd1, 0x77, 0xdd, 0x11, 0xa6,
  4692. 0x7f, 0x05, 0xef, 0x6b, 0x2f, 0xff, 0x92, 0x83, 0x65, 0xdf, 0x7c, 0xcc, 0x5e, 0x3e, 0xf1, 0x67,
  4693. 0x05, 0xb7, 0x22, 0xe4, 0x7b, 0xa7, 0xbc, 0xe0, 0xb1, 0x1d, 0x8f, 0x4f, 0x66, 0x96, 0xff, 0x1c,
  4694. 0x83, 0xf5, 0xc1, 0xa5, 0x46, 0x1e, 0x0d, 0xb4, 0x26, 0x28, 0x6b, 0x5d, 0xac, 0x37, 0xff, 0x99,
  4695. 0xdf, 0xe1, 0x6e, 0x07, 0xef, 0xd9, 0x10, 0x91, 0x86, 0x39, 0xde, 0xd0, 0x6a, 0x70, 0x62, 0xd2,
  4696. 0x6a, 0xf0, 0x85, 0x34, 0xe0, 0xf7, 0xdc, 0x85, 0x6e, 0xaf, 0xf8, 0x4c, 0x13, 0xc6, 0xec, 0x18,
  4697. 0x3d, 0x81, 0x6b, 0x24, 0x05, 0x70, 0xde, 0xbc, 0xd8, 0x9d, 0x78, 0xea, 0x12, 0x67, 0xc4, 0x65,
  4698. 0x6b, 0xd8, 0x79, 0xe8, 0xc1, 0xba, 0x24, 0x2d, 0xe1, 0xdb, 0x04, 0xac, 0x58, 0x29, 0x42, 0xdd,
  4699. 0x94, 0xdb, 0x93, 0xf4, 0x0f, 0x7e, 0x3b, 0x58, 0x8e, 0x8d, 0x79, 0x8f, 0x25, 0x9c, 0xeb, 0x38,
  4700. 0x55, 0x58, 0x94, 0x83, 0x45, 0xc3, 0x94, 0xdb, 0xc4, 0x1d, 0xc8, 0x7a, 0x1b, 0x9b, 0x52, 0x4f,
  4701. 0x36, 0xdf, 0x32, 0x5b, 0xbf, 0xca, 0x86, 0x1a, 0x64, 0xe4, 0x50, 0x36, 0xdf, 0x5e, 0xd2, 0x41,
  4702. 0xa2, 0x1f, 0xfb, 0x9d, 0xc2, 0x87, 0x23, 0xd6, 0x32, 0x44, 0xb7, 0x7e, 0x12, 0x51, 0xb2, 0x7f,
  4703. 0x34, 0x82, 0xe5, 0xe8, 0x52, 0xfd, 0xc5, 0x4b, 0xd4, 0xdf, 0x71, 0xb5, 0xff, 0x3a, 0x5c, 0x0b,
  4704. 0x2c, 0x9e, 0x5d, 0x21, 0x6d, 0xc8, 0x5a, 0x43, 0x47, 0xaa, 0x31, 0xa1, 0x3a, 0x46, 0x68, 0x4c,
  4705. 0x2c, 0x42, 0x63, 0x84, 0x55, 0xb8, 0x1e, 0x32, 0x11, 0x93, 0xe2, 0x6f, 0x92, 0x54, 0x8c, 0xc9,
  4706. 0x1b, 0x4f, 0x9f, 0x47, 0x59, 0xc5, 0x47, 0xee, 0x63, 0x0f, 0xed, 0xd1, 0xbc, 0x0f, 0xbb, 0xd8,
  4707. 0x80, 0xb4, 0x1b, 0x8f, 0x5d, 0x83, 0xe6, 0x08, 0xc3, 0x49, 0x5e, 0xa8, 0x1f, 0x96, 0xf2, 0xf5,
  4708. 0xc3, 0x2a, 0x03, 0xa3, 0x9a, 0xf6, 0x86, 0xb6, 0x91, 0x5b, 0x31, 0xc4, 0xac, 0xde, 0x04, 0xcc,
  4709. 0x6a, 0xc6, 0xdb, 0x64, 0x8b, 0x64, 0xfa, 0xff, 0xc0, 0xb0, 0x98, 0x52, 0x87, 0x76, 0xbf, 0x84,
  4710. 0x37, 0xc0, 0x53, 0x8d, 0x9f, 0xbc, 0x1f, 0xe5, 0x53, 0xa3, 0x98, 0x5f, 0x8d, 0x84, 0x75, 0x58,
  4711. 0x0d, 0xe5, 0xcd, 0xa6, 0xfe, 0x63, 0x8e, 0x0a, 0xe6, 0x14, 0xba, 0xea, 0xa6, 0x6c, 0x1a, 0xe3,
  4712. 0x4e, 0xcd, 0x06, 0xdd, 0x53, 0x53, 0x10, 0xd1, 0xe0, 0x09, 0x4d, 0x42, 0xf8, 0x53, 0x8e, 0xee,
  4713. 0x83, 0x5f, 0x16, 0x76, 0xdb, 0xde, 0x85, 0x64, 0x9f, 0xd4, 0xf2, 0x69, 0xd4, 0xb5, 0xe8, 0x35,
  4714. 0x82, 0x23, 0x6b, 0x48, 0xa4, 0x18, 0x97, 0x56, 0x1d, 0x15, 0x7e, 0xc9, 0x41, 0xda, 0xc5, 0x1f,
  4715. 0xad, 0xc1, 0xac, 0x53, 0xfe, 0xb1, 0xf3, 0x1d, 0x07, 0x60, 0x1d, 0xbf, 0xa9, 0x99, 0x72, 0x87,
  4716. 0xbd, 0x33, 0xa1, 0x1f, 0x56, 0x8a, 0xda, 0x37, 0x30, 0x0d, 0x87, 0xe3, 0x22, 0xf9, 0x8d, 0xee,
  4717. 0x43, 0xa2, 0xaf, 0x2a, 0x26, 0x31, 0xfb, 0x05, 0xbf, 0x3d, 0x93, 0xa9, 0x72, 0x47, 0xaa, 0x62,
  4718. 0x8a, 0x04, 0x4b, 0xb8, 0x07, 0x09, 0xeb, 0xcb, 0x5b, 0x81, 0x98, 0x85, 0x64, 0xe1, 0x75, 0xa3,
  4719. 0x54, 0xcf, 0x70, 0x08, 0x20, 0x55, 0xa6, 0xf9, 0x7a, 0x4c, 0xa8, 0xd8, 0x0f, 0x4e, 0x9d, 0x45,
  4720. 0x58, 0x2e, 0x40, 0x3e, 0x56, 0x35, 0xbd, 0x2b, 0x77, 0x88, 0xcc, 0x33, 0xa2, 0xf3, 0x1d, 0xdd,
  4721. 0x22, 0xa1, 0x05, 0xc5, 0x35, 0xe7, 0x44, 0xc2, 0xea, 0x45, 0x5f, 0x50, 0xdd, 0x8a, 0xaa, 0x14,
  4722. 0xe5, 0x43, 0x2b, 0x45, 0xeb, 0x9e, 0x5b, 0x76, 0x44, 0x8d, 0xe8, 0x57, 0x31, 0x58, 0x0e, 0xc5,
  4723. 0x43, 0x8f, 0xdd, 0xd5, 0xa1, 0x9b, 0x43, 0x79, 0xba, 0xeb, 0x42, 0xff, 0xcd, 0xd1, 0xba, 0xd0,
  4724. 0x8e, 0xa7, 0x2e, 0x74, 0x67, 0x24, 0xbd, 0xbb, 0x22, 0xf4, 0x57, 0x5c, 0x44, 0x45, 0xa8, 0xde,
  4725. 0xc8, 0xef, 0x95, 0xa4, 0xa3, 0x2a, 0xfd, 0xeb, 0x54, 0x84, 0x96, 0x20, 0x33, 0xa8, 0x93, 0x48,
  4726. 0xf5, 0x46, 0xbe, 0x51, 0xcf, 0xc4, 0x82, 0xd5, 0x98, 0x78, 0x68, 0xad, 0x25, 0x31, 0xba, 0xac,
  4727. 0x92, 0xa4, 0x28, 0xab, 0x80, 0x18, 0xf5, 0x41, 0xed, 0xa8, 0xda, 0x90, 0xf6, 0xc4, 0xda, 0xd1,
  4728. 0x21, 0x7b, 0x72, 0xe5, 0xd4, 0x5c, 0x96, 0x00, 0xb1, 0x23, 0x73, 0x3f, 0xa2, 0xff, 0x73, 0x0e,
  4729. 0x16, 0x3d, 0x60, 0x76, 0x82, 0xae, 0x6e, 0x37, 0xe7, 0xe9, 0x76, 0x3f, 0x84, 0x25, 0x2b, 0x6d,
  4730. 0xa4, 0xe6, 0x62, 0x48, 0x3d, 0xac, 0x93, 0x2a, 0x37, 0x53, 0xfc, 0xab, 0x5d, 0xf9, 0x8c, 0x75,
  4731. 0x02, 0x0e, 0xb1, 0x6e, 0x31, 0xbe, 0x84, 0x5a, 0xaf, 0xf0, 0x4d, 0x9c, 0x06, 0x27, 0x13, 0x27,
  4732. 0x37, 0x23, 0x1d, 0x55, 0x30, 0xfb, 0x89, 0x4f, 0x90, 0xfd, 0x44, 0xb8, 0xb9, 0xc4, 0x44, 0x11,
  4733. 0xf1, 0xe4, 0x17, 0x7b, 0x75, 0x70, 0x79, 0xd3, 0xf0, 0xf5, 0xbe, 0x5b, 0x89, 0x47, 0xa6, 0x5b,
  4734. 0xa9, 0x6f, 0x0a, 0xdc, 0xcf, 0x2e, 0x2b, 0x59, 0xce, 0xd3, 0xa0, 0xec, 0x02, 0x49, 0xd2, 0xf6,
  4735. 0xff, 0x70, 0x30, 0x53, 0x6e, 0x61, 0xd5, 0xa4, 0x6b, 0x9b, 0xf7, 0xfc, 0x9f, 0x05, 0x5a, 0x8b,
  4736. 0xf8, 0xf7, 0x0b, 0xb2, 0x30, 0x7e, 0x7d, 0xe8, 0x3f, 0x67, 0x08, 0x53, 0xe8, 0xc4, 0xf5, 0x3f,
  4737. 0x22, 0x9e, 0x76, 0xc6, 0x07, 0x01, 0xca, 0x10, 0x3f, 0xc7, 0xdf, 0x1e, 0x81, 0xe5, 0xcc, 0xf3,
  4738. 0x04, 0x92, 0xe4, 0x45, 0x3d, 0x5a, 0x72, 0x5e, 0xf5, 0xbb, 0x1e, 0xdc, 0xf3, 0xcb, 0x3e, 0xa8,
  4739. 0x4d, 0xb7, 0xfd, 0x8f, 0xb3, 0x00, 0x83, 0x5c, 0x13, 0xbd, 0x80, 0x39, 0xf7, 0xa3, 0x5e, 0xb4,
  4740. 0x3a, 0xe4, 0x49, 0x39, 0xbf, 0x16, 0x3e, 0xe8, 0xc8, 0xf4, 0x02, 0xe6, 0xdc, 0x0f, 0xb9, 0x06,
  4741. 0xcc, 0x42, 0x1e, 0x93, 0x0d, 0x98, 0x85, 0xbe, 0xfd, 0x9a, 0x42, 0x1d, 0xb8, 0x16, 0xf1, 0x94,
  4742. 0x07, 0xdd, 0x19, 0xef, 0xc1, 0x13, 0xff, 0xbd, 0x31, 0xdf, 0x04, 0x09, 0x53, 0x48, 0x87, 0xeb,
  4743. 0x91, 0x2f, 0x58, 0xd0, 0xd6, 0xb8, 0xef, 0x6b, 0xf8, 0xbb, 0x63, 0x60, 0x3a, 0x73, 0xf6, 0x81,
  4744. 0x8f, 0x6e, 0x9b, 0xa3, 0xbb, 0x63, 0xbf, 0xe7, 0xe0, 0xef, 0x8d, 0xdf, 0x85, 0x17, 0xa6, 0xd0,
  4745. 0x3e, 0xa4, 0x5d, 0xfd, 0x53, 0xc4, 0x87, 0x36, 0x55, 0x29, 0xe3, 0xd5, 0x21, 0x0d, 0x57, 0xca,
  4746. 0xc9, 0xd5, 0xd2, 0x1a, 0x70, 0x0a, 0x36, 0xe7, 0x06, 0x9c, 0x42, 0x7a, 0x60, 0xfe, 0xed, 0xf7,
  4747. 0x5d, 0xf2, 0x61, 0xdb, 0x1f, 0x1e, 0x25, 0x84, 0x6d, 0x7f, 0x44, 0xc4, 0x20, 0x4c, 0xa1, 0xcf,
  4748. 0x60, 0xc1, 0x5b, 0xa6, 0x46, 0xeb, 0x43, 0xcb, 0xed, 0xfc, 0x8d, 0xa8, 0x61, 0x37, 0x4b, 0x6f,
  4749. 0x55, 0x74, 0xc0, 0x32, 0xb4, 0x3a, 0x3b, 0x60, 0x19, 0x51, 0x4c, 0x9d, 0xb2, 0xfc, 0x93, 0xa7,
  4750. 0xd6, 0x37, 0xf0, 0x4f, 0x61, 0x25, 0xca, 0x81, 0x7f, 0x0a, 0x2d, 0x10, 0x0a, 0x53, 0x48, 0x81,
  4751. 0x95, 0xf0, 0x52, 0x13, 0xba, 0x3d, 0x56, 0x25, 0x8d, 0xbf, 0x33, 0x0a, 0xcd, 0x99, 0xaa, 0x09,
  4752. 0x8b, 0x21, 0xed, 0x6d, 0x24, 0x0c, 0xed, 0x7d, 0xd3, 0x49, 0x6e, 0x8d, 0xd1, 0x1f, 0x17, 0xac,
  4753. 0x68, 0x63, 0xfb, 0xdf, 0x92, 0x90, 0x20, 0xd7, 0x7e, 0x03, 0xae, 0xf8, 0xea, 0x09, 0xe8, 0xc6,
  4754. 0xf0, 0x2a, 0x0b, 0xbf, 0x11, 0x39, 0xee, 0xac, 0xe1, 0x0d, 0x5c, 0x0d, 0x54, 0x08, 0xd0, 0xa6,
  4755. 0x9b, 0x2e, 0xac, 0x4a, 0xc1, 0xdf, 0x1c, 0x82, 0xe1, 0xe7, 0xed, 0xf5, 0x6d, 0x9b, 0xa3, 0x52,
  4756. 0x58, 0x2f, 0xef, 0x28, 0x7f, 0xf6, 0x05, 0x8d, 0xb2, 0xfc, 0x9e, 0x4c, 0xf0, 0xca, 0x15, 0xea,
  4757. 0xc3, 0x6e, 0x0d, 0xc5, 0x71, 0x66, 0xf8, 0xdc, 0x09, 0xef, 0x5c, 0x19, 0x14, 0xf2, 0x08, 0x17,
  4758. 0x9a, 0xe9, 0xf1, 0xc2, 0x30, 0x14, 0x87, 0xfd, 0x2b, 0xc8, 0xf8, 0xef, 0x79, 0xb4, 0x31, 0x22,
  4759. 0xec, 0xe0, 0x37, 0xa3, 0x11, 0xfc, 0x3b, 0xe3, 0x77, 0x32, 0x7e, 0xa9, 0xc2, 0xdc, 0xcb, 0xad,
  4760. 0xa1, 0x38, 0x6e, 0xb7, 0xe8, 0x8a, 0x70, 0x07, 0x6e, 0x31, 0x18, 0x0d, 0x0f, 0xdc, 0x62, 0x48,
  4761. 0x48, 0x2c, 0x4c, 0xed, 0x3c, 0x03, 0x90, 0x3b, 0xbd, 0xb7, 0xb2, 0x84, 0xd5, 0x7e, 0x17, 0xad,
  4762. 0x05, 0x3a, 0x50, 0x25, 0xb5, 0xdf, 0xad, 0xf5, 0xac, 0xcc, 0xcb, 0xc8, 0xfe, 0x7c, 0x86, 0xe4,
  4763. 0x5b, 0xb3, 0x84, 0xc0, 0x1a, 0xd8, 0xa9, 0x40, 0x66, 0x40, 0x2d, 0x91, 0x10, 0x0a, 0xdd, 0x0c,
  4764. 0xe5, 0x41, 0xfa, 0xf9, 0x3e, 0x46, 0x0b, 0x0e, 0x23, 0x32, 0xba, 0xf3, 0x09, 0x40, 0xd3, 0x50,
  4765. 0x24, 0x1a, 0xc3, 0xa1, 0xf5, 0x00, 0x9f, 0xe7, 0x0a, 0xee, 0xb4, 0x6c, 0x1e, 0x7f, 0xc1, 0x84,
  4766. 0x69, 0x1a, 0x0a, 0x8d, 0xf4, 0x76, 0x7e, 0x04, 0x69, 0x2a, 0xcc, 0x89, 0x85, 0x37, 0x8a, 0x9e,
  4767. 0xc9, 0x40, 0x57, 0x4f, 0x46, 0x76, 0x4a, 0x30, 0x4f, 0x19, 0xb0, 0xac, 0x11, 0x6d, 0x04, 0x58,
  4768. 0x1c, 0xd0, 0x11, 0x1f, 0x93, 0x39, 0x42, 0xc6, 0xc6, 0x76, 0x0a, 0x30, 0x67, 0xb3, 0x31, 0xdf,
  4769. 0x6a, 0x2d, 0x74, 0x23, 0x84, 0x8b, 0x35, 0xe0, 0x63, 0x92, 0x66, 0x4c, 0xac, 0xa1, 0x81, 0x28,
  4770. 0xf6, 0x3f, 0x9b, 0x06, 0x45, 0x61, 0x99, 0x5d, 0xa8, 0x28, 0x6c, 0xac, 0x90, 0x7c, 0x13, 0x6f,
  4771. 0x1a, 0xca, 0x71, 0x8a, 0x10, 0xfd, 0xe0, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xa7, 0xda,
  4772. 0x94, 0x19, 0x3d, 0x00, 0x00,
  4773. }
  4774. // Reference imports to suppress errors if they are not otherwise used.
  4775. var _ context.Context
  4776. var _ grpc.ClientConn
  4777. // This is a compile-time assertion to ensure that this generated file
  4778. // is compatible with the grpc package it is being compiled against.
  4779. const _ = grpc.SupportPackageIsVersion4
  4780. // IdentityClient is the client API for Identity service.
  4781. //
  4782. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4783. type IdentityClient interface {
  4784. GetPluginInfo(ctx context.Context, in *GetPluginInfoRequest, opts ...grpc.CallOption) (*GetPluginInfoResponse, error)
  4785. GetPluginCapabilities(ctx context.Context, in *GetPluginCapabilitiesRequest, opts ...grpc.CallOption) (*GetPluginCapabilitiesResponse, error)
  4786. Probe(ctx context.Context, in *ProbeRequest, opts ...grpc.CallOption) (*ProbeResponse, error)
  4787. }
  4788. type identityClient struct {
  4789. cc *grpc.ClientConn
  4790. }
  4791. func NewIdentityClient(cc *grpc.ClientConn) IdentityClient {
  4792. return &identityClient{cc}
  4793. }
  4794. func (c *identityClient) GetPluginInfo(ctx context.Context, in *GetPluginInfoRequest, opts ...grpc.CallOption) (*GetPluginInfoResponse, error) {
  4795. out := new(GetPluginInfoResponse)
  4796. err := c.cc.Invoke(ctx, "/csi.v1.Identity/GetPluginInfo", in, out, opts...)
  4797. if err != nil {
  4798. return nil, err
  4799. }
  4800. return out, nil
  4801. }
  4802. func (c *identityClient) GetPluginCapabilities(ctx context.Context, in *GetPluginCapabilitiesRequest, opts ...grpc.CallOption) (*GetPluginCapabilitiesResponse, error) {
  4803. out := new(GetPluginCapabilitiesResponse)
  4804. err := c.cc.Invoke(ctx, "/csi.v1.Identity/GetPluginCapabilities", in, out, opts...)
  4805. if err != nil {
  4806. return nil, err
  4807. }
  4808. return out, nil
  4809. }
  4810. func (c *identityClient) Probe(ctx context.Context, in *ProbeRequest, opts ...grpc.CallOption) (*ProbeResponse, error) {
  4811. out := new(ProbeResponse)
  4812. err := c.cc.Invoke(ctx, "/csi.v1.Identity/Probe", in, out, opts...)
  4813. if err != nil {
  4814. return nil, err
  4815. }
  4816. return out, nil
  4817. }
  4818. // IdentityServer is the server API for Identity service.
  4819. type IdentityServer interface {
  4820. GetPluginInfo(context.Context, *GetPluginInfoRequest) (*GetPluginInfoResponse, error)
  4821. GetPluginCapabilities(context.Context, *GetPluginCapabilitiesRequest) (*GetPluginCapabilitiesResponse, error)
  4822. Probe(context.Context, *ProbeRequest) (*ProbeResponse, error)
  4823. }
  4824. // UnimplementedIdentityServer can be embedded to have forward compatible implementations.
  4825. type UnimplementedIdentityServer struct {
  4826. }
  4827. func (*UnimplementedIdentityServer) GetPluginInfo(ctx context.Context, req *GetPluginInfoRequest) (*GetPluginInfoResponse, error) {
  4828. return nil, status.Errorf(codes.Unimplemented, "method GetPluginInfo not implemented")
  4829. }
  4830. func (*UnimplementedIdentityServer) GetPluginCapabilities(ctx context.Context, req *GetPluginCapabilitiesRequest) (*GetPluginCapabilitiesResponse, error) {
  4831. return nil, status.Errorf(codes.Unimplemented, "method GetPluginCapabilities not implemented")
  4832. }
  4833. func (*UnimplementedIdentityServer) Probe(ctx context.Context, req *ProbeRequest) (*ProbeResponse, error) {
  4834. return nil, status.Errorf(codes.Unimplemented, "method Probe not implemented")
  4835. }
  4836. func RegisterIdentityServer(s *grpc.Server, srv IdentityServer) {
  4837. s.RegisterService(&_Identity_serviceDesc, srv)
  4838. }
  4839. func _Identity_GetPluginInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4840. in := new(GetPluginInfoRequest)
  4841. if err := dec(in); err != nil {
  4842. return nil, err
  4843. }
  4844. if interceptor == nil {
  4845. return srv.(IdentityServer).GetPluginInfo(ctx, in)
  4846. }
  4847. info := &grpc.UnaryServerInfo{
  4848. Server: srv,
  4849. FullMethod: "/csi.v1.Identity/GetPluginInfo",
  4850. }
  4851. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4852. return srv.(IdentityServer).GetPluginInfo(ctx, req.(*GetPluginInfoRequest))
  4853. }
  4854. return interceptor(ctx, in, info, handler)
  4855. }
  4856. func _Identity_GetPluginCapabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4857. in := new(GetPluginCapabilitiesRequest)
  4858. if err := dec(in); err != nil {
  4859. return nil, err
  4860. }
  4861. if interceptor == nil {
  4862. return srv.(IdentityServer).GetPluginCapabilities(ctx, in)
  4863. }
  4864. info := &grpc.UnaryServerInfo{
  4865. Server: srv,
  4866. FullMethod: "/csi.v1.Identity/GetPluginCapabilities",
  4867. }
  4868. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4869. return srv.(IdentityServer).GetPluginCapabilities(ctx, req.(*GetPluginCapabilitiesRequest))
  4870. }
  4871. return interceptor(ctx, in, info, handler)
  4872. }
  4873. func _Identity_Probe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4874. in := new(ProbeRequest)
  4875. if err := dec(in); err != nil {
  4876. return nil, err
  4877. }
  4878. if interceptor == nil {
  4879. return srv.(IdentityServer).Probe(ctx, in)
  4880. }
  4881. info := &grpc.UnaryServerInfo{
  4882. Server: srv,
  4883. FullMethod: "/csi.v1.Identity/Probe",
  4884. }
  4885. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4886. return srv.(IdentityServer).Probe(ctx, req.(*ProbeRequest))
  4887. }
  4888. return interceptor(ctx, in, info, handler)
  4889. }
  4890. var _Identity_serviceDesc = grpc.ServiceDesc{
  4891. ServiceName: "csi.v1.Identity",
  4892. HandlerType: (*IdentityServer)(nil),
  4893. Methods: []grpc.MethodDesc{
  4894. {
  4895. MethodName: "GetPluginInfo",
  4896. Handler: _Identity_GetPluginInfo_Handler,
  4897. },
  4898. {
  4899. MethodName: "GetPluginCapabilities",
  4900. Handler: _Identity_GetPluginCapabilities_Handler,
  4901. },
  4902. {
  4903. MethodName: "Probe",
  4904. Handler: _Identity_Probe_Handler,
  4905. },
  4906. },
  4907. Streams: []grpc.StreamDesc{},
  4908. Metadata: "github.com/container-storage-interface/spec/csi.proto",
  4909. }
  4910. // ControllerClient is the client API for Controller service.
  4911. //
  4912. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4913. type ControllerClient interface {
  4914. CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error)
  4915. DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...grpc.CallOption) (*DeleteVolumeResponse, error)
  4916. ControllerPublishVolume(ctx context.Context, in *ControllerPublishVolumeRequest, opts ...grpc.CallOption) (*ControllerPublishVolumeResponse, error)
  4917. ControllerUnpublishVolume(ctx context.Context, in *ControllerUnpublishVolumeRequest, opts ...grpc.CallOption) (*ControllerUnpublishVolumeResponse, error)
  4918. ValidateVolumeCapabilities(ctx context.Context, in *ValidateVolumeCapabilitiesRequest, opts ...grpc.CallOption) (*ValidateVolumeCapabilitiesResponse, error)
  4919. ListVolumes(ctx context.Context, in *ListVolumesRequest, opts ...grpc.CallOption) (*ListVolumesResponse, error)
  4920. GetCapacity(ctx context.Context, in *GetCapacityRequest, opts ...grpc.CallOption) (*GetCapacityResponse, error)
  4921. ControllerGetCapabilities(ctx context.Context, in *ControllerGetCapabilitiesRequest, opts ...grpc.CallOption) (*ControllerGetCapabilitiesResponse, error)
  4922. CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error)
  4923. DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*DeleteSnapshotResponse, error)
  4924. ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
  4925. ControllerExpandVolume(ctx context.Context, in *ControllerExpandVolumeRequest, opts ...grpc.CallOption) (*ControllerExpandVolumeResponse, error)
  4926. ControllerGetVolume(ctx context.Context, in *ControllerGetVolumeRequest, opts ...grpc.CallOption) (*ControllerGetVolumeResponse, error)
  4927. }
  4928. type controllerClient struct {
  4929. cc *grpc.ClientConn
  4930. }
  4931. func NewControllerClient(cc *grpc.ClientConn) ControllerClient {
  4932. return &controllerClient{cc}
  4933. }
  4934. func (c *controllerClient) CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) {
  4935. out := new(CreateVolumeResponse)
  4936. err := c.cc.Invoke(ctx, "/csi.v1.Controller/CreateVolume", in, out, opts...)
  4937. if err != nil {
  4938. return nil, err
  4939. }
  4940. return out, nil
  4941. }
  4942. func (c *controllerClient) DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...grpc.CallOption) (*DeleteVolumeResponse, error) {
  4943. out := new(DeleteVolumeResponse)
  4944. err := c.cc.Invoke(ctx, "/csi.v1.Controller/DeleteVolume", in, out, opts...)
  4945. if err != nil {
  4946. return nil, err
  4947. }
  4948. return out, nil
  4949. }
  4950. func (c *controllerClient) ControllerPublishVolume(ctx context.Context, in *ControllerPublishVolumeRequest, opts ...grpc.CallOption) (*ControllerPublishVolumeResponse, error) {
  4951. out := new(ControllerPublishVolumeResponse)
  4952. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ControllerPublishVolume", in, out, opts...)
  4953. if err != nil {
  4954. return nil, err
  4955. }
  4956. return out, nil
  4957. }
  4958. func (c *controllerClient) ControllerUnpublishVolume(ctx context.Context, in *ControllerUnpublishVolumeRequest, opts ...grpc.CallOption) (*ControllerUnpublishVolumeResponse, error) {
  4959. out := new(ControllerUnpublishVolumeResponse)
  4960. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ControllerUnpublishVolume", in, out, opts...)
  4961. if err != nil {
  4962. return nil, err
  4963. }
  4964. return out, nil
  4965. }
  4966. func (c *controllerClient) ValidateVolumeCapabilities(ctx context.Context, in *ValidateVolumeCapabilitiesRequest, opts ...grpc.CallOption) (*ValidateVolumeCapabilitiesResponse, error) {
  4967. out := new(ValidateVolumeCapabilitiesResponse)
  4968. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ValidateVolumeCapabilities", in, out, opts...)
  4969. if err != nil {
  4970. return nil, err
  4971. }
  4972. return out, nil
  4973. }
  4974. func (c *controllerClient) ListVolumes(ctx context.Context, in *ListVolumesRequest, opts ...grpc.CallOption) (*ListVolumesResponse, error) {
  4975. out := new(ListVolumesResponse)
  4976. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ListVolumes", in, out, opts...)
  4977. if err != nil {
  4978. return nil, err
  4979. }
  4980. return out, nil
  4981. }
  4982. func (c *controllerClient) GetCapacity(ctx context.Context, in *GetCapacityRequest, opts ...grpc.CallOption) (*GetCapacityResponse, error) {
  4983. out := new(GetCapacityResponse)
  4984. err := c.cc.Invoke(ctx, "/csi.v1.Controller/GetCapacity", in, out, opts...)
  4985. if err != nil {
  4986. return nil, err
  4987. }
  4988. return out, nil
  4989. }
  4990. func (c *controllerClient) ControllerGetCapabilities(ctx context.Context, in *ControllerGetCapabilitiesRequest, opts ...grpc.CallOption) (*ControllerGetCapabilitiesResponse, error) {
  4991. out := new(ControllerGetCapabilitiesResponse)
  4992. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ControllerGetCapabilities", in, out, opts...)
  4993. if err != nil {
  4994. return nil, err
  4995. }
  4996. return out, nil
  4997. }
  4998. func (c *controllerClient) CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error) {
  4999. out := new(CreateSnapshotResponse)
  5000. err := c.cc.Invoke(ctx, "/csi.v1.Controller/CreateSnapshot", in, out, opts...)
  5001. if err != nil {
  5002. return nil, err
  5003. }
  5004. return out, nil
  5005. }
  5006. func (c *controllerClient) DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*DeleteSnapshotResponse, error) {
  5007. out := new(DeleteSnapshotResponse)
  5008. err := c.cc.Invoke(ctx, "/csi.v1.Controller/DeleteSnapshot", in, out, opts...)
  5009. if err != nil {
  5010. return nil, err
  5011. }
  5012. return out, nil
  5013. }
  5014. func (c *controllerClient) ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) {
  5015. out := new(ListSnapshotsResponse)
  5016. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ListSnapshots", in, out, opts...)
  5017. if err != nil {
  5018. return nil, err
  5019. }
  5020. return out, nil
  5021. }
  5022. func (c *controllerClient) ControllerExpandVolume(ctx context.Context, in *ControllerExpandVolumeRequest, opts ...grpc.CallOption) (*ControllerExpandVolumeResponse, error) {
  5023. out := new(ControllerExpandVolumeResponse)
  5024. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ControllerExpandVolume", in, out, opts...)
  5025. if err != nil {
  5026. return nil, err
  5027. }
  5028. return out, nil
  5029. }
  5030. func (c *controllerClient) ControllerGetVolume(ctx context.Context, in *ControllerGetVolumeRequest, opts ...grpc.CallOption) (*ControllerGetVolumeResponse, error) {
  5031. out := new(ControllerGetVolumeResponse)
  5032. err := c.cc.Invoke(ctx, "/csi.v1.Controller/ControllerGetVolume", in, out, opts...)
  5033. if err != nil {
  5034. return nil, err
  5035. }
  5036. return out, nil
  5037. }
  5038. // ControllerServer is the server API for Controller service.
  5039. type ControllerServer interface {
  5040. CreateVolume(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error)
  5041. DeleteVolume(context.Context, *DeleteVolumeRequest) (*DeleteVolumeResponse, error)
  5042. ControllerPublishVolume(context.Context, *ControllerPublishVolumeRequest) (*ControllerPublishVolumeResponse, error)
  5043. ControllerUnpublishVolume(context.Context, *ControllerUnpublishVolumeRequest) (*ControllerUnpublishVolumeResponse, error)
  5044. ValidateVolumeCapabilities(context.Context, *ValidateVolumeCapabilitiesRequest) (*ValidateVolumeCapabilitiesResponse, error)
  5045. ListVolumes(context.Context, *ListVolumesRequest) (*ListVolumesResponse, error)
  5046. GetCapacity(context.Context, *GetCapacityRequest) (*GetCapacityResponse, error)
  5047. ControllerGetCapabilities(context.Context, *ControllerGetCapabilitiesRequest) (*ControllerGetCapabilitiesResponse, error)
  5048. CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
  5049. DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error)
  5050. ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
  5051. ControllerExpandVolume(context.Context, *ControllerExpandVolumeRequest) (*ControllerExpandVolumeResponse, error)
  5052. ControllerGetVolume(context.Context, *ControllerGetVolumeRequest) (*ControllerGetVolumeResponse, error)
  5053. }
  5054. // UnimplementedControllerServer can be embedded to have forward compatible implementations.
  5055. type UnimplementedControllerServer struct {
  5056. }
  5057. func (*UnimplementedControllerServer) CreateVolume(ctx context.Context, req *CreateVolumeRequest) (*CreateVolumeResponse, error) {
  5058. return nil, status.Errorf(codes.Unimplemented, "method CreateVolume not implemented")
  5059. }
  5060. func (*UnimplementedControllerServer) DeleteVolume(ctx context.Context, req *DeleteVolumeRequest) (*DeleteVolumeResponse, error) {
  5061. return nil, status.Errorf(codes.Unimplemented, "method DeleteVolume not implemented")
  5062. }
  5063. func (*UnimplementedControllerServer) ControllerPublishVolume(ctx context.Context, req *ControllerPublishVolumeRequest) (*ControllerPublishVolumeResponse, error) {
  5064. return nil, status.Errorf(codes.Unimplemented, "method ControllerPublishVolume not implemented")
  5065. }
  5066. func (*UnimplementedControllerServer) ControllerUnpublishVolume(ctx context.Context, req *ControllerUnpublishVolumeRequest) (*ControllerUnpublishVolumeResponse, error) {
  5067. return nil, status.Errorf(codes.Unimplemented, "method ControllerUnpublishVolume not implemented")
  5068. }
  5069. func (*UnimplementedControllerServer) ValidateVolumeCapabilities(ctx context.Context, req *ValidateVolumeCapabilitiesRequest) (*ValidateVolumeCapabilitiesResponse, error) {
  5070. return nil, status.Errorf(codes.Unimplemented, "method ValidateVolumeCapabilities not implemented")
  5071. }
  5072. func (*UnimplementedControllerServer) ListVolumes(ctx context.Context, req *ListVolumesRequest) (*ListVolumesResponse, error) {
  5073. return nil, status.Errorf(codes.Unimplemented, "method ListVolumes not implemented")
  5074. }
  5075. func (*UnimplementedControllerServer) GetCapacity(ctx context.Context, req *GetCapacityRequest) (*GetCapacityResponse, error) {
  5076. return nil, status.Errorf(codes.Unimplemented, "method GetCapacity not implemented")
  5077. }
  5078. func (*UnimplementedControllerServer) ControllerGetCapabilities(ctx context.Context, req *ControllerGetCapabilitiesRequest) (*ControllerGetCapabilitiesResponse, error) {
  5079. return nil, status.Errorf(codes.Unimplemented, "method ControllerGetCapabilities not implemented")
  5080. }
  5081. func (*UnimplementedControllerServer) CreateSnapshot(ctx context.Context, req *CreateSnapshotRequest) (*CreateSnapshotResponse, error) {
  5082. return nil, status.Errorf(codes.Unimplemented, "method CreateSnapshot not implemented")
  5083. }
  5084. func (*UnimplementedControllerServer) DeleteSnapshot(ctx context.Context, req *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error) {
  5085. return nil, status.Errorf(codes.Unimplemented, "method DeleteSnapshot not implemented")
  5086. }
  5087. func (*UnimplementedControllerServer) ListSnapshots(ctx context.Context, req *ListSnapshotsRequest) (*ListSnapshotsResponse, error) {
  5088. return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented")
  5089. }
  5090. func (*UnimplementedControllerServer) ControllerExpandVolume(ctx context.Context, req *ControllerExpandVolumeRequest) (*ControllerExpandVolumeResponse, error) {
  5091. return nil, status.Errorf(codes.Unimplemented, "method ControllerExpandVolume not implemented")
  5092. }
  5093. func (*UnimplementedControllerServer) ControllerGetVolume(ctx context.Context, req *ControllerGetVolumeRequest) (*ControllerGetVolumeResponse, error) {
  5094. return nil, status.Errorf(codes.Unimplemented, "method ControllerGetVolume not implemented")
  5095. }
  5096. func RegisterControllerServer(s *grpc.Server, srv ControllerServer) {
  5097. s.RegisterService(&_Controller_serviceDesc, srv)
  5098. }
  5099. func _Controller_CreateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5100. in := new(CreateVolumeRequest)
  5101. if err := dec(in); err != nil {
  5102. return nil, err
  5103. }
  5104. if interceptor == nil {
  5105. return srv.(ControllerServer).CreateVolume(ctx, in)
  5106. }
  5107. info := &grpc.UnaryServerInfo{
  5108. Server: srv,
  5109. FullMethod: "/csi.v1.Controller/CreateVolume",
  5110. }
  5111. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5112. return srv.(ControllerServer).CreateVolume(ctx, req.(*CreateVolumeRequest))
  5113. }
  5114. return interceptor(ctx, in, info, handler)
  5115. }
  5116. func _Controller_DeleteVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5117. in := new(DeleteVolumeRequest)
  5118. if err := dec(in); err != nil {
  5119. return nil, err
  5120. }
  5121. if interceptor == nil {
  5122. return srv.(ControllerServer).DeleteVolume(ctx, in)
  5123. }
  5124. info := &grpc.UnaryServerInfo{
  5125. Server: srv,
  5126. FullMethod: "/csi.v1.Controller/DeleteVolume",
  5127. }
  5128. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5129. return srv.(ControllerServer).DeleteVolume(ctx, req.(*DeleteVolumeRequest))
  5130. }
  5131. return interceptor(ctx, in, info, handler)
  5132. }
  5133. func _Controller_ControllerPublishVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5134. in := new(ControllerPublishVolumeRequest)
  5135. if err := dec(in); err != nil {
  5136. return nil, err
  5137. }
  5138. if interceptor == nil {
  5139. return srv.(ControllerServer).ControllerPublishVolume(ctx, in)
  5140. }
  5141. info := &grpc.UnaryServerInfo{
  5142. Server: srv,
  5143. FullMethod: "/csi.v1.Controller/ControllerPublishVolume",
  5144. }
  5145. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5146. return srv.(ControllerServer).ControllerPublishVolume(ctx, req.(*ControllerPublishVolumeRequest))
  5147. }
  5148. return interceptor(ctx, in, info, handler)
  5149. }
  5150. func _Controller_ControllerUnpublishVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5151. in := new(ControllerUnpublishVolumeRequest)
  5152. if err := dec(in); err != nil {
  5153. return nil, err
  5154. }
  5155. if interceptor == nil {
  5156. return srv.(ControllerServer).ControllerUnpublishVolume(ctx, in)
  5157. }
  5158. info := &grpc.UnaryServerInfo{
  5159. Server: srv,
  5160. FullMethod: "/csi.v1.Controller/ControllerUnpublishVolume",
  5161. }
  5162. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5163. return srv.(ControllerServer).ControllerUnpublishVolume(ctx, req.(*ControllerUnpublishVolumeRequest))
  5164. }
  5165. return interceptor(ctx, in, info, handler)
  5166. }
  5167. func _Controller_ValidateVolumeCapabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5168. in := new(ValidateVolumeCapabilitiesRequest)
  5169. if err := dec(in); err != nil {
  5170. return nil, err
  5171. }
  5172. if interceptor == nil {
  5173. return srv.(ControllerServer).ValidateVolumeCapabilities(ctx, in)
  5174. }
  5175. info := &grpc.UnaryServerInfo{
  5176. Server: srv,
  5177. FullMethod: "/csi.v1.Controller/ValidateVolumeCapabilities",
  5178. }
  5179. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5180. return srv.(ControllerServer).ValidateVolumeCapabilities(ctx, req.(*ValidateVolumeCapabilitiesRequest))
  5181. }
  5182. return interceptor(ctx, in, info, handler)
  5183. }
  5184. func _Controller_ListVolumes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5185. in := new(ListVolumesRequest)
  5186. if err := dec(in); err != nil {
  5187. return nil, err
  5188. }
  5189. if interceptor == nil {
  5190. return srv.(ControllerServer).ListVolumes(ctx, in)
  5191. }
  5192. info := &grpc.UnaryServerInfo{
  5193. Server: srv,
  5194. FullMethod: "/csi.v1.Controller/ListVolumes",
  5195. }
  5196. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5197. return srv.(ControllerServer).ListVolumes(ctx, req.(*ListVolumesRequest))
  5198. }
  5199. return interceptor(ctx, in, info, handler)
  5200. }
  5201. func _Controller_GetCapacity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5202. in := new(GetCapacityRequest)
  5203. if err := dec(in); err != nil {
  5204. return nil, err
  5205. }
  5206. if interceptor == nil {
  5207. return srv.(ControllerServer).GetCapacity(ctx, in)
  5208. }
  5209. info := &grpc.UnaryServerInfo{
  5210. Server: srv,
  5211. FullMethod: "/csi.v1.Controller/GetCapacity",
  5212. }
  5213. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5214. return srv.(ControllerServer).GetCapacity(ctx, req.(*GetCapacityRequest))
  5215. }
  5216. return interceptor(ctx, in, info, handler)
  5217. }
  5218. func _Controller_ControllerGetCapabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5219. in := new(ControllerGetCapabilitiesRequest)
  5220. if err := dec(in); err != nil {
  5221. return nil, err
  5222. }
  5223. if interceptor == nil {
  5224. return srv.(ControllerServer).ControllerGetCapabilities(ctx, in)
  5225. }
  5226. info := &grpc.UnaryServerInfo{
  5227. Server: srv,
  5228. FullMethod: "/csi.v1.Controller/ControllerGetCapabilities",
  5229. }
  5230. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5231. return srv.(ControllerServer).ControllerGetCapabilities(ctx, req.(*ControllerGetCapabilitiesRequest))
  5232. }
  5233. return interceptor(ctx, in, info, handler)
  5234. }
  5235. func _Controller_CreateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5236. in := new(CreateSnapshotRequest)
  5237. if err := dec(in); err != nil {
  5238. return nil, err
  5239. }
  5240. if interceptor == nil {
  5241. return srv.(ControllerServer).CreateSnapshot(ctx, in)
  5242. }
  5243. info := &grpc.UnaryServerInfo{
  5244. Server: srv,
  5245. FullMethod: "/csi.v1.Controller/CreateSnapshot",
  5246. }
  5247. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5248. return srv.(ControllerServer).CreateSnapshot(ctx, req.(*CreateSnapshotRequest))
  5249. }
  5250. return interceptor(ctx, in, info, handler)
  5251. }
  5252. func _Controller_DeleteSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5253. in := new(DeleteSnapshotRequest)
  5254. if err := dec(in); err != nil {
  5255. return nil, err
  5256. }
  5257. if interceptor == nil {
  5258. return srv.(ControllerServer).DeleteSnapshot(ctx, in)
  5259. }
  5260. info := &grpc.UnaryServerInfo{
  5261. Server: srv,
  5262. FullMethod: "/csi.v1.Controller/DeleteSnapshot",
  5263. }
  5264. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5265. return srv.(ControllerServer).DeleteSnapshot(ctx, req.(*DeleteSnapshotRequest))
  5266. }
  5267. return interceptor(ctx, in, info, handler)
  5268. }
  5269. func _Controller_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5270. in := new(ListSnapshotsRequest)
  5271. if err := dec(in); err != nil {
  5272. return nil, err
  5273. }
  5274. if interceptor == nil {
  5275. return srv.(ControllerServer).ListSnapshots(ctx, in)
  5276. }
  5277. info := &grpc.UnaryServerInfo{
  5278. Server: srv,
  5279. FullMethod: "/csi.v1.Controller/ListSnapshots",
  5280. }
  5281. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5282. return srv.(ControllerServer).ListSnapshots(ctx, req.(*ListSnapshotsRequest))
  5283. }
  5284. return interceptor(ctx, in, info, handler)
  5285. }
  5286. func _Controller_ControllerExpandVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5287. in := new(ControllerExpandVolumeRequest)
  5288. if err := dec(in); err != nil {
  5289. return nil, err
  5290. }
  5291. if interceptor == nil {
  5292. return srv.(ControllerServer).ControllerExpandVolume(ctx, in)
  5293. }
  5294. info := &grpc.UnaryServerInfo{
  5295. Server: srv,
  5296. FullMethod: "/csi.v1.Controller/ControllerExpandVolume",
  5297. }
  5298. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5299. return srv.(ControllerServer).ControllerExpandVolume(ctx, req.(*ControllerExpandVolumeRequest))
  5300. }
  5301. return interceptor(ctx, in, info, handler)
  5302. }
  5303. func _Controller_ControllerGetVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5304. in := new(ControllerGetVolumeRequest)
  5305. if err := dec(in); err != nil {
  5306. return nil, err
  5307. }
  5308. if interceptor == nil {
  5309. return srv.(ControllerServer).ControllerGetVolume(ctx, in)
  5310. }
  5311. info := &grpc.UnaryServerInfo{
  5312. Server: srv,
  5313. FullMethod: "/csi.v1.Controller/ControllerGetVolume",
  5314. }
  5315. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5316. return srv.(ControllerServer).ControllerGetVolume(ctx, req.(*ControllerGetVolumeRequest))
  5317. }
  5318. return interceptor(ctx, in, info, handler)
  5319. }
  5320. var _Controller_serviceDesc = grpc.ServiceDesc{
  5321. ServiceName: "csi.v1.Controller",
  5322. HandlerType: (*ControllerServer)(nil),
  5323. Methods: []grpc.MethodDesc{
  5324. {
  5325. MethodName: "CreateVolume",
  5326. Handler: _Controller_CreateVolume_Handler,
  5327. },
  5328. {
  5329. MethodName: "DeleteVolume",
  5330. Handler: _Controller_DeleteVolume_Handler,
  5331. },
  5332. {
  5333. MethodName: "ControllerPublishVolume",
  5334. Handler: _Controller_ControllerPublishVolume_Handler,
  5335. },
  5336. {
  5337. MethodName: "ControllerUnpublishVolume",
  5338. Handler: _Controller_ControllerUnpublishVolume_Handler,
  5339. },
  5340. {
  5341. MethodName: "ValidateVolumeCapabilities",
  5342. Handler: _Controller_ValidateVolumeCapabilities_Handler,
  5343. },
  5344. {
  5345. MethodName: "ListVolumes",
  5346. Handler: _Controller_ListVolumes_Handler,
  5347. },
  5348. {
  5349. MethodName: "GetCapacity",
  5350. Handler: _Controller_GetCapacity_Handler,
  5351. },
  5352. {
  5353. MethodName: "ControllerGetCapabilities",
  5354. Handler: _Controller_ControllerGetCapabilities_Handler,
  5355. },
  5356. {
  5357. MethodName: "CreateSnapshot",
  5358. Handler: _Controller_CreateSnapshot_Handler,
  5359. },
  5360. {
  5361. MethodName: "DeleteSnapshot",
  5362. Handler: _Controller_DeleteSnapshot_Handler,
  5363. },
  5364. {
  5365. MethodName: "ListSnapshots",
  5366. Handler: _Controller_ListSnapshots_Handler,
  5367. },
  5368. {
  5369. MethodName: "ControllerExpandVolume",
  5370. Handler: _Controller_ControllerExpandVolume_Handler,
  5371. },
  5372. {
  5373. MethodName: "ControllerGetVolume",
  5374. Handler: _Controller_ControllerGetVolume_Handler,
  5375. },
  5376. },
  5377. Streams: []grpc.StreamDesc{},
  5378. Metadata: "github.com/container-storage-interface/spec/csi.proto",
  5379. }
  5380. // NodeClient is the client API for Node service.
  5381. //
  5382. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  5383. type NodeClient interface {
  5384. NodeStageVolume(ctx context.Context, in *NodeStageVolumeRequest, opts ...grpc.CallOption) (*NodeStageVolumeResponse, error)
  5385. NodeUnstageVolume(ctx context.Context, in *NodeUnstageVolumeRequest, opts ...grpc.CallOption) (*NodeUnstageVolumeResponse, error)
  5386. NodePublishVolume(ctx context.Context, in *NodePublishVolumeRequest, opts ...grpc.CallOption) (*NodePublishVolumeResponse, error)
  5387. NodeUnpublishVolume(ctx context.Context, in *NodeUnpublishVolumeRequest, opts ...grpc.CallOption) (*NodeUnpublishVolumeResponse, error)
  5388. NodeGetVolumeStats(ctx context.Context, in *NodeGetVolumeStatsRequest, opts ...grpc.CallOption) (*NodeGetVolumeStatsResponse, error)
  5389. NodeExpandVolume(ctx context.Context, in *NodeExpandVolumeRequest, opts ...grpc.CallOption) (*NodeExpandVolumeResponse, error)
  5390. NodeGetCapabilities(ctx context.Context, in *NodeGetCapabilitiesRequest, opts ...grpc.CallOption) (*NodeGetCapabilitiesResponse, error)
  5391. NodeGetInfo(ctx context.Context, in *NodeGetInfoRequest, opts ...grpc.CallOption) (*NodeGetInfoResponse, error)
  5392. }
  5393. type nodeClient struct {
  5394. cc *grpc.ClientConn
  5395. }
  5396. func NewNodeClient(cc *grpc.ClientConn) NodeClient {
  5397. return &nodeClient{cc}
  5398. }
  5399. func (c *nodeClient) NodeStageVolume(ctx context.Context, in *NodeStageVolumeRequest, opts ...grpc.CallOption) (*NodeStageVolumeResponse, error) {
  5400. out := new(NodeStageVolumeResponse)
  5401. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeStageVolume", in, out, opts...)
  5402. if err != nil {
  5403. return nil, err
  5404. }
  5405. return out, nil
  5406. }
  5407. func (c *nodeClient) NodeUnstageVolume(ctx context.Context, in *NodeUnstageVolumeRequest, opts ...grpc.CallOption) (*NodeUnstageVolumeResponse, error) {
  5408. out := new(NodeUnstageVolumeResponse)
  5409. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeUnstageVolume", in, out, opts...)
  5410. if err != nil {
  5411. return nil, err
  5412. }
  5413. return out, nil
  5414. }
  5415. func (c *nodeClient) NodePublishVolume(ctx context.Context, in *NodePublishVolumeRequest, opts ...grpc.CallOption) (*NodePublishVolumeResponse, error) {
  5416. out := new(NodePublishVolumeResponse)
  5417. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodePublishVolume", in, out, opts...)
  5418. if err != nil {
  5419. return nil, err
  5420. }
  5421. return out, nil
  5422. }
  5423. func (c *nodeClient) NodeUnpublishVolume(ctx context.Context, in *NodeUnpublishVolumeRequest, opts ...grpc.CallOption) (*NodeUnpublishVolumeResponse, error) {
  5424. out := new(NodeUnpublishVolumeResponse)
  5425. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeUnpublishVolume", in, out, opts...)
  5426. if err != nil {
  5427. return nil, err
  5428. }
  5429. return out, nil
  5430. }
  5431. func (c *nodeClient) NodeGetVolumeStats(ctx context.Context, in *NodeGetVolumeStatsRequest, opts ...grpc.CallOption) (*NodeGetVolumeStatsResponse, error) {
  5432. out := new(NodeGetVolumeStatsResponse)
  5433. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeGetVolumeStats", in, out, opts...)
  5434. if err != nil {
  5435. return nil, err
  5436. }
  5437. return out, nil
  5438. }
  5439. func (c *nodeClient) NodeExpandVolume(ctx context.Context, in *NodeExpandVolumeRequest, opts ...grpc.CallOption) (*NodeExpandVolumeResponse, error) {
  5440. out := new(NodeExpandVolumeResponse)
  5441. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeExpandVolume", in, out, opts...)
  5442. if err != nil {
  5443. return nil, err
  5444. }
  5445. return out, nil
  5446. }
  5447. func (c *nodeClient) NodeGetCapabilities(ctx context.Context, in *NodeGetCapabilitiesRequest, opts ...grpc.CallOption) (*NodeGetCapabilitiesResponse, error) {
  5448. out := new(NodeGetCapabilitiesResponse)
  5449. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeGetCapabilities", in, out, opts...)
  5450. if err != nil {
  5451. return nil, err
  5452. }
  5453. return out, nil
  5454. }
  5455. func (c *nodeClient) NodeGetInfo(ctx context.Context, in *NodeGetInfoRequest, opts ...grpc.CallOption) (*NodeGetInfoResponse, error) {
  5456. out := new(NodeGetInfoResponse)
  5457. err := c.cc.Invoke(ctx, "/csi.v1.Node/NodeGetInfo", in, out, opts...)
  5458. if err != nil {
  5459. return nil, err
  5460. }
  5461. return out, nil
  5462. }
  5463. // NodeServer is the server API for Node service.
  5464. type NodeServer interface {
  5465. NodeStageVolume(context.Context, *NodeStageVolumeRequest) (*NodeStageVolumeResponse, error)
  5466. NodeUnstageVolume(context.Context, *NodeUnstageVolumeRequest) (*NodeUnstageVolumeResponse, error)
  5467. NodePublishVolume(context.Context, *NodePublishVolumeRequest) (*NodePublishVolumeResponse, error)
  5468. NodeUnpublishVolume(context.Context, *NodeUnpublishVolumeRequest) (*NodeUnpublishVolumeResponse, error)
  5469. NodeGetVolumeStats(context.Context, *NodeGetVolumeStatsRequest) (*NodeGetVolumeStatsResponse, error)
  5470. NodeExpandVolume(context.Context, *NodeExpandVolumeRequest) (*NodeExpandVolumeResponse, error)
  5471. NodeGetCapabilities(context.Context, *NodeGetCapabilitiesRequest) (*NodeGetCapabilitiesResponse, error)
  5472. NodeGetInfo(context.Context, *NodeGetInfoRequest) (*NodeGetInfoResponse, error)
  5473. }
  5474. // UnimplementedNodeServer can be embedded to have forward compatible implementations.
  5475. type UnimplementedNodeServer struct {
  5476. }
  5477. func (*UnimplementedNodeServer) NodeStageVolume(ctx context.Context, req *NodeStageVolumeRequest) (*NodeStageVolumeResponse, error) {
  5478. return nil, status.Errorf(codes.Unimplemented, "method NodeStageVolume not implemented")
  5479. }
  5480. func (*UnimplementedNodeServer) NodeUnstageVolume(ctx context.Context, req *NodeUnstageVolumeRequest) (*NodeUnstageVolumeResponse, error) {
  5481. return nil, status.Errorf(codes.Unimplemented, "method NodeUnstageVolume not implemented")
  5482. }
  5483. func (*UnimplementedNodeServer) NodePublishVolume(ctx context.Context, req *NodePublishVolumeRequest) (*NodePublishVolumeResponse, error) {
  5484. return nil, status.Errorf(codes.Unimplemented, "method NodePublishVolume not implemented")
  5485. }
  5486. func (*UnimplementedNodeServer) NodeUnpublishVolume(ctx context.Context, req *NodeUnpublishVolumeRequest) (*NodeUnpublishVolumeResponse, error) {
  5487. return nil, status.Errorf(codes.Unimplemented, "method NodeUnpublishVolume not implemented")
  5488. }
  5489. func (*UnimplementedNodeServer) NodeGetVolumeStats(ctx context.Context, req *NodeGetVolumeStatsRequest) (*NodeGetVolumeStatsResponse, error) {
  5490. return nil, status.Errorf(codes.Unimplemented, "method NodeGetVolumeStats not implemented")
  5491. }
  5492. func (*UnimplementedNodeServer) NodeExpandVolume(ctx context.Context, req *NodeExpandVolumeRequest) (*NodeExpandVolumeResponse, error) {
  5493. return nil, status.Errorf(codes.Unimplemented, "method NodeExpandVolume not implemented")
  5494. }
  5495. func (*UnimplementedNodeServer) NodeGetCapabilities(ctx context.Context, req *NodeGetCapabilitiesRequest) (*NodeGetCapabilitiesResponse, error) {
  5496. return nil, status.Errorf(codes.Unimplemented, "method NodeGetCapabilities not implemented")
  5497. }
  5498. func (*UnimplementedNodeServer) NodeGetInfo(ctx context.Context, req *NodeGetInfoRequest) (*NodeGetInfoResponse, error) {
  5499. return nil, status.Errorf(codes.Unimplemented, "method NodeGetInfo not implemented")
  5500. }
  5501. func RegisterNodeServer(s *grpc.Server, srv NodeServer) {
  5502. s.RegisterService(&_Node_serviceDesc, srv)
  5503. }
  5504. func _Node_NodeStageVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5505. in := new(NodeStageVolumeRequest)
  5506. if err := dec(in); err != nil {
  5507. return nil, err
  5508. }
  5509. if interceptor == nil {
  5510. return srv.(NodeServer).NodeStageVolume(ctx, in)
  5511. }
  5512. info := &grpc.UnaryServerInfo{
  5513. Server: srv,
  5514. FullMethod: "/csi.v1.Node/NodeStageVolume",
  5515. }
  5516. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5517. return srv.(NodeServer).NodeStageVolume(ctx, req.(*NodeStageVolumeRequest))
  5518. }
  5519. return interceptor(ctx, in, info, handler)
  5520. }
  5521. func _Node_NodeUnstageVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5522. in := new(NodeUnstageVolumeRequest)
  5523. if err := dec(in); err != nil {
  5524. return nil, err
  5525. }
  5526. if interceptor == nil {
  5527. return srv.(NodeServer).NodeUnstageVolume(ctx, in)
  5528. }
  5529. info := &grpc.UnaryServerInfo{
  5530. Server: srv,
  5531. FullMethod: "/csi.v1.Node/NodeUnstageVolume",
  5532. }
  5533. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5534. return srv.(NodeServer).NodeUnstageVolume(ctx, req.(*NodeUnstageVolumeRequest))
  5535. }
  5536. return interceptor(ctx, in, info, handler)
  5537. }
  5538. func _Node_NodePublishVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5539. in := new(NodePublishVolumeRequest)
  5540. if err := dec(in); err != nil {
  5541. return nil, err
  5542. }
  5543. if interceptor == nil {
  5544. return srv.(NodeServer).NodePublishVolume(ctx, in)
  5545. }
  5546. info := &grpc.UnaryServerInfo{
  5547. Server: srv,
  5548. FullMethod: "/csi.v1.Node/NodePublishVolume",
  5549. }
  5550. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5551. return srv.(NodeServer).NodePublishVolume(ctx, req.(*NodePublishVolumeRequest))
  5552. }
  5553. return interceptor(ctx, in, info, handler)
  5554. }
  5555. func _Node_NodeUnpublishVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5556. in := new(NodeUnpublishVolumeRequest)
  5557. if err := dec(in); err != nil {
  5558. return nil, err
  5559. }
  5560. if interceptor == nil {
  5561. return srv.(NodeServer).NodeUnpublishVolume(ctx, in)
  5562. }
  5563. info := &grpc.UnaryServerInfo{
  5564. Server: srv,
  5565. FullMethod: "/csi.v1.Node/NodeUnpublishVolume",
  5566. }
  5567. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5568. return srv.(NodeServer).NodeUnpublishVolume(ctx, req.(*NodeUnpublishVolumeRequest))
  5569. }
  5570. return interceptor(ctx, in, info, handler)
  5571. }
  5572. func _Node_NodeGetVolumeStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5573. in := new(NodeGetVolumeStatsRequest)
  5574. if err := dec(in); err != nil {
  5575. return nil, err
  5576. }
  5577. if interceptor == nil {
  5578. return srv.(NodeServer).NodeGetVolumeStats(ctx, in)
  5579. }
  5580. info := &grpc.UnaryServerInfo{
  5581. Server: srv,
  5582. FullMethod: "/csi.v1.Node/NodeGetVolumeStats",
  5583. }
  5584. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5585. return srv.(NodeServer).NodeGetVolumeStats(ctx, req.(*NodeGetVolumeStatsRequest))
  5586. }
  5587. return interceptor(ctx, in, info, handler)
  5588. }
  5589. func _Node_NodeExpandVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5590. in := new(NodeExpandVolumeRequest)
  5591. if err := dec(in); err != nil {
  5592. return nil, err
  5593. }
  5594. if interceptor == nil {
  5595. return srv.(NodeServer).NodeExpandVolume(ctx, in)
  5596. }
  5597. info := &grpc.UnaryServerInfo{
  5598. Server: srv,
  5599. FullMethod: "/csi.v1.Node/NodeExpandVolume",
  5600. }
  5601. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5602. return srv.(NodeServer).NodeExpandVolume(ctx, req.(*NodeExpandVolumeRequest))
  5603. }
  5604. return interceptor(ctx, in, info, handler)
  5605. }
  5606. func _Node_NodeGetCapabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5607. in := new(NodeGetCapabilitiesRequest)
  5608. if err := dec(in); err != nil {
  5609. return nil, err
  5610. }
  5611. if interceptor == nil {
  5612. return srv.(NodeServer).NodeGetCapabilities(ctx, in)
  5613. }
  5614. info := &grpc.UnaryServerInfo{
  5615. Server: srv,
  5616. FullMethod: "/csi.v1.Node/NodeGetCapabilities",
  5617. }
  5618. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5619. return srv.(NodeServer).NodeGetCapabilities(ctx, req.(*NodeGetCapabilitiesRequest))
  5620. }
  5621. return interceptor(ctx, in, info, handler)
  5622. }
  5623. func _Node_NodeGetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5624. in := new(NodeGetInfoRequest)
  5625. if err := dec(in); err != nil {
  5626. return nil, err
  5627. }
  5628. if interceptor == nil {
  5629. return srv.(NodeServer).NodeGetInfo(ctx, in)
  5630. }
  5631. info := &grpc.UnaryServerInfo{
  5632. Server: srv,
  5633. FullMethod: "/csi.v1.Node/NodeGetInfo",
  5634. }
  5635. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5636. return srv.(NodeServer).NodeGetInfo(ctx, req.(*NodeGetInfoRequest))
  5637. }
  5638. return interceptor(ctx, in, info, handler)
  5639. }
  5640. var _Node_serviceDesc = grpc.ServiceDesc{
  5641. ServiceName: "csi.v1.Node",
  5642. HandlerType: (*NodeServer)(nil),
  5643. Methods: []grpc.MethodDesc{
  5644. {
  5645. MethodName: "NodeStageVolume",
  5646. Handler: _Node_NodeStageVolume_Handler,
  5647. },
  5648. {
  5649. MethodName: "NodeUnstageVolume",
  5650. Handler: _Node_NodeUnstageVolume_Handler,
  5651. },
  5652. {
  5653. MethodName: "NodePublishVolume",
  5654. Handler: _Node_NodePublishVolume_Handler,
  5655. },
  5656. {
  5657. MethodName: "NodeUnpublishVolume",
  5658. Handler: _Node_NodeUnpublishVolume_Handler,
  5659. },
  5660. {
  5661. MethodName: "NodeGetVolumeStats",
  5662. Handler: _Node_NodeGetVolumeStats_Handler,
  5663. },
  5664. {
  5665. MethodName: "NodeExpandVolume",
  5666. Handler: _Node_NodeExpandVolume_Handler,
  5667. },
  5668. {
  5669. MethodName: "NodeGetCapabilities",
  5670. Handler: _Node_NodeGetCapabilities_Handler,
  5671. },
  5672. {
  5673. MethodName: "NodeGetInfo",
  5674. Handler: _Node_NodeGetInfo_Handler,
  5675. },
  5676. },
  5677. Streams: []grpc.StreamDesc{},
  5678. Metadata: "github.com/container-storage-interface/spec/csi.proto",
  5679. }