text stringlengths 7 2.39k | embedding listlengths 768 768 |
|---|---|
FindBucketByName returns a bucket by name for a particular organization. | [
0.5115324258804321,
0.17331868410110474,
0.21485790610313416,
0.18617679178714752,
-0.029405508190393448,
-0.4357525706291199,
0.36917415261268616,
-1.0891822576522827,
-1.5148564577102661,
0.3981742560863495,
0.023721734061837196,
-0.18602107465267181,
0.11757640540599823,
0.4490214586257... |
FindBucket retrieves the bucket and checks to see if the authorizer on context has read access to the bucket. | [
0.33303162455558777,
0.03883139044046402,
0.6324033737182617,
0.6832555532455444,
0.4935540556907654,
-0.4339902102947235,
0.6184641122817993,
-0.6901067495346069,
-0.1888662874698639,
-0.6317125558853149,
1.6161181926727295,
0.28766000270843506,
0.29111891984939575,
0.20486381649971008,
... |
FindBuckets retrieves all buckets that match the provided filter and then filters the list down to only the resources that are authorized. | [
-0.049530625343322754,
0.4748859405517578,
0.42182350158691406,
0.8048298954963684,
-0.9439631104469299,
-0.1412055790424347,
0.06014183908700943,
-0.5581610798835754,
-0.35605499148368835,
-0.1734210103750229,
0.34743252396583557,
-0.15776897966861725,
0.19719775021076202,
0.3558023571968... |
CreateBucket checks to see if the authorizer on context has write access to the global buckets resource. | [
-0.07035266607999802,
0.5299778580665588,
0.42624586820602417,
0.5440512895584106,
1.286061406135559,
0.6514438390731812,
0.9363493919372559,
-0.8607432246208191,
-0.5042448043823242,
-0.3241783082485199,
0.8049353957176208,
0.34162336587905884,
0.33659544587135315,
-0.11341255903244019,
... |
UpdateBucket checks to see if the authorizer on context has write access to the bucket provided. | [
-0.8657539486885071,
-0.35672101378440857,
0.5988022685050964,
0.47250843048095703,
0.586457371711731,
-0.28814563155174255,
0.5749862194061279,
-0.10589301586151123,
0.05790659412741661,
-0.02054833061993122,
0.8245770335197449,
0.6029884219169617,
0.03967570886015892,
-0.1033865362405777... |
DeleteBucket checks to see if the authorizer on context has write access to the bucket provided. | [
-0.14719966053962708,
-0.0513930544257164,
0.5740755200386047,
0.5451094508171082,
1.099061369895935,
-0.2160683572292328,
0.887959897518158,
0.16163115203380585,
0.8231707215309143,
-0.8401339650154114,
1.255967617034912,
0.8680973052978516,
0.007175519596785307,
0.14788387715816498,
-0... |
Pull pulls a CNAB bundle file from an OCI registry | [
0.8105525374412537,
-0.19731687009334564,
0.13513436913490295,
0.15989932417869568,
0.10215487331151962,
0.7881087064743042,
1.1700271368026733,
0.307468980550766,
-0.22059482336044312,
-0.010593574494123459,
0.6328137516975403,
-0.1079922541975975,
-0.25041139125823975,
-1.287664413452148... |
PullBundle returns a thin bundle from a registry | [
0.4232381284236908,
-0.06394430994987488,
0.05845959112048149,
-0.4245308041572571,
-0.6389075517654419,
0.34229379892349243,
0.13324575126171112,
0.7432681918144226,
-0.18284283578395844,
-0.4492017328739166,
0.22679495811462402,
0.2929569184780121,
-0.9512589573860168,
-0.956793248653411... |
Execute a GraphQL query | [
-0.10984480381011963,
0.2021099328994751,
0.04934106394648552,
0.01298538874834776,
0.04325021430850029,
-0.7971624135971069,
-1.5547808408737183,
-0.6087743043899536,
0.0391138419508934,
0.24465987086296082,
0.4872015118598938,
0.7980653643608093,
0.3748509883880615,
-1.7057819366455078,
... |
Leader 1. Send heartbeat periodically 2. If command received from client, append to local log, replicate to all. 3. If last log index >= nextIndex for a follower, send AppendEntries RPC with log start at nextIndex 4. If exists N > commitIndex, and majority of matchIndex[i] >= N and log[N].term == currentTerm, set commi... | [
0.13542407751083374,
-0.25655898451805115,
0.6629291772842407,
0.11388073116540909,
0.03835448622703552,
0.7332457304000854,
0.11328084766864777,
-0.7649009823799133,
0.7220321893692017,
-0.34411558508872986,
0.40668612718582153,
0.2977938652038574,
-0.5574538111686707,
0.09447744488716125... |
replicator: trigger by peerCh, replicate log until nextIndex to each peer | [
-0.3333874046802521,
0.20699262619018555,
0.17194537818431854,
-0.39651966094970703,
-0.5040798783302307,
0.18446850776672363,
-0.1450256109237671,
0.3220925033092499,
-0.05806649848818779,
0.278507262468338,
-0.7358272075653076,
0.08524205535650253,
-0.06309258937835693,
-0.53198379278182... |
startSync will choose the best peer among the available candidate peers to download/sync the blockchain from. When syncing is already running, it simply returns. It also examines the candidates for any which are no longer candidates and removes them as needed. | [
0.4666595757007599,
-0.8104017972946167,
0.4483639895915985,
1.3500378131866455,
-0.1550566703081131,
-0.1527802050113678,
0.24202853441238403,
0.7753638625144958,
0.037727970629930496,
0.47731393575668335,
0.2228040099143982,
1.33175790309906,
-0.29554033279418945,
-0.16810886561870575,
... |
isSyncCandidate returns whether or not the peer is a candidate to consider syncing from. | [
0.6766752600669861,
-1.2659952640533447,
0.46654802560806274,
1.1956329345703125,
-0.8858402371406555,
0.3132065236568451,
-0.6698728203773499,
1.0280685424804688,
0.13457563519477844,
-0.037606652826070786,
0.4005269706249237,
1.3560482263565063,
-0.08508236706256866,
0.05031496286392212,... |
handleNewPeerMsg deals with new peers that have signalled they may be considered as a sync peer (they have already successfully negotiated). It also starts syncing if needed. It is invoked from the syncHandler goroutine. | [
-0.18834161758422852,
-0.5895587205886841,
0.2441282570362091,
0.2675327658653259,
0.16105124354362488,
-0.5997136831283569,
-0.44473448395729065,
-0.16277872025966644,
0.016307033598423004,
0.12344077974557877,
-0.29580244421958923,
-0.5323665738105774,
-0.46514394879341125,
1.44589662551... |
handleDonePeerMsg deals with peers that have signalled they are done. It removes the peer as a candidate for syncing and in the case where it was the current sync peer, attempts to select a new best peer to sync from. It is invoked from the syncHandler goroutine. | [
-0.5656294822692871,
-0.4878997504711151,
0.3871014714241028,
-0.19828495383262634,
0.5128479599952698,
-0.5754604339599609,
0.38019871711730957,
0.022082913666963577,
0.344519704580307,
-0.10145718604326248,
-0.09382971376180649,
-0.1862918585538864,
-0.5775756239891052,
1.233257412910461... |
handleTxMsg handles transaction messages from all peers. | [
0.1920856237411499,
0.9156855940818787,
0.17481154203414917,
-0.46235379576683044,
0.13199180364608765,
-0.8904047012329102,
-0.9216344356536865,
0.29515156149864197,
-0.32663509249687195,
0.32461637258529663,
0.27938753366470337,
-1.889281988143921,
-0.4492391049861908,
0.6764237284660339... |
current returns true if we believe we are synced with our peers, false if we still have blocks to check | [
-0.21417401731014252,
-0.5630283355712891,
0.5553378462791443,
0.017313990741968155,
-0.3938894271850586,
-0.09950707107782364,
-0.2022479772567749,
-0.4856489598751068,
-0.8766080141067505,
0.6224585771560669,
-0.12036800384521484,
0.3923565745353699,
-0.7669083476066589,
0.34641993045806... |
handleBlockMsg handles block messages from all peers. | [
-0.22296060621738434,
0.7005863189697266,
0.3743351697921753,
1.07058584690094,
0.27351588010787964,
-0.43902587890625,
0.14546816051006317,
-0.41533029079437256,
-0.8535773158073425,
0.046329472213983536,
0.5673112869262695,
-0.4874936640262604,
-1.043005108833313,
1.6129106283187866,
0... |
haveInventory returns whether or not the inventory represented by the passed inventory vector is known. This includes checking all of the various places inventory can be when it is in different states such as blocks that are part of the main chain, on a side chain, in the orphan pool, and transactions that are in the m... | [
-0.5459052920341492,
-0.13054127991199493,
0.7114787697792053,
0.3828689455986023,
0.1871073991060257,
0.14417457580566406,
1.1815180778503418,
-0.40600576996803284,
0.04969961196184158,
-0.013364811427891254,
-0.5763949751853943,
0.18680956959724426,
-0.7472764253616333,
0.297736555337905... |
handleInvMsg handles inv messages from all peers. We examine the inventory advertised by the remote peer and act accordingly. | [
-0.39117610454559326,
-0.47420451045036316,
0.4165853261947632,
0.15982332825660706,
0.49587514996528625,
0.03895736485719681,
-0.30797886848449707,
0.2859669327735901,
-0.5134013295173645,
0.18949109315872192,
0.22104403376579285,
0.08362633734941483,
-1.3707401752471924,
0.30563265085220... |
limitMap is a helper function for maps that require a maximum limit by evicting a random transaction if adding a new value would cause it to overflow the maximum allowed. | [
0.05159685015678406,
0.32850030064582825,
0.6420443058013916,
-0.13635596632957458,
-0.7965258955955505,
0.2184031456708908,
0.028827965259552002,
-0.3326933681964874,
1.102807641029358,
0.8204188346862793,
-0.13009832799434662,
-0.699497640132904,
-0.6034595966339111,
-0.9483996629714966,... |
blockHandler is the main handler for the sync manager. It must be run as a goroutine. It processes block and inv messages in a separate goroutine from the peer handlers so the block (msgBlock) messages are handled by a single thread without needing to lock memory data structures. This is important because the sync mana... | [
-0.07319091260433197,
-0.08291943371295929,
0.8722229599952698,
0.5979167222976685,
-0.3460380434989929,
0.13025955855846405,
1.035825252532959,
-0.5818824768066406,
-0.8320620059967041,
0.17715106904506683,
0.4443521797657013,
-0.3066039979457855,
-1.2683367729187012,
0.4221172034740448,
... |
handleBlockchainEvents handles notifications from blockchain. It does things such as request orphan block parents and relay accepted blocks to connected peers. | [
0.9092418551445007,
-0.10555130243301392,
0.541772186756134,
0.5322917699813843,
0.1585606187582016,
-0.10201480239629745,
0.21449066698551178,
-0.3003920316696167,
-0.030703986063599586,
0.43086186051368713,
-0.30383187532424927,
-0.012789158150553703,
-0.6407420039176941,
0.3916117548942... |
NewPeer informs the sync manager of a newly active peer. | [
0.9963167309761047,
-1.293480396270752,
0.32500702142715454,
0.8648784160614014,
-0.596865177154541,
-0.17127850651741028,
-0.6777617931365967,
0.1385057270526886,
-0.34206560254096985,
-0.2755662500858307,
-1.1201666593551636,
0.43254554271698,
-0.5426222681999207,
0.1950269192457199,
0... |
QueueTx adds the passed transaction message and peer to the block handling queue. Responds to the done channel argument after the tx message is processed. | [
0.2893061935901642,
0.5181189179420471,
0.6368823051452637,
-0.10583589971065521,
0.4670923948287964,
-0.1342608481645584,
-0.2624760866165161,
-0.6493643522262573,
-0.19972169399261475,
0.18259775638580322,
-0.7769898772239685,
-0.16356322169303894,
-0.8963545560836792,
-0.045092746615409... |
QueueBlock adds the passed block message and peer to the block handling queue. Responds to the done channel argument after the block message is processed. | [
-0.26492616534233093,
0.41986387968063354,
0.7551473379135132,
0.6087543368339539,
0.8366683125495911,
-0.09369905292987823,
0.2725961208343506,
-0.964393675327301,
-0.266645610332489,
-0.3246654272079468,
-0.34310588240623474,
0.3069765269756317,
-1.0325011014938354,
0.9612650871276855,
... |
QueueInv adds the passed inv message and peer to the block handling queue. | [
0.04079905152320862,
-0.4082733392715454,
0.6183336973190308,
0.6956241726875305,
0.1346481889486313,
0.12343350797891617,
-0.6257330775260925,
-0.16671141982078552,
-1.4208998680114746,
0.16444189846515656,
-0.6185144782066345,
1.2175794839859009,
-1.567328691482544,
0.320039302110672,
... |
DonePeer informs the blockmanager that a peer has disconnected. | [
-0.03447342664003372,
-0.6872931122779846,
0.5735543370246887,
-0.0025787269696593285,
-0.4176923632621765,
0.1762140542268753,
-0.32939115166664124,
-0.3241341710090637,
-0.13584308326244354,
-0.013805447146296501,
-0.81392902135849,
-0.8329213261604309,
-0.9811732769012451,
0.62023288011... |
Start begins the core block handler which processes block and inv messages. | [
0.44893568754196167,
-0.2743803560733795,
0.25442978739738464,
0.7781978845596313,
-0.2665919363498688,
-0.12132865190505981,
1.0133697986602783,
0.09186162054538727,
-0.8299818634986877,
0.14240998029708862,
-0.5408222079277039,
1.0968196392059326,
-0.6640135645866394,
0.6845110654830933,... |
Stop gracefully shuts down the sync manager by stopping all asynchronous handlers and waiting for them to finish. | [
-0.5767217874526978,
-0.24596227705478668,
0.43016543984413147,
0.15341079235076904,
0.22460231184959412,
0.43878036737442017,
0.3868775963783264,
0.15791122615337372,
-1.0914360284805298,
-0.2407904714345932,
-0.9875112771987915,
-0.02371525764465332,
0.004865014459937811,
0.2978315353393... |
SyncPeerID returns the ID of the current sync peer, or 0 if there is none. | [
0.719784677028656,
-0.991319477558136,
0.6915761232376099,
0.3434005677700043,
-0.2997754216194153,
0.04381408169865608,
-0.4333135783672333,
0.3090640604496002,
-0.1978328675031662,
0.9308744668960571,
0.23512312769889832,
0.6461321115493774,
-0.9548773765563965,
0.16913765668869019,
0.... |
IsCurrent returns whether or not the sync manager believes it is synced with the connected peers. | [
-0.2957765460014343,
-1.1092448234558105,
0.38078925013542175,
-0.09952785819768906,
-0.00516925286501646,
0.11387614160776138,
-0.2277912050485611,
0.10755297541618347,
-0.3383844792842865,
0.5356713533401489,
-0.2541584372520447,
0.4651682674884796,
-0.46038246154785156,
-0.2446151524782... |
Pause pauses the sync manager until the returned channel is closed. Note that while paused, all peer and block processing is halted. The message sender should avoid pausing the sync manager for long durations. | [
-0.04726405814290047,
-0.45521584153175354,
0.48850318789482117,
-0.37140318751335144,
0.5788195729255676,
-0.3226575553417206,
0.4227934777736664,
-0.9851101040840149,
-0.09624747931957245,
-0.9886646270751953,
0.5388184189796448,
0.25512662529945374,
-1.416940450668335,
-0.39918190240859... |
New constructs a new SyncManager. Use Start to begin processing asynchronous block, tx, and inv updates. | [
0.6254957318305969,
-0.8499088883399963,
0.44284528493881226,
0.9829492568969727,
-0.44691628217697144,
-1.0404400825500488,
-0.007138874381780624,
0.21282513439655304,
-0.8554311990737915,
-0.38516345620155334,
-0.5613703727722168,
0.37410321831703186,
-0.11781138181686401,
0.222046762704... |
AddPrincipal adds debt to a cdp if the additional debt does not put the cdp below the liquidation ratio | [
0.34699028730392456,
0.27717405557632446,
0.5307114124298096,
-0.9167532324790955,
-0.6558080315589905,
1.3593387603759766,
-0.9702860713005066,
-0.4388238787651062,
0.5367419123649597,
-1.4286425113677979,
0.86160808801651,
0.45981258153915405,
-1.4781912565231323,
-0.3270413875579834,
... |
RepayPrincipal removes debt from the cdp If all debt is repaid, the collateral is returned to depositors and the cdp is removed from the store | [
0.37755221128463745,
0.13655371963977814,
0.44235578179359436,
-0.9676306843757629,
-0.8981770277023315,
0.47957032918930054,
-0.41265812516212463,
1.388413906097412,
0.43043309450149536,
-0.0980210155248642,
0.04303056374192238,
0.35124772787094116,
-1.7491395473480225,
-0.872205018997192... |
ValidatePaymentCoins validates that the input coins are valid for repaying debt | [
0.4298834502696991,
0.233722984790802,
0.3151555061340332,
-0.9747625589370728,
0.04837686941027641,
0.7132936120033264,
-0.9508466124534607,
-0.502619206905365,
-0.5289565920829773,
0.0965438038110733,
1.002921462059021,
0.21942248940467834,
-1.0454989671707153,
-0.2600322663784027,
-0.... |
ReturnCollateral returns collateral to depositors on a cdp and removes deposits from the store | [
0.7692760825157166,
-0.29826775193214417,
0.38875484466552734,
0.13342507183551788,
-1.12203049659729,
0.13776172697544098,
0.5451843738555908,
0.598851203918457,
0.2735911011695862,
0.5074818730354309,
0.06427657604217529,
-0.010300506837666035,
-1.0414360761642456,
-0.4832371771335602,
... |
calculatePayment divides the input payment into the portions that will be used to repay fees and principal owed Principal + AccumulatedFees fees AccumulatedFees CONTRACT: owned and payment denoms must be checked before calling this function. | [
0.3409790098667145,
0.8273471593856812,
0.3759807348251343,
0.34333187341690063,
0.17267252504825592,
-0.09988950192928314,
1.1281501054763794,
-0.09537594020366669,
0.36125826835632324,
-0.4885663390159607,
1.180804967880249,
-0.3429497480392456,
-1.0611321926116943,
0.9260378479957581,
... |
validatePrincipalPayment checks that the payment is either full or does not put the cdp below the debt floor CONTRACT: payment denom must be checked before calling this function. | [
0.42401692271232605,
0.1161886528134346,
0.47514626383781433,
0.10950984805822372,
-0.4059802293777466,
0.7220930457115173,
0.3082379698753357,
-0.13030055165290833,
0.06676296889781952,
-0.781134307384491,
0.5905486941337585,
0.23005299270153046,
-1.396068811416626,
0.672052264213562,
0... |
ReadDirect directly reads the register instead of using the bus | [
0.03281063213944435,
-0.25132521986961365,
0.6636078357696533,
0.1936240792274475,
-0.2675921320915222,
1.4402660131454468,
0.9557670950889587,
-0.31282925605773926,
-0.8593910336494446,
-1.5630863904953003,
0.5173012018203735,
0.6177806854248047,
-0.5556433200836182,
-0.20767444372177124,... |
WriteDirect directly writes the register instead of using the bus | [
-0.6702613830566406,
-0.2641697824001312,
0.5723423361778259,
0.11820273101329803,
0.808276355266571,
1.2668107748031616,
1.5817301273345947,
0.010630055330693722,
-0.5569499731063843,
-1.6092849969863892,
-0.16120398044586182,
0.5276550054550171,
-0.766516923904419,
0.6365211606025696,
... |
Increment directly increments the value in a register Not sure all hardware supports this | [
-0.42220452427864075,
0.4840289354324341,
0.37321212887763977,
1.0917481184005737,
-0.5731070041656494,
0.5068079233169556,
0.47432491183280945,
0.13417331874370575,
0.06770732998847961,
-1.4241983890533447,
-0.45170795917510986,
1.0223957300186157,
0.05124058946967125,
0.343999445438385,
... |
Validate validates this assertion options1 | [
0.23996491730213165,
-0.3596310317516327,
0.2379073202610016,
1.5660030841827393,
0.25452157855033875,
1.0977177619934082,
1.361048936843872,
0.031509872525930405,
0.4411746561527252,
0.018767505884170532,
1.1838569641113281,
0.358967125415802,
-1.1215358972549438,
0.8148495554924011,
-0... |
XXX_OneofFuncs is for the internal use of the proto package. | [
-0.17013126611709595,
1.0761243104934692,
0.20915263891220093,
-0.6182059049606323,
0.6224396824836731,
-0.8975542783737183,
0.7869046330451965,
-0.6365662217140198,
0.7954583168029785,
-1.0330039262771606,
0.006769324187189341,
-0.33913013339042664,
-0.4915696978569031,
0.0210608523339033... |
NewSimpleNamingStrategy return simple naming strategy instance | [
0.16234594583511353,
-0.18734970688819885,
0.37176427245140076,
-1.0520318746566772,
-1.486510157585144,
0.13680711388587952,
-1.0092346668243408,
-0.6377691626548767,
0.5335000157356262,
-0.468860924243927,
-1.2892498970031738,
-0.3176743984222412,
0.579753041267395,
-0.3427793085575104,
... |
Minversion support added in format 26 | [
-0.28310316801071167,
-1.7735658884048462,
0.041112788021564484,
0.8048851490020752,
-0.31283485889434814,
0.24849319458007812,
-0.7241493463516235,
-0.4175015687942505,
1.2356693744659424,
-0.05886295437812805,
-0.9465783834457397,
-0.053109023720026016,
-1.0051050186157227,
-0.0874645933... |
Delta manifest support added in format 26 | [
-0.15958289802074432,
-1.8138058185577393,
0.3324495553970337,
0.020340485498309135,
-0.3513623774051666,
0.798265278339386,
-0.47946032881736755,
0.38888439536094666,
0.9642974734306335,
-0.8465592861175537,
-0.20834113657474518,
-0.3654715120792389,
-0.27935791015625,
-0.533704400062561,... |
Experimental bundles added in format 27 | [
0.22141245007514954,
-0.6688793897628784,
0.2253861278295517,
-0.14392903447151184,
0.4283384084701538,
1.5323822498321533,
-0.2126765251159668,
-0.11382969468832016,
0.433411180973053,
0.7557168006896973,
0.7586520910263062,
-0.24036380648612976,
0.2812963128089905,
-0.2244153469800949,
... |
optional (alsoadd) support added in format 29 | [
0.8167433738708496,
-0.9154614806175232,
-0.005025037564337254,
0.169901505112648,
0.8590667247772217,
1.0627424716949463,
-0.5946255922317505,
0.20547011494636536,
2.1728639602661133,
0.0868285521864891,
0.033433686941862106,
-0.4897327423095703,
-0.10558273643255234,
-0.00351919373497366... |
New creates a loader with the specified path. | [
0.4291919767856598,
-1.1526151895523071,
0.3049175441265106,
0.33671700954437256,
-0.7127870917320251,
0.028231073170900345,
-0.6661002039909363,
-0.9716143608093262,
-1.325283408164978,
-0.6425952911376953,
-0.4014919400215149,
0.3737861216068268,
0.5459222197532654,
0.5153217315673828,
... |
Load returns the current content of the file. The file is expected to exist and be readable, else an error is returned. | [
-0.25702619552612305,
-0.6760777235031128,
0.8339160084724426,
-0.47237086296081543,
-0.2027369737625122,
0.5845771431922913,
-0.19362539052963257,
-0.59003084897995,
-1.309916615486145,
0.37817445397377014,
0.7378412485122681,
-0.7069439888000488,
-0.2069512903690338,
-1.3322618007659912,... |
NewWatcher returns a channel of update events the loader. The watcher must be enabled using the WithWatch construction option. The watcher will send nil events when the loader has changed. If a terminal error occurs it is sent to the update channel which is then closed. The watcher will exit when the done is closed or ... | [
0.291042298078537,
-1.5305427312850952,
0.505543053150177,
-0.012491338886320591,
-0.41662922501564026,
0.19636116921901703,
-0.5812661647796631,
-1.1546952724456787,
-0.5293125510215759,
-0.46123793721199036,
0.1778663545846939,
0.23550967872142792,
-0.5608494877815247,
0.9533580541610718... |
Open an existing set 'name', and initialize it to empty. | [
-0.3025476038455963,
0.006714286748319864,
0.5382651090621948,
-1.026768445968628,
-1.2414592504501343,
-0.3165266811847687,
0.20174027979373932,
-0.7975915670394897,
-0.01961406320333481,
-0.7539780139923096,
-0.8649914264678955,
0.238357275724411,
-0.012063802219927311,
-0.87906861305236... |
Update the kernel nft set to to contents of Map[]. | [
-1.3804905414581299,
-0.4988763630390167,
0.12562917172908783,
0.032893046736717224,
-0.5340633988380432,
-0.26929202675819397,
-1.7219994068145752,
-0.913485586643219,
-0.05398104339838028,
0.44898954033851624,
-0.1315402388572693,
0.05753044784069061,
-0.43091338872909546,
1.262747049331... |
Reason can be a string with format verbs, which will be replace by the specified values | [
0.955841064453125,
-0.1753881722688675,
0.5214836597442627,
0.37296921014785767,
0.25897517800331116,
-0.508375346660614,
-1.1206337213516235,
0.32673051953315735,
1.2337843179702759,
-0.6575765013694763,
-0.013508819974958897,
0.8362257480621338,
-0.18469004333019257,
0.4702003598213196,
... |
String returns VolumeStoreMode with string description. | [
-0.13337235152721405,
-0.5957253575325012,
0.19763386249542236,
-0.4933294951915741,
0.43362709879875183,
-0.28150346875190735,
-1.0540865659713745,
0.07216820865869522,
0.4089697003364563,
0.01289542019367218,
0.05584501102566719,
-0.29665860533714294,
-0.29178738594055176,
-1.09577035903... |
Valid is used to check VolumeStoreMode is valid or not. | [
-0.024764347821474075,
-1.0729756355285645,
0.7096655964851379,
0.37375110387802124,
0.2809258699417114,
0.2719922959804535,
-0.9128137230873108,
0.3871833384037018,
-0.09355191141366959,
-0.03378881886601448,
0.015504060313105583,
-0.7413972020149231,
-0.4622480273246765,
-0.9733256101608... |
IsRemote checks VolumeStoreMode is remote mode or not. | [
0.12563182413578033,
-0.9897607564926147,
0.7662652134895325,
0.5596520304679871,
-0.011488284915685654,
0.46322306990623474,
-1.4746520519256592,
-0.18801285326480865,
0.7480114698410034,
-0.07789555937051773,
-1.327254295349121,
-0.03096091002225876,
-1.1582010984420776,
-1.2245870828628... |
IsLocal checks VolumeStoreMode is local mode or not. | [
0.6062496900558472,
-1.130141019821167,
0.5303552150726318,
0.5147035121917725,
0.26845380663871765,
-0.5544330477714539,
-0.5271443128585815,
0.33043748140335083,
1.0402570962905884,
0.018555233255028725,
-0.45509177446365356,
-0.011564082466065884,
-0.3942663371562958,
-0.757924139499664... |
CentralCreateDelete checks VolumeStoreMode is center mode of operation or not. | [
1.2755485773086548,
-0.9997954964637756,
0.5997573137283325,
0.9027684330940247,
0.6417626142501831,
0.43358519673347473,
-0.41380205750465393,
0.29269060492515564,
0.8037140369415283,
-0.10828087478876114,
0.25843945145606995,
-0.9042471647262573,
-0.7671627998352051,
-0.3637353479862213,... |
UseLocalMeta checks VolumeStoreMode is store metadata on local or not. | [
0.38706210255622864,
-0.9018167853355408,
0.39765045046806335,
0.3374718129634857,
0.48211660981178284,
-0.21167419850826263,
-0.5661804676055908,
0.24244393408298492,
0.030758852139115334,
0.33523446321487427,
0.27104154229164124,
-0.001087102689780295,
-0.12774154543876648,
0.04805028811... |
Get is used to get driver from driver table. | [
-0.5615566968917847,
-0.6015174984931946,
0.35951894521713257,
1.0905811786651611,
0.8801793456077576,
-1.1134768724441528,
-1.1060212850570679,
0.5806905031204224,
-0.7378780245780945,
0.32660576701164246,
0.8526536822319031,
0.004294476006180048,
-0.11893730610609055,
-0.8670344352722168... |
GetAll will list all volume drivers. | [
0.4919974207878113,
-1.9458324909210205,
0.046785593032836914,
0.8411250710487366,
1.2742111682891846,
-0.9893425107002258,
-2.0493621826171875,
0.5217810869216919,
0.01618696004152298,
0.300332635641098,
0.4998880624771118,
0.5819509029388428,
-0.5596813559532166,
0.20494459569454193,
0... |
Register add a backend driver module. | [
-0.3839813470840454,
0.1617986559867859,
0.26383715867996216,
0.5661496520042419,
1.712220549583435,
-0.5087862014770508,
-1.2908408641815186,
0.18166589736938477,
0.06276031583547592,
0.4506945013999939,
-0.6490267515182495,
0.578912079334259,
-1.1738739013671875,
0.041636575013399124,
... |
Unregister deletes a driver from driverTable | [
-0.19280678033828735,
0.26355159282684326,
0.2397012710571289,
0.3012344241142273,
0.4111650884151459,
-1.7206920385360718,
-0.06289327889680862,
1.8778188228607178,
-0.4774942100048065,
0.1798589676618576,
0.02828943356871605,
-0.020573295652866364,
-0.32004642486572266,
0.114884883165359... |
Get returns one backend driver with specified name. | [
-0.71976238489151,
-0.6057473421096802,
0.20642180740833282,
0.14122122526168823,
1.3115583658218384,
-1.3673189878463745,
-1.1259087324142456,
-0.30128416419029236,
-0.9260566830635071,
0.5768606066703796,
0.3349582254886627,
0.44962525367736816,
-1.238978624343872,
-0.925506055355072,
... |
GetAll returns all volume drivers. | [
0.5794733762741089,
-1.9303451776504517,
0.08001543581485748,
1.1759769916534424,
1.1176609992980957,
-0.6322835087776184,
-1.8777928352355957,
0.1140737310051918,
-0.1365988701581955,
0.10964177548885345,
0.45330336689949036,
0.30361413955688477,
-0.5770063400268555,
-0.09898941963911057,... |
Exist return true if the backend driver is registered. | [
-0.016621345654129982,
0.306915283203125,
0.5053154230117798,
0.4821217358112335,
2.2699239253997803,
-0.8790570497512817,
-0.5908700227737427,
0.6855443120002747,
-1.1435747146606445,
1.2143570184707642,
-0.2636817991733551,
-0.372205913066864,
-1.419324278831482,
-0.04400324821472168,
... |
AllDriversName return all registered backend driver's name. | [
-0.29231077432632446,
-1.1760164499282837,
0.7127622961997986,
0.952721357345581,
0.3162940442562103,
-0.6346715092658997,
-1.441374659538269,
0.3829570412635803,
0.20996886491775513,
1.247666597366333,
-0.6286267042160034,
0.5250250697135925,
-0.4724332392215729,
0.2669972777366638,
0.4... |
ListDriverOption return backend driver's options by name. | [
-0.3794529139995575,
-0.8165117502212524,
0.46271660923957825,
0.5176671743392944,
1.076360821723938,
-1.5886037349700928,
-0.7390801906585693,
-0.295996755361557,
0.3610073924064636,
1.779837727546692,
-0.33913320302963257,
-0.2061436027288437,
-0.8729528188705444,
-0.297127902507782,
-... |
Alias is used to add driver name's alias into exist driver. | [
-0.7481697797775269,
-1.6619994640350342,
0.8197737336158752,
0.35076844692230225,
0.5792555212974548,
0.4699742794036865,
-0.5427709817886353,
0.7704723477363586,
-0.17161734402179718,
0.7956976294517517,
-0.3623664081096649,
-0.40562668442726135,
0.23736757040023804,
0.37028390169143677,... |
HandleDebug responds with the list of stopper tasks actively running. | [
-0.47149932384490967,
-0.2963210940361023,
0.19920508563518524,
0.22689339518547058,
0.6073865294456482,
-0.5715307593345642,
0.14602971076965332,
0.3289450705051422,
-0.16628651320934296,
-0.6709491014480591,
-0.5177745819091797,
-1.8358911275863647,
0.5842235088348389,
-0.122062891721725... |
Close implements the Closer interface. | [
-0.3254813849925995,
-0.6298118829727173,
0.593767523765564,
-0.14192086458206177,
-1.0313730239868164,
1.8718700408935547,
0.8266772031784058,
-1.2019295692443848,
-0.6786949038505554,
-1.8625142574310303,
0.24265329539775848,
-0.399245023727417,
-0.7622475624084473,
1.026139259338379,
... |
OnPanic is an option which lets the Stopper recover from all panics using the provided panic handler. When Stop() is invoked during stack unwinding, OnPanic is also invoked, but Stop() may not have carried out its duties. | [
1.1046031713485718,
-0.8170677423477173,
0.5130336284637451,
0.7544971704483032,
-0.6527517437934875,
1.0448322296142578,
0.9171488285064697,
-0.4350264370441437,
0.047764766961336136,
-0.45491135120391846,
-0.2343646138906479,
-1.1245306730270386,
0.40129974484443665,
-0.12557971477508545... |
NewStopper returns an instance of Stopper. | [
-0.6119901537895203,
-0.7832856178283691,
-0.1564716249704361,
0.4302430748939514,
-1.319980502128601,
-0.09571302682161331,
-0.6125686168670654,
-0.6007066369056702,
-0.287341445684433,
-0.40237027406692505,
-0.3250848948955536,
-1.272682547569275,
-0.5341387987136841,
0.1377878040075302,... |
Recover is used internally by Stopper to provide a hook for recovery of panics on goroutines started by the Stopper. It can also be invoked explicitly (via "defer s.Recover()") on goroutines that are created outside of Stopper. | [
-0.38845106959342957,
-0.8930891156196594,
0.8450526595115662,
0.5690313577651978,
-0.7415009140968323,
0.011021263897418976,
0.1282535046339035,
-0.28572866320610046,
0.20948909223079681,
-0.8963353633880615,
0.03128891810774803,
-0.8667044043540955,
0.48888567090034485,
-0.32073760032653... |
RunWorker runs the supplied function as a "worker" to be stopped by the stopper. The function is run in a goroutine. | [
-1.855386734008789,
0.4153133034706116,
0.5942156910896301,
-0.12937039136886597,
-0.08898034691810608,
0.5704649686813354,
0.32719478011131287,
0.013474339619278908,
-0.7133603692054749,
-0.5684365630149841,
-0.9852421283721924,
-0.7080172300338745,
0.5016266107559204,
0.05731276795268059... |
AddCloser adds an object to close after the stopper has been stopped. WARNING: memory resources acquired by this method will stay around for the lifetime of the Stopper. Use with care to avoid leaking memory. | [
-1.3031184673309326,
-0.6895214915275574,
0.8298463225364685,
-0.27563944458961487,
-1.535405158996582,
0.8994747996330261,
-0.12256986647844315,
-0.6968545913696289,
0.06350166350603104,
-1.0251818895339966,
-0.1680184155702591,
-0.7312396764755249,
-0.374754399061203,
0.8600240349769592,... |
WithCancelOnQuiesce returns a child context which is canceled when the returned cancel function is called or when the Stopper begins to quiesce, whichever happens first. Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete. | [
1.103917121887207,
-1.185500979423523,
0.6991758942604065,
-0.2691652774810791,
-0.7881367206573486,
0.011719155125319958,
-0.23646748065948486,
-0.3310106098651886,
0.6429871320724487,
-0.6405449509620667,
-0.4257950782775879,
-1.224587082862854,
0.0006628978298977017,
0.02306455187499523... |
WithCancelOnStop returns a child context which is canceled when the returned cancel function is called or when the Stopper begins to stop, whichever happens first. Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete. | [
0.49492552876472473,
-0.9308966398239136,
0.7381710410118103,
0.13469217717647552,
-1.855686068534851,
0.34794166684150696,
-0.4991556406021118,
-0.3765231668949127,
0.15835776925086975,
0.20796585083007812,
-0.18154682219028473,
-1.390325903892517,
0.9889883995056152,
-0.5457034111022949,... |
RunTask adds one to the count of tasks left to quiesce in the system. Any worker which is a "first mover" when starting tasks must call this method before starting work on a new task. First movers include goroutines launched to do periodic work and the kv/db.go gateway which accepts external client requests. taskName i... | [
-0.4511941075325012,
0.638460636138916,
0.8416892886161804,
0.11601220816373825,
0.08045592159032822,
0.16528348624706268,
0.6455696225166321,
-0.13536596298217773,
-0.47530099749565125,
-0.41802284121513367,
-0.7508298754692078,
-0.16642914712429047,
-0.16108478605747223,
0.53105992078781... |
RunTaskWithErr is like RunTask(), but takes in a callback that can return an error. The error is returned to the caller. | [
-0.240897074341774,
-0.5940240025520325,
0.4584510624408722,
1.353737711906433,
-1.8970130681991577,
0.22010621428489685,
-0.11034654825925827,
0.33291733264923096,
0.418622761964798,
-0.06198989599943161,
-0.30205589532852173,
-0.4371979832649231,
-0.20670144259929657,
0.8005670309066772,... |
RunAsyncTask is like RunTask, except the callback is run in a goroutine. The method doesn't block for the callback to finish execution. | [
-1.016971468925476,
0.1257844716310501,
0.6863405704498291,
0.22915714979171753,
-0.2780267298221588,
-0.08281711488962173,
0.13953092694282532,
-0.17340365052223206,
0.03641118109226227,
0.21712221205234528,
-0.43724679946899414,
0.2098221629858017,
-0.3559347689151764,
-0.002060316735878... |
RunLimitedAsyncTask runs function f in a goroutine, using the given channel as a semaphore to limit the number of tasks that are run concurrently to the channel's capacity. If wait is true, blocks until the semaphore is available in order to push back on callers that may be trying to create many tasks. If wait is false... | [
0.23555007576942444,
0.726177990436554,
0.7423619031906128,
0.12695428729057312,
0.002802758477628231,
-0.398861289024353,
0.5755130648612976,
0.07878243178129196,
0.2027098834514618,
0.3336528539657593,
-0.021553603932261467,
-0.6834203004837036,
0.3385156989097595,
-0.22952686250209808,
... |
NumTasks returns the number of active tasks. | [
0.48224133253097534,
0.1825273334980011,
0.6982072591781616,
0.03898720443248749,
0.669741153717041,
-0.22874021530151367,
1.3445160388946533,
0.12875357270240784,
0.23039253056049347,
-0.5373972058296204,
-1.6908185482025146,
-0.7181150317192078,
0.7601693272590637,
-0.5783665776252747,
... |
String implements fmt.Stringer and returns a sorted multiline listing of the TaskMap. | [
-0.12244222313165665,
-1.2254422903060913,
0.5138811469078064,
0.2456589788198471,
-0.553458034992218,
0.6264581680297852,
0.13863006234169006,
-0.9890710115432739,
0.027904599905014038,
-0.8268106579780579,
0.7946338653564453,
-0.4242437481880188,
0.6243668794631958,
-0.04511922597885132,... |
RunningTasks returns a map containing the count of running tasks keyed by call site. | [
-0.44377079606056213,
-0.09709685295820236,
0.5126731991767883,
-0.04526764154434204,
-0.26583346724510193,
0.35281872749328613,
0.7245224714279175,
-0.12023809552192688,
-0.028910107910633087,
0.07134124636650085,
-1.9419888257980347,
-0.514762818813324,
0.47342756390571594,
0.34627756476... |
Stop signals all live workers to stop and then waits for each to confirm it has stopped. | [
-0.6934686303138733,
-0.26482322812080383,
0.29045405983924866,
0.7476224899291992,
0.9318608045578003,
1.2167162895202637,
0.4191237688064575,
0.603600025177002,
-1.0714412927627563,
0.1881369650363922,
-1.283217430114746,
-0.34022897481918335,
-0.294260710477829,
0.09925819933414459,
-... |
ShouldQuiesce returns a channel which will be closed when Stop() has been invoked and outstanding tasks should begin to quiesce. | [
-0.13081496953964233,
-0.46330562233924866,
0.4512058198451996,
-1.446590542793274,
0.25759226083755493,
0.8572289943695068,
0.5729307532310486,
-1.2292132377624512,
-0.438852459192276,
-1.740383267402649,
0.3919479548931122,
-0.031800203025341034,
0.02568121999502182,
-0.01469369977712631... |
ShouldStop returns a channel which will be closed when Stop() has been invoked and outstanding tasks have quiesced. | [
-0.3227192759513855,
-0.6420583724975586,
0.46176382899284363,
-1.2895679473876953,
-0.12045680731534958,
1.0991697311401367,
0.22619444131851196,
-0.3219257593154907,
-0.5454830527305603,
-1.2557631731033325,
0.47944414615631104,
-0.39503711462020874,
0.3456633985042572,
-0.36247038841247... |
IsStopped returns a channel which will be closed after Stop() has been invoked to full completion, meaning all workers have completed and all closers have been closed. | [
-1.176198959350586,
-1.3107202053070068,
0.4748867154121399,
-1.2216728925704956,
0.07728498429059982,
0.5141248106956482,
0.4534258544445038,
-0.8867376446723938,
-0.186118021607399,
-0.40680059790611267,
0.009345938451588154,
0.548846423625946,
-0.4388697147369385,
-0.5200837254524231,
... |
Quiesce moves the stopper to state quiescing and waits until all tasks complete. This is used from Stop() and unittests. | [
-0.33903759717941284,
0.09424334019422531,
0.39162325859069824,
0.07793872058391571,
-0.04835629463195801,
-0.45017269253730774,
0.7937444448471069,
-0.29848137497901917,
-0.3087797462940216,
-0.802147388458252,
-0.7343671917915344,
-0.9144772291183472,
0.6472012400627136,
0.21396633982658... |
ReadResponse reads a server response into the received o. | [
0.2536485195159912,
-0.5319309234619141,
0.4260271191596985,
0.250649094581604,
-0.42248207330703735,
-1.1332019567489624,
-0.1542394906282425,
-0.6475809812545776,
0.9560379981994629,
-0.19656099379062653,
-0.4577060341835022,
-0.03830955550074577,
-0.24323610961437225,
-1.241577029228210... |
NewCreateSubscriptionCustomFieldsCreated creates a CreateSubscriptionCustomFieldsCreated with default headers values | [
1.2204169034957886,
0.017084334045648575,
-0.2043747901916504,
0.4888591170310974,
0.3227352201938629,
-0.29416772723197937,
0.21967162191867828,
-0.35677358508110046,
-0.47594156861305237,
-0.5283958911895752,
-1.2580069303512573,
-0.5219959616661072,
0.15320441126823425,
-0.0540770255029... |
NewCreateSubscriptionCustomFieldsBadRequest creates a CreateSubscriptionCustomFieldsBadRequest with default headers values | [
0.3808854818344116,
-0.35600852966308594,
0.024338053539395332,
0.49914491176605225,
0.15941813588142395,
-0.071548230946064,
-0.1964445412158966,
-0.07191815227270126,
-0.4754787087440491,
-0.7810496091842651,
-0.8371773958206177,
0.568873941898346,
-0.3536757528781891,
0.9075345993041992... |
GetItemInfoByIDs get item info by id | [
-0.5867002010345459,
-0.7533448338508606,
-0.04763574153184891,
-0.16131512820720673,
0.737960159778595,
-0.1436690390110016,
-0.7257199883460999,
-1.3043409585952759,
-1.319154977798462,
0.36306390166282654,
-0.5112228393554688,
0.061538826674222946,
0.4177034795284271,
-0.458799839019775... |
SetupChroot sets up mount and files, a reverter and then chroots for you. | [
1.92193603515625,
-0.3042590916156769,
0.3011220097541809,
1.5733530521392822,
0.9883556365966797,
-0.3313308656215668,
0.6142044067382812,
-0.3475048542022705,
-0.07774049043655396,
-0.18546390533447266,
-0.07948411256074905,
0.6328076720237732,
0.06832518428564072,
0.4299241006374359,
... |
GetName returns the identity name | [
-0.9731600284576416,
-0.6545711755752563,
0.660504162311554,
0.763420581817627,
0.4545077681541443,
0.14409604668617249,
-0.6815704703330994,
-0.425604909658432,
0.5079910159111023,
0.9238224029541016,
-1.142467737197876,
-0.41354966163635254,
-0.14429353177547455,
-0.5097404718399048,
-... |
GetPublicSigner returns the public signer for this identity | [
-0.04887746274471283,
-0.538669764995575,
0.14534291625022888,
-0.1234821155667305,
-0.872683584690094,
0.6125242114067078,
-0.6981847882270813,
-0.05353022739291191,
-1.1047770977020264,
-1.2493795156478882,
-0.6304305195808411,
-0.5107323527336121,
-0.5771034359931946,
0.8708959817886353... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.