text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (client *KeyVaultClient) deleteKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientDeleteKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys/{key-name}" if keyName == "" {...
[ -0.3056893050670624, -0.12145240604877472, 0.7652360796928406, 0.17211194336414337, -0.5905641317367554, -0.04659494385123253, -0.5246359705924988, -0.3069469630718231, -0.38233140110969543, -0.4985966980457306, 0.5036723613739014, 0.48673003911972046, -0.21411992609500885, 0.9005087018013...
func (client *KeyVaultClient) deleteKeyHandleResponse(resp *http.Response) (KeyVaultClientDeleteKeyResponse, error) { result := KeyVaultClientDeleteKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedKeyBundle); err != nil { return KeyVaultClientDeleteKeyResponse{}, err } return result, nil }
[ -0.11832396686077118, -1.020225167274475, 0.21265657246112823, 0.17585012316703796, -1.0662328004837036, 0.012850692495703697, 0.5318201780319214, -0.13653674721717834, 0.558633029460907, 0.19035997986793518, -0.5072460174560547, -1.0177786350250244, -1.172562837600708, -0.2561600506305694...
func (client *KeyVaultClient) encryptCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters, options *KeyVaultClientEncryptOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL)...
[ -0.8813951015472412, -0.08889910578727722, 0.9516776204109192, -0.05222181975841522, -0.16597279906272888, 0.030641786754131317, -0.5837650895118713, -0.509279191493988, -0.8336671590805054, 1.119744062423706, -0.3267221450805664, 0.12187157571315765, -0.15807099640369415, 0.28812631964683...
func (client *KeyVaultClient) encryptHandleResponse(resp *http.Response) (KeyVaultClientEncryptResponse, error) { result := KeyVaultClientEncryptResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyOperationResult); err != nil { return KeyVaultClientEncryptResponse{}, err } return result, nil }
[ 0.010803171433508396, -0.3525303900241852, 0.4659385681152344, -0.3571337163448334, -0.4427933096885681, -0.6195463538169861, 0.4594459533691406, -0.9946162104606628, 0.13009069859981537, 0.5807491540908813, -0.9170114994049072, -0.8437871336936951, -0.7850214242935181, -0.5314285755157471...
func (client *KeyVaultClient) GetDeletedKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientGetDeletedKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/deletedkeys/{key-name}" if ...
[ -0.2372598946094513, 0.057644154876470566, 0.8579272031784058, 0.3528832793235779, -0.6460720300674438, 0.06209654361009598, -0.5750855207443237, -0.2935163676738739, 0.0548645444214344, -0.6493450403213501, 0.5034483671188354, 1.3585566282272339, -0.5841510891914368, 0.7576327323913574, ...
func (client *KeyVaultClient) getDeletedKeyHandleResponse(resp *http.Response) (KeyVaultClientGetDeletedKeyResponse, error) { result := KeyVaultClientGetDeletedKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedKeyBundle); err != nil { return KeyVaultClientGetDeletedKeyResponse{}, err } return r...
[ -0.12202415615320206, -0.9006811380386353, 0.337534099817276, 0.5044928789138794, -1.237177848815918, 0.29314112663269043, 0.3562435805797577, -0.16817764937877655, 0.6653926968574524, 0.004299314226955175, -0.4835607707500458, -0.15975388884544373, -1.459779143333435, -0.03606865182518959...
func (client *KeyVaultClient) GetDeletedKeysCreateRequest(ctx context.Context, vaultBaseURL string, options *KeyVaultClientGetDeletedKeysOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/deletedkeys" req, err := runtime.NewReque...
[ -0.431183785200119, 0.5533117055892944, 0.9406290650367737, -0.038239963352680206, -0.18150047957897186, -0.23250895738601685, -1.0117566585540771, -0.3439957797527313, -0.15839622914791107, -0.45081594586372375, 0.20471028983592987, 0.7664943337440491, -0.6020675301551819, 0.6528685092926...
func (client *KeyVaultClient) GetDeletedKeysHandleResponse(resp *http.Response) (KeyVaultClientGetDeletedKeysResponse, error) { result := KeyVaultClientGetDeletedKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedKeyListResult); err != nil { return KeyVaultClientGetDeletedKeysResponse{}, err } ...
[ -0.21113337576389313, -0.41593748331069946, 0.377441942691803, 0.3932734429836273, -1.1939709186553955, -0.13649971783161163, -0.0378437265753746, -0.4342188239097595, 0.7954885959625244, 0.06762564182281494, -1.1922892332077026, -0.018800020217895508, -0.9986586570739746, 0.55337989330291...
func (client *KeyVaultClient) GetKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, options *KeyVaultClientGetKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys/{key-name}/{key-ve...
[ -0.5908422470092773, -0.18444260954856873, 1.1102581024169922, 0.5797939300537109, -0.13895535469055176, 0.0025015603750944138, -0.8962021470069885, -0.32220399379730225, -0.45283564925193787, 0.0819338783621788, 0.26888424158096313, 0.5797597765922546, -0.47100740671157837, 0.285188227891...
func (client *KeyVaultClient) getKeyHandleResponse(resp *http.Response) (KeyVaultClientGetKeyResponse, error) { result := KeyVaultClientGetKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyBundle); err != nil { return KeyVaultClientGetKeyResponse{}, err } return result, nil }
[ -0.07789777219295502, -0.8292091488838196, 0.459932804107666, 0.3582259714603424, -0.5038878321647644, -0.20374207198619843, 0.32140153646469116, -0.5285341739654541, 0.27110424637794495, 0.04049944132566452, -0.6664706468582153, -1.1825999021530151, -1.0937325954437256, -0.561110854148864...
func (client *KeyVaultClient) getKeyRotationPolicyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientGetKeyRotationPolicyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys/{key-name...
[ -0.124980129301548, 0.17835311591625214, 0.6808346509933472, -0.25751793384552, -0.1829449087381363, 0.6032642722129822, -0.47269362211227417, -0.3379647135734558, -0.3228973150253296, 0.16988106071949005, 0.2522825598716736, 0.3436388671398163, -0.6774160265922546, -0.16689372062683105, ...
func (client *KeyVaultClient) getKeyRotationPolicyHandleResponse(resp *http.Response) (KeyVaultClientGetKeyRotationPolicyResponse, error) { result := KeyVaultClientGetKeyRotationPolicyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyRotationPolicy); err != nil { return KeyVaultClientGetKeyRotationPolic...
[ 0.3189351260662079, -0.4237060546875, 0.28614601492881775, -0.05683114752173424, -0.39100977778434753, 0.7828977108001709, 0.4711948037147522, -0.5119094848632812, 0.4328420162200928, 0.27713435888290405, -0.46587327122688293, -0.9526116251945496, -1.2756202220916748, -0.9068573713302612, ...
func (client *KeyVaultClient) GetKeyVersionsCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientGetKeyVersionsOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys/{key-name}/versions" ...
[ -0.7902281284332275, 0.5176146626472473, 0.9344937801361084, 0.23138394951820374, 0.06097668036818504, -0.18220829963684082, -0.9043005704879761, -0.49634236097335815, -0.409759521484375, 0.32714611291885376, 0.26921921968460083, 0.09491683542728424, -0.14694008231163025, 0.609448969364166...
func (client *KeyVaultClient) GetKeyVersionsHandleResponse(resp *http.Response) (KeyVaultClientGetKeyVersionsResponse, error) { result := KeyVaultClientGetKeyVersionsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyListResult); err != nil { return KeyVaultClientGetKeyVersionsResponse{}, err } return ...
[ -0.1609494388103485, -0.29846322536468506, 0.4021483361721039, 0.5472527742385864, -1.1302002668380737, 0.1437922567129135, -0.22498154640197754, -0.6870424747467041, 0.608984649181366, 0.6737976670265198, -1.3792548179626465, -0.674286961555481, -0.5876734852790833, 0.3148493468761444, ...
func (client *KeyVaultClient) GetKeysCreateRequest(ctx context.Context, vaultBaseURL string, options *KeyVaultClientGetKeysOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys" req, err := runtime.NewRequest(ctx, http.MethodGe...
[ -0.8181402087211609, 0.5920284986495972, 0.8895792365074158, -0.22177471220493317, 0.6213626265525818, -0.7043819427490234, -1.0850027799606323, -0.8236232995986938, -0.6933745741844177, 0.007131448946893215, 0.18139196932315826, 0.3413608968257904, -0.12335857003927231, 0.3865777552127838...
func (client *KeyVaultClient) GetKeysHandleResponse(resp *http.Response) (KeyVaultClientGetKeysResponse, error) { result := KeyVaultClientGetKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyListResult); err != nil { return KeyVaultClientGetKeysResponse{}, err } return result, nil }
[ -0.30037373304367065, -0.19089649617671967, 0.5448883771896362, -0.10136356949806213, -0.810086190700531, -0.6935691833496094, -0.2040574699640274, -0.4266569912433624, 0.45384877920150757, 0.2751487195491791, -1.2737703323364258, -1.101959466934204, -0.6541920304298401, -0.126597762107849...
func (client *KeyVaultClient) getRandomBytesCreateRequest(ctx context.Context, vaultBaseURL string, parameters GetRandomBytesRequest, options *KeyVaultClientGetRandomBytesOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/rng" re...
[ -0.6733165383338928, 0.06771557778120041, 0.728999674320221, -0.22094260156154633, -0.04128178209066391, 0.20927020907402039, -0.5681653618812561, -0.8392373323440552, 0.44624945521354675, -0.04757707938551903, -0.09108051657676697, 0.20038068294525146, -0.30427610874176025, 1.017658710479...
func (client *KeyVaultClient) getRandomBytesHandleResponse(resp *http.Response) (KeyVaultClientGetRandomBytesResponse, error) { result := KeyVaultClientGetRandomBytesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.RandomBytes); err != nil { return KeyVaultClientGetRandomBytesResponse{}, err } return re...
[ 0.19115208089351654, -0.4615492820739746, 0.584048867225647, -0.20842978358268738, -0.8101978898048401, 0.39542093873023987, 0.482040137052536, -0.644182026386261, 1.11803138256073, -0.3745552599430084, -1.0283266305923462, -1.0484614372253418, -1.1120281219482422, 0.08031556755304337, 0...
func (client *KeyVaultClient) importKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, parameters KeyImportParameters, options *KeyVaultClientImportKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys...
[ -0.5763763189315796, -0.06431523710489273, 0.7731718420982361, 0.3895801305770874, -0.13956332206726074, -0.07183641940355301, -0.4506660997867584, -0.5128317475318909, -0.17515894770622253, 0.9395915865898132, -0.029333025217056274, 0.3299081325531006, -0.276516318321228, 0.21157094836235...
func (client *KeyVaultClient) importKeyHandleResponse(resp *http.Response) (KeyVaultClientImportKeyResponse, error) { result := KeyVaultClientImportKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyBundle); err != nil { return KeyVaultClientImportKeyResponse{}, err } return result, nil }
[ 0.20958128571510315, -0.7432323098182678, 0.35979852080345154, 0.09452711045742035, -0.8815923929214478, 0.19454601407051086, 0.6318103075027466, -0.5936882495880127, 0.7930763363838196, 0.7840343713760376, -1.120550513267517, -1.1702182292938232, -1.3061751127243042, -0.8234775066375732, ...
func (client *KeyVaultClient) purgeDeletedKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientPurgeDeletedKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/deletedkeys/{key-name}" ...
[ -0.13036154210567474, -0.1571192443370819, 0.6329920291900635, -0.004352344200015068, -0.5823147892951965, -0.14808912575244904, -0.9074238538742065, -0.5517021417617798, 0.2457200288772583, -0.3499414026737213, -0.01899431087076664, 1.2871456146240234, -0.3692246079444885, 0.5912307500839...
func (client *KeyVaultClient) recoverDeletedKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientRecoverDeletedKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/deletedkeys/{key-nam...
[ -0.22265736758708954, -0.3979067802429199, 0.5413088202476501, 0.3389410674571991, -0.8513585925102234, -0.11060836911201477, -0.4540865123271942, -0.1537134051322937, 0.18133485317230225, -0.7120949029922485, 0.2019902765750885, 0.8072149157524109, -0.47140154242515564, 0.3586342632770538...
func (client *KeyVaultClient) recoverDeletedKeyHandleResponse(resp *http.Response) (KeyVaultClientRecoverDeletedKeyResponse, error) { result := KeyVaultClientRecoverDeletedKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyBundle); err != nil { return KeyVaultClientRecoverDeletedKeyResponse{}, err } ...
[ 0.17375168204307556, -1.2433377504348755, 0.21307440102100372, 0.4584216773509979, -1.1707590818405151, 0.11967284232378006, 0.3997461795806885, 0.01600685715675354, 0.6772749423980713, -0.25992780923843384, -0.7059650421142578, -0.3509662449359894, -1.4301481246948242, -0.541396975517273,...
func (client *KeyVaultClient) releaseCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyReleaseParameters, options *KeyVaultClientReleaseOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) u...
[ -0.9235596060752869, -0.5368711352348328, 0.7702096700668335, 0.19846788048744202, -0.7624077796936035, -0.1370970606803894, -0.6229323148727417, -0.24279667437076569, -0.5242688059806824, 0.761066734790802, -0.22542870044708252, 0.5088568925857544, -0.5138868093490601, 0.40026721358299255...
func (client *KeyVaultClient) releaseHandleResponse(resp *http.Response) (KeyVaultClientReleaseResponse, error) { result := KeyVaultClientReleaseResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyReleaseResult); err != nil { return KeyVaultClientReleaseResponse{}, err } return result, nil }
[ -0.3093889057636261, -1.3686131238937378, 0.31053540110588074, -0.16575762629508972, -0.9740142822265625, -0.15345855057239532, 0.17951880395412445, -0.6211982369422913, 0.6076746582984924, 0.08634032309055328, -0.9374521374702454, -0.9227850437164307, -1.2347747087478638, -0.6990813016891...
func (client *KeyVaultClient) restoreKeyCreateRequest(ctx context.Context, vaultBaseURL string, parameters KeyRestoreParameters, options *KeyVaultClientRestoreKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys/restore" re...
[ -0.31127026677131653, -0.026639986783266068, 0.5603418946266174, 0.3014872968196869, -0.07554090768098831, -0.47382262349128723, -0.6560496687889099, -0.3291676342487335, -0.4390498697757721, 0.0506528876721859, -0.2761552631855011, 0.5767008066177368, -0.7378480434417725, 0.33039778470993...
func (client *KeyVaultClient) restoreKeyHandleResponse(resp *http.Response) (KeyVaultClientRestoreKeyResponse, error) { result := KeyVaultClientRestoreKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyBundle); err != nil { return KeyVaultClientRestoreKeyResponse{}, err } return result, nil }
[ 0.24997574090957642, -1.2252779006958008, 0.2647240161895752, 0.021323150023818016, -0.7210206985473633, -0.1618126481771469, 0.3923472464084625, -0.175441175699234, 0.4276188910007477, 0.3715159595012665, -1.019770622253418, -1.0958349704742432, -1.7767084836959839, -1.0273115634918213, ...
func (client *KeyVaultClient) rotateKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, options *KeyVaultClientRotateKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath := "/keys/{key-name}/rotate" if keyName ...
[ -0.8390721678733826, -0.25007325410842896, 0.7275136113166809, 0.0057824766263365746, 0.13502758741378784, -0.22050321102142334, -0.34797635674476624, -0.6952347159385681, -0.5914479494094849, 0.11682100594043732, 0.01991446129977703, 0.7319020628929138, -0.5614704489707947, 0.467160612344...
func (client *KeyVaultClient) rotateKeyHandleResponse(resp *http.Response) (KeyVaultClientRotateKeyResponse, error) { result := KeyVaultClientRotateKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyBundle); err != nil { return KeyVaultClientRotateKeyResponse{}, err } return result, nil }
[ -0.5194069147109985, -1.3397619724273682, 0.23600804805755615, -0.12757694721221924, -0.35406693816185, -0.18354123830795288, 0.5825907588005066, -0.5341137647628784, 0.268735408782959, 0.535672664642334, -0.8862819671630859, -0.7513372898101807, -1.5350704193115234, -0.5003955364227295, ...
func (client *KeyVaultClient) signCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeySignParameters, options *KeyVaultClientSignOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlPath :=...
[ -0.9173630475997925, -0.7087762355804443, 0.916502058506012, 0.34275543689727783, -0.44208624958992004, 0.07314971089363098, -0.48206451535224915, -0.17392584681510925, -0.6495667695999146, 0.626427412033081, -0.46334943175315857, 0.2168278694152832, -0.14188061654567719, 0.677750229835510...
func (client *KeyVaultClient) signHandleResponse(resp *http.Response) (KeyVaultClientSignResponse, error) { result := KeyVaultClientSignResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyOperationResult); err != nil { return KeyVaultClientSignResponse{}, err } return result, nil }
[ -0.15880300104618073, -1.5147497653961182, 0.3170585036277771, 0.04912499710917473, -0.6520470380783081, 0.0974840298295021, 0.5480902791023254, -0.22089369595050812, 0.5220548510551453, -0.2350163459777832, -1.0214741230010986, -1.594801664352417, -0.9843321442604065, -0.4623786509037018,...
func (client *KeyVaultClient) unwrapKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters, options *KeyVaultClientUnwrapKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBase...
[ -1.0880892276763916, -0.04466874524950981, 0.8019332885742188, -0.4135969281196594, -0.6222805976867676, -0.30988672375679016, -0.22343330085277557, 0.07449892163276672, -0.9078407287597656, 0.609514594078064, -0.1169562116265297, 0.3602251410484314, 0.09730809181928635, 0.3204102218151092...
func (client *KeyVaultClient) unwrapKeyHandleResponse(resp *http.Response) (KeyVaultClientUnwrapKeyResponse, error) { result := KeyVaultClientUnwrapKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyOperationResult); err != nil { return KeyVaultClientUnwrapKeyResponse{}, err } return result, nil }
[ -0.8357842564582825, -0.6182711124420166, 0.3656177222728729, -0.6943750977516174, -1.382802128791809, -0.46617066860198975, 0.6908866167068481, 0.08344171196222305, -0.17909327149391174, 0.602763295173645, -1.1381797790527344, -0.7110947966575623, -0.776039183139801, -0.9668040871620178, ...
func (client *KeyVaultClient) updateKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyUpdateParameters, options *KeyVaultClientUpdateKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL)...
[ -1.156587839126587, -0.7698860168457031, 0.9251644611358643, 0.4470735490322113, -0.7235026359558105, 0.08503540605306625, -0.46043890714645386, 0.07989764213562012, -0.4942057132720947, 0.5958623290061951, 0.02886972948908806, 0.4254674017429352, -0.36620575189590454, 0.5628283023834229, ...
func (client *KeyVaultClient) updateKeyHandleResponse(resp *http.Response) (KeyVaultClientUpdateKeyResponse, error) { result := KeyVaultClientUpdateKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyBundle); err != nil { return KeyVaultClientUpdateKeyResponse{}, err } return result, nil }
[ -0.7041338682174683, -1.456765055656433, 0.2372562140226364, 0.2490381896495819, -1.0511225461959839, 0.06608062237501144, 0.29636329412460327, -0.17286378145217896, 0.07389137148857117, 0.7580233812332153, -0.9363466501235962, -1.0500385761260986, -1.186745524406433, -0.4856099486351013, ...
func (client *KeyVaultClient) updateKeyRotationPolicyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyRotationPolicy KeyRotationPolicy, options *KeyVaultClientUpdateKeyRotationPolicyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}",...
[ -0.7578019499778748, -0.3665599524974823, 0.4123239517211914, -0.44292953610420227, -0.6819850206375122, 0.8222416639328003, 0.09349676966667175, -0.19430580735206604, -0.6181256771087646, 0.6534102559089661, -0.2437364012002945, 0.1653352677822113, -0.8155536651611328, 0.03151579946279526...
func (client *KeyVaultClient) updateKeyRotationPolicyHandleResponse(resp *http.Response) (KeyVaultClientUpdateKeyRotationPolicyResponse, error) { result := KeyVaultClientUpdateKeyRotationPolicyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyRotationPolicy); err != nil { return KeyVaultClientUpdateKeyR...
[ -0.06682896614074707, -1.0858895778656006, 0.050683166831731796, -0.18796458840370178, -0.7918006777763367, 0.9088156819343567, 0.4928511083126068, -0.1029866486787796, 0.11767549067735672, 0.9079898595809937, -0.8732734322547913, -1.0898264646530151, -1.6380494832992554, -0.83210110664367...
func (client *KeyVaultClient) verifyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyVerifyParameters, options *KeyVaultClientVerifyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL) urlP...
[ -0.6258602738380432, -0.5215845704078674, 0.7409665584564209, 0.3842690587043762, -0.1804879754781723, 0.08615393191576004, -0.4725647270679474, -0.4918120801448822, -0.2949901223182678, 0.6681104302406311, -0.7881426215171814, 0.7831670641899109, -0.2464575320482254, 0.9451770782470703, ...
func (client *KeyVaultClient) verifyHandleResponse(resp *http.Response) (KeyVaultClientVerifyResponse, error) { result := KeyVaultClientVerifyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyVerifyResult); err != nil { return KeyVaultClientVerifyResponse{}, err } return result, nil }
[ 0.35619667172431946, -1.0489238500595093, 0.3718959391117096, 0.34984472393989563, -0.0840877965092659, 0.22983618080615997, 0.1645800620317459, -0.8017545938491821, 0.7408394813537598, -0.6493183374404907, -1.3128061294555664, -0.6540969014167786, -0.9687683582305908, -0.22507819533348083...
func (client *KeyVaultClient) wrapKeyCreateRequest(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters, options *KeyVaultClientWrapKeyOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", vaultBaseURL)...
[ -1.1021828651428223, -0.4279603064060211, 0.7944698333740234, 0.07501500844955444, -0.4534374475479126, 0.10350148379802704, -0.6477115750312805, -0.08454675227403641, -0.39539387822151184, 0.8016983270645142, 0.08577058464288712, 0.19395756721496582, 0.21877747774124146, 0.589117586612701...
func (client *KeyVaultClient) wrapKeyHandleResponse(resp *http.Response) (KeyVaultClientWrapKeyResponse, error) { result := KeyVaultClientWrapKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyOperationResult); err != nil { return KeyVaultClientWrapKeyResponse{}, err } return result, nil }
[ -0.821511447429657, -1.0478482246398926, 0.3159889876842499, -0.0659368634223938, -0.9831385612487793, -0.26626700162887573, 0.11626557260751724, -0.46658390760421753, 0.45420515537261963, 0.46174871921539307, -0.6561647653579712, -1.0905407667160034, -0.3759765625, -0.7411057353019714, ...
func UnfollowEvent(_ context.Context, _ *gcpine.GCPine, event *linebot.Event) ([]linebot.SendingMessage, error) { name := caller.GetCallFuncName() log.Println("Call:", name) uid := event.Source.UserID log.Println("UID:", uid) return nil, nil }
[ 0.09252410382032394, -0.029393842443823814, 0.703182578086853, -0.7105685472488403, 0.04727775976061821, 0.7685089111328125, 0.6615265607833862, -0.11220283061265945, -0.25304093956947327, 0.5626305937767029, -0.9131408333778381, 0.756996214389801, -0.7059040069580078, 0.9750933647155762, ...
func Add(mgr manager.Manager, _ *configuration.Config) error { return add(mgr, newReconciler(mgr)) }
[ -0.17958424985408783, 0.13649144768714905, 0.3944961428642273, -0.5585169792175293, 0.4262050986289978, -0.16738177835941315, -0.32361671328544617, 0.9225481748580933, -0.24190521240234375, -0.3481326699256897, 0.10634422302246094, 0.41710034012794495, -0.69684898853302, 1.0800421237945557...
func newReconciler(mgr manager.Manager) reconcile.Reconciler { return &ReconcileHostOperatorConfig{client: mgr.GetClient()} }
[ 0.41726821660995483, -0.23168514668941498, 0.2406592220067978, 0.15090860426425934, -0.5242347717285156, -0.13417166471481323, 0.019172213971614838, 1.3814363479614258, -1.2224360704421997, -0.126359760761261, 0.4095979630947113, -0.7647035121917725, -0.5709818005561829, 0.7513633370399475...
func add(mgr manager.Manager, r reconcile.Reconciler) error { // Create a new controller c, err := controller.New("hostoperatorconfig-controller", mgr, controller.Options{Reconciler: r}) if err != nil { return err } // Watch for changes to primary resource HostOperatorConfig return c.Watch(&source.Kind{Type: &...
[ -0.27865105867385864, 0.021802419796586037, 0.5113335251808167, -0.5299787521362305, 0.15708132088184357, 0.009960820898413658, -0.061357710510492325, 0.8305728435516357, -0.4947946071624756, -0.26857584714889526, 0.08742550760507584, -0.7745407223701477, -0.23158328235149384, 0.6498554944...
func (r *ReconcileHostOperatorConfig) Reconcile(request reconcile.Request) (reconcile.Result, error) { reqLogger := log.WithValues("Request.Namespace", request.Namespace, "Request.Name", request.Name) reqLogger.Info("Reconciling HostOperatorConfig") // Fetch the HostOperatorConfig instance hostOperatorConfig := &t...
[ -1.130604863166809, 0.057893089950084686, 0.7010138630867004, 0.4232019782066345, -0.291943222284317, -0.5678053498268127, -0.23082946240901947, 0.475330114364624, -0.5630505681037903, 0.4525722563266754, 0.025760134682059288, -1.0092525482177734, -0.4233221709728241, 0.3785763382911682, ...
func NewCPUSet(cpuset C.hwloc_cpuset_t) *HwlocCPUSet { var bm BitMap = NewBitmap(cpuset) return &HwlocCPUSet{ BitMap: bm, } }
[ -0.09358479082584381, -0.22310155630111694, 0.14441297948360443, -1.080600619316101, -0.9156895279884338, -0.6678929328918457, 0.37192443013191223, -0.9753100275993347, 0.1393391638994217, 1.1476612091064453, 0.3567955791950226, 0.26211363077163696, -0.7087385654449463, 0.2008620798587799,...
func (set HwlocCPUSet) Destroy() { set.BitMap.Destroy() }
[ 0.013219594955444336, -0.08750934153795242, 0.028106020763516426, -1.086171269416809, 0.6182434558868408, 0.2099067121744156, 0.19807036221027374, -0.7739208936691284, -0.12397780269384384, 0.8909235000610352, 0.7789100408554077, -0.21159727871418, -1.0405949354171753, 1.288979411125183, ...
func New() Batch { return make(Batch, 0) }
[ 0.2097371220588684, -1.0215985774993896, -0.0015859883278608322, 1.3774148225784302, -0.5091648101806641, -0.17241278290748596, -0.5693972110748291, -0.008505024947226048, -0.86114901304245, -1.8515056371688843, -0.9789223074913025, 0.6291385889053345, 0.8094316720962524, 1.056885123252868...
func NewSliding(maxSize int) *Sliding { return &Sliding{ maxSize: maxSize, batch: make(Batch, maxSize), } }
[ 0.12813831865787506, -0.16667583584785461, 0.2741984724998474, 0.9412527084350586, -1.4608410596847534, 0.011357111856341362, -0.9967344403266907, 0.41815146803855896, -0.19552229344844818, -0.43438810110092163, -1.1301482915878296, -0.030619297176599503, -0.2784482538700104, 0.12173332273...
func (s *Sliding) AddTask(task task.Task) (err error) { if s.numUsed == s.maxSize { err = Dropped{s.batch[s.next]} } s.batch[s.next] = task s.next++ if s.numUsed < s.next { s.numUsed = s.next } if s.next >= s.maxSize { s.next = 0 } return }
[ -0.6324275732040405, 0.9191909432411194, 0.6395835280418396, 0.7890645265579224, -0.3119903802871704, 0.29069626331329346, 0.8577413558959961, 0.49387475848197937, 0.3882104754447937, -0.6075890064239502, -0.97188800573349, 0.16572295129299164, 0.3282173275947571, 0.6139858961105347, 0.1...
func (s *Sliding) GetBatch() Batch { return s.batch[:s.numUsed] }
[ 0.7927002310752869, 0.42383167147636414, 0.26021674275398254, 1.2015188932418823, 0.49933895468711853, 0.603587806224823, 0.3065930902957916, -0.02855304628610611, 0.06890466809272766, -1.0574010610580444, -0.339951753616333, 1.1653424501419067, 0.10602486878633499, 0.2273326814174652, 0...
func (s *Sliding) MaxSize() int { return s.maxSize }
[ 0.5383597612380981, 0.31788748502731323, 0.5182229280471802, 0.7038252353668213, -0.38792020082473755, 0.026565637439489365, 0.20630484819412231, 0.7565664649009705, 0.3344481289386749, -0.7779368758201599, -0.4427601993083954, -0.5364898443222046, -0.7865987420082092, 0.9891887307167053, ...
func (s *Sliding) Size() int { return s.numUsed }
[ -0.8136548399925232, 0.4006420075893402, 0.24567262828350067, -0.8034770488739014, -0.5565201640129089, 0.31141144037246704, 1.0293681621551514, 0.39350488781929016, -0.05595509707927704, -0.7055786848068237, -1.1488001346588135, -0.22628216445446014, -0.29706433415412903, 0.74716579914093...
func NewDropping(maxSize int) *Dropping { return &Dropping{ maxSize: maxSize, batch: make(Batch, maxSize), } }
[ -0.7189460396766663, 0.36208513379096985, 0.16050028800964355, 0.7994465827941895, -1.474708080291748, 0.3369189202785492, -0.8239985108375549, 0.047610312700271606, 0.4681034982204437, -0.3070155084133148, -0.5551041960716248, -0.6194088459014893, 0.029558934271335602, -0.1915237456560135...
func (d *Dropping) Reset() { // We need to create a new slice because the existing one // may have already been put onto o channel or referenced // in another way. d.batch = make(Batch, d.maxSize) d.next = 0 }
[ -0.7950112223625183, 0.657629132270813, 0.3236403167247772, -0.5672563910484314, 0.5532485842704773, -0.28404831886291504, 0.23700638115406036, -0.47157201170921326, -0.9167121052742004, 0.12577104568481445, -0.17128247022628784, 1.1106345653533936, -0.14564476907253265, 0.0479468069970607...
func (d *Dropping) AddTask(task task.Task) error { if d.next >= d.maxSize { return Dropped{task} } d.batch[d.next] = task d.next++ return nil }
[ -0.8666132688522339, 1.8919705152511597, 0.5284824967384338, 0.6313465237617493, -0.09726577997207642, 0.7071508169174194, 0.04078288376331329, -0.01945779286324978, 0.34908702969551086, -0.6397114396095276, -0.6936387419700623, -0.09055435657501221, 0.3078283667564392, 0.7026522159576416,...
func (d *Dropping) GetBatch() Batch { return d.batch[:d.next] }
[ 0.03637894615530968, 1.0181490182876587, 0.4254695177078247, 0.6991634964942932, 0.4442784786224365, 0.9808605909347534, -0.03051614947617054, -0.6696327328681946, -0.07075583934783936, -0.8019466996192932, 0.25486236810684204, 1.0535566806793213, -0.017336320132017136, -0.0199888423085212...
func (d *Dropping) MaxSize() int { return d.maxSize }
[ -0.35115623474121094, 1.277440071105957, 0.6126030683517456, 0.4137086570262909, -0.26050877571105957, 0.5696452856063843, -0.021073101088404655, -0.006016526836901903, 0.3082596957683563, -0.436760276556015, 0.3776753544807434, -0.7400116920471191, -0.6273015737533569, 0.7855453491210938,...
func (d *Dropping) Size() int { return d.next }
[ -1.769299864768982, 1.7522428035736084, 0.42630618810653687, -1.217252492904663, -0.909023642539978, 0.7813855409622192, 0.7552314400672913, -0.7619600296020508, -0.0460132397711277, -0.18853653967380524, -0.03229522705078125, -0.2206684648990631, -0.465128093957901, 0.10405143350362778, ...
func GetCloudAccountListMocked(t *testing.T, cloudAccountsIn *[]types.CloudAccount) *[]types.CloudAccount { assert := assert.New(t) // wire up cs := &utils.MockConcertoService{} clAccService, err := NewCloudAccountService(cs) assert.Nil(err, "Couldn't load cloudAccount service") assert.NotNil(clAccService, "Clo...
[ -0.2561088800430298, -0.12432391196489334, 0.6220605373382568, 0.2777656018733978, 0.6834728121757507, 0.26602572202682495, 0.5145233273506165, 0.03321200609207153, 0.6223362684249878, 0.03645748645067215, -0.5153266787528992, 0.16448067128658295, -0.3150990307331085, 0.3670177459716797, ...
func GetCloudAccountListFailErrMocked(t *testing.T, cloudAccountsIn *[]types.CloudAccount) *[]types.CloudAccount { assert := assert.New(t) // wire up cs := &utils.MockConcertoService{} clAccService, err := NewCloudAccountService(cs) assert.Nil(err, "Couldn't load cloudAccount service") assert.NotNil(clAccServic...
[ -0.3969169855117798, -0.21892979741096497, 0.7168065905570984, 0.1984727829694748, 0.2574954926967621, 0.027380455285310745, 0.3431243300437927, -0.1481635719537735, 0.29673898220062256, 0.19944408535957336, -0.2795637249946594, -0.31278151273727417, -0.6845619678497314, 0.4165055155754089...
func GetCloudAccountListFailStatusMocked(t *testing.T, cloudAccountsIn *[]types.CloudAccount) *[]types.CloudAccount { assert := assert.New(t) // wire up cs := &utils.MockConcertoService{} clAccService, err := NewCloudAccountService(cs) assert.Nil(err, "Couldn't load cloudAccount service") assert.NotNil(clAccSer...
[ -0.3590235710144043, 0.017738793045282364, 0.4604242444038391, 0.17478062212467194, 0.3083983361721039, 0.37661176919937134, 0.32883545756340027, 0.15017442405223846, 0.5173584222793579, -0.006166219245642424, -0.4659343957901001, 0.06447365134954453, -0.09307756274938583, 0.52968102693557...
func GetCloudAccountListFailJSONMocked(t *testing.T, cloudAccountsIn *[]types.CloudAccount) *[]types.CloudAccount { assert := assert.New(t) // wire up cs := &utils.MockConcertoService{} clAccService, err := NewCloudAccountService(cs) assert.Nil(err, "Couldn't load cloudAccount service") assert.NotNil(clAccServi...
[ -0.3517078757286072, -0.03286561369895935, 0.6400085091590881, -0.06052190065383911, 0.3195344805717468, 0.18091852962970734, 0.294646292924881, -0.2767205834388733, 0.22153687477111816, 0.34448179602622986, -0.6487935781478882, 0.24635432660579681, -0.20558786392211914, 0.5760249495506287...
func (pt *PassThru) Read(p []byte) (int, error) { n, err := pt.Reader.Read(p) if n > 0 { pt.total += int64(n) fmt.Fprintf(os.Stderr, "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b") fmt.Fprintf(os.Stderr, "%s/%s", ByteSize(pt.total), ByteSize(pt.length)) } if n <= 0 || pt.length == pt.total { fmt.Fprintf(o...
[ -0.40958237648010254, 0.22200517356395721, 1.0691170692443848, -0.9680013656616211, -0.08517863601446152, 0.3085360825061798, 0.23488053679466248, -0.2386305183172226, -0.07800783216953278, -0.05092840641736984, 0.8158833384513855, -0.08963359892368317, -0.6498301029205322, -0.019636463373...
func NewRestoreCommand(stdin io.Reader, stdout, stderr io.Writer) *RestoreCommand { return &RestoreCommand{ CmdIO: pilosa.NewCmdIO(stdin, stdout, stderr), } }
[ 0.8936724662780762, -1.0913121700286865, 0.4309813976287842, 0.14164265990257263, 0.050405003130435944, -0.7427155375480652, -0.19281435012817383, 0.13743412494659424, -0.0729631781578064, -1.647805094718933, 0.4031364917755127, 0.21146684885025024, -0.7297336459159851, -0.5317442417144775...
func (cmd *RestoreCommand) Run(ctx context.Context) error { // Validate arguments. if cmd.Path == "" { return errors.New("backup file required") } // Create a client to the server. client, err := pilosa.NewClient(cmd.Host) if err != nil { return err } // Open backup file. f, err := os.Open(cmd.Path) if ...
[ 0.32848718762397766, -0.40818309783935547, 0.7828680872917175, -0.02692434750497341, 0.7534486651420593, 0.2869631350040436, 0.9323720932006836, 0.27930018305778503, -0.7662571668624878, -0.3693191111087799, -0.3284125328063965, 0.36171868443489075, -0.8949443101882935, -0.7077291011810303...
func waitForCnsVSphereVolumeMigrationCrd(ctx context.Context, vpath string) (*v1alpha1.CnsVSphereVolumeMigration, error) { var ( found bool crd *v1alpha1.CnsVSphereVolumeMigration ) waitErr := wait.PollImmediate(poll, pollTimeout, func() (bool, error) { found, crd = getCnsVSphereVolumeMigrationCrd(ctx, vpath...
[ 0.1510111391544342, 0.3673757016658783, 0.48409727215766907, -0.1724308580160141, -0.3994053304195404, 0.36225515604019165, -0.07554209977388382, 0.5286511182785034, 0.0059868148528039455, 0.45222315192222595, -0.0558406338095665, 0.6977537870407104, -0.4723731279373169, 0.7779635787010193...
func createDir(path string, host string) error { sshCmd := fmt.Sprintf("mkdir -p %s", path) framework.Logf("Invoking command '%v' on ESX host %v", sshCmd, host) result, err := fssh.SSH(sshCmd, host+":22", framework.TestContext.Provider) if err != nil || result.Code != 0 { fssh.LogResult(result) return fmt.Error...
[ 0.39658665657043457, 0.46764546632766724, 0.8163159489631653, 0.2978481948375702, 0.12033750861883163, 0.8634706735610962, -0.3046216666698456, -0.21643565595149994, -0.6526937484741211, -0.8897992968559265, 0.393717885017395, 0.4867022931575775, -0.014486821368336678, 0.05550389364361763,...
func createVmdk(host string, size string, objType string, diskFormat string) (string, error) { dsName := GetAndExpectStringEnvVar(envSharedDatastoreName) dir := "/vmfs/volumes/" + dsName + "/e2e" err := createDir(dir, host) gomega.Expect(err).NotTo(gomega.HaveOccurred()) if diskFormat == "" { diskFormat = "thin"...
[ -0.25263044238090515, -0.2500807046890259, 0.6556646823883057, 0.47831055521965027, -0.07204197347164154, 0.2710912227630615, 0.25400876998901367, -0.3991810381412506, -0.5660005211830139, -0.487859845161438, 0.468801885843277, 0.3617318868637085, -0.021411709487438202, 0.5888077616691589,...
func deleteVmdk(host string, vmdkPath string) error { sshCmd := fmt.Sprintf("rm -f %s", vmdkPath) framework.Logf("Invoking command '%v' on ESX host %v", sshCmd, host) result, err := fssh.SSH(sshCmd, host+":22", framework.TestContext.Provider) if err != nil || result.Code != 0 { fssh.LogResult(result) return fmt...
[ 0.45466509461402893, 0.27227526903152466, 0.6396578550338745, 0.4623110890388489, 0.010563308373093605, 0.08008485287427902, -0.4010383188724518, 0.4197579622268677, -0.27282676100730896, -0.07019494473934174, 0.42749330401420593, 0.7536781430244446, -0.47836121916770935, 0.444765985012054...
func getCanonicalPath(vmdkPath string) string { dsName := GetAndExpectStringEnvVar(envSharedDatastoreName) parts := strings.Split(vmdkPath, "/") vmDiskPath := "[" + dsName + "] " + parts[len(parts)-2] + "/" + parts[len(parts)-1] datastorePathObj := new(object.DatastorePath) isSuccess := datastorePathObj.FromString...
[ 0.3083527982234955, 0.14810693264007568, 0.6470112800598145, 0.44409939646720886, -0.22711928188800812, -0.1514490395784378, 0.41950488090515137, 0.5467765927314758, -0.5141956806182861, 0.6767979264259338, 0.5287942290306091, 0.3235361576080322, -0.23701046407222748, -0.2753358483314514, ...
func verifyCnsVolumeMetadataAndCnsVSphereVolumeMigrationCrdForPvcs(ctx context.Context, client clientset.Interface, namespace string, pvcs []*v1.PersistentVolumeClaim) { for _, pvc := range pvcs { vpath := getvSphereVolumePathFromClaim(ctx, client, namespace, pvc.Name) framework.Logf("Processing PVC: %s", pvc.Name...
[ -0.3936874568462372, -0.3576241433620453, 0.45587000250816345, -0.45165613293647766, 1.0600508451461792, 1.011301875114441, -0.5034025311470032, -0.3949195444583893, -0.10522440820932388, -0.306543231010437, -0.10387266427278519, 0.5540211796760559, -0.07973454892635345, 0.7430444955825806...
func getPodTryingToUsePvc(ctx context.Context, c clientset.Interface, namespace string, pvcName string) *v1.Pod { pods, err := c.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{}) gomega.Expect(err).NotTo(gomega.HaveOccurred()) for _, pod := range pods.Items { for _, volume := range pod.Spec.Volumes { if ...
[ -0.05219715088605881, -0.1933019608259201, 0.8802976012229919, -0.5200911164283752, 0.5524419546127319, 0.13524053990840912, -0.32080093026161194, -0.2936527729034424, 0.07537005096673965, 0.4268540143966675, 1.0995875597000122, 0.6696993112564087, -0.29529815912246704, -0.3159091174602508...
func createPodWithMultipleVolsVerifyVolMounts(ctx context.Context, client clientset.Interface, namespace string, pvclaims []*v1.PersistentVolumeClaim) *v1.Pod { // Create a POD to use this PVC, and verify volume has been attached ginkgo.By("Creating pod to attach PV to the node") pod, err := createPod(client, namesp...
[ 0.28744497895240784, -0.48209479451179504, 0.6942962408065796, -0.22094307839870453, 1.1596415042877197, 0.8668497800827026, -0.4032558798789978, -0.9654833078384399, -0.010305971838533878, -0.16673137247562408, 0.9496264457702637, 0.39475515484809875, -0.44169530272483826, 0.3491877019405...
func getVolHandle4VcpPvc(ctx context.Context, client clientset.Interface, namespace string, pvc *v1.PersistentVolumeClaim) string { vpath := getvSphereVolumePathFromClaim(ctx, client, namespace, pvc.Name) found, crd := getCnsVSphereVolumeMigrationCrd(ctx, vpath) gomega.Expect(found).To(gomega.BeTrue()) return crd.S...
[ 0.9120888113975525, -0.8708702325820923, 0.5399726033210754, -0.21065819263458252, 0.12448323518037796, 0.7716205716133118, -0.07754091918468475, -0.6690087914466858, 0.07204805314540863, -0.004129332490265369, 0.9021608233451843, 0.43255430459976196, -0.7468034029006958, 0.090154461562633...
func deletePodAndWaitForVolsToDetach(ctx context.Context, client clientset.Interface, namespace string, pod *v1.Pod) { ginkgo.By(fmt.Sprintf("Deleting pod: %s", pod.Name)) volhandles := []string{} for _, vol := range pod.Spec.Volumes { pv := getPvFromClaim(client, namespace, vol.PersistentVolumeClaim.ClaimName) ...
[ 0.0750105082988739, -0.46805816888809204, 0.48023563623428345, -0.867850124835968, 0.38810133934020996, 0.6254172921180725, 0.18680088222026825, -0.4080103635787964, 0.2878807783126831, -0.9054563045501709, 0.5880922079086304, -0.22741128504276276, 0.2643103301525116, -0.035048168152570724...
func main() { ch1 := make(chan struct{}) ch2 := make(chan struct{}) timer := time.NewTimer(5 * time.Second) var wg sync.WaitGroup var count int64 // ping wg.Add(1) go func() { loop: for val := range ch1 { select { case ch2 <- val: count += 1 case <-timer.C: break loop } } // close t...
[ 0.6668947339057922, 0.18570388853549957, 0.826415479183197, -0.10090397298336029, -0.15083783864974976, 0.09032206982374191, -0.03724469989538193, -0.1781924068927765, -1.127960205078125, 0.08378049731254578, -0.017841724678874016, -0.07512110471725464, -0.7743157148361206, 0.6828337907791...
func NewV2HttpConfigurationDigestAuth() *V2HttpConfigurationDigestAuth { this := V2HttpConfigurationDigestAuth{} return &this }
[ -0.9990877509117126, -0.6928009986877441, 0.3293501138687134, 0.5651481747627258, -0.730869472026825, -0.2529580593109131, 0.4516037702560425, 0.4436318576335907, -0.3958461582660675, 0.392573744058609, -0.29120975732803345, 0.49043112993240356, 0.9713656902313232, 0.3722454309463501, 0....
func NewV2HttpConfigurationDigestAuthWithDefaults() *V2HttpConfigurationDigestAuth { this := V2HttpConfigurationDigestAuth{} return &this }
[ -0.867821991443634, -0.042196739464998245, 0.35652095079421997, 0.7717309594154358, 0.2721843719482422, -0.43412351608276367, -0.1815463900566101, 0.1273757815361023, -0.052584655582904816, -0.21866276860237122, -0.5125333070755005, -0.29920846223831177, 0.742916464805603, 0.26972013711929...
func (o *V2HttpConfigurationDigestAuth) GetUsername() string { if o == nil || o.Username == nil { var ret string return ret } return *o.Username }
[ -0.04448370262980461, 0.45452022552490234, 0.08307842165231705, 0.9038183689117432, -0.5260015726089478, -0.5639679431915283, 0.8146083950996399, -0.09175471216440201, 0.6637322306632996, -0.08576953411102295, 0.04944729804992676, -1.785630226135254, -0.4879056513309479, 0.4509850144386291...
func (o *V2HttpConfigurationDigestAuth) GetUsernameOk() (*string, bool) { if o == nil || o.Username == nil { return nil, false } return o.Username, true }
[ -0.10903887450695038, 0.14984872937202454, 0.33988016843795776, 0.5930661559104919, -0.6627289056777954, -0.3097172975540161, 0.7163152694702148, 0.6406421065330505, -0.0013879140606150031, 1.0570645332336426, -0.7838881015777588, -0.9308687448501587, 0.3345436453819275, 0.4194912612438202...
func (o *V2HttpConfigurationDigestAuth) HasUsername() bool { if o != nil && o.Username != nil { return true } return false }
[ 0.05260154977440834, 0.24552646279335022, 0.005257952027022839, 0.4166250228881836, -0.009205080568790436, -0.6600003242492676, 0.28884029388427734, 0.7721232771873474, 0.15172432363033295, -0.24310825765132904, -0.5167840719223022, -1.5921231508255005, -0.22375698387622833, 0.044392012059...
func (o *V2HttpConfigurationDigestAuth) SetUsername(v string) { o.Username = &v }
[ -0.6084099411964417, -0.2645098865032196, -0.0351814329624176, 0.7408093810081482, -1.2385016679763794, -0.9086716175079346, 0.08744041621685028, -0.2680419981479645, 0.009656071662902832, 0.34293243288993835, -0.37941840291023254, 0.3516569435596466, -0.06302041560411453, -0.8022427558898...
func (o *V2HttpConfigurationDigestAuth) GetPassword() string { if o == nil || o.Password == nil { var ret string return ret } return *o.Password }
[ 0.059066466987133026, 0.3713783621788025, 0.25791168212890625, 1.0593847036361694, 0.2616181969642639, -0.5421247482299805, 0.9026761054992676, -0.10463614016771317, 1.181854486465454, -0.46986573934555054, -0.13205422461032867, -1.391657829284668, -0.19524098932743073, 0.2886563539505005,...
func (o *V2HttpConfigurationDigestAuth) GetPasswordOk() (*string, bool) { if o == nil || o.Password == nil { return nil, false } return o.Password, true }
[ -0.143315389752388, 0.07323966920375824, 0.3491649329662323, 0.3572065532207489, -0.003800896229222417, -0.06206569820642471, 0.5230875015258789, 0.8084329962730408, 0.2044021487236023, 0.8889763951301575, -0.7049866318702698, -0.3211131691932678, 0.25115543603897095, 0.5667319893836975, ...
func (o *V2HttpConfigurationDigestAuth) HasPassword() bool { if o != nil && o.Password != nil { return true } return false }
[ 0.28777843713760376, -0.13225826621055603, 0.22651419043540955, 0.8523726463317871, 0.586418867111206, -0.7634718418121338, 0.2439318150281906, 0.8910318613052368, 0.817107617855072, -0.5365643501281738, -0.255471795797348, -1.0157979726791382, 0.23957273364067078, -0.08834211528301239, ...
func (o *V2HttpConfigurationDigestAuth) SetPassword(v string) { o.Password = &v }
[ -0.36383122205734253, -0.405979722738266, -0.10856562107801437, 1.0104399919509888, -0.9057758450508118, -0.36961492896080017, -0.013735641725361347, -0.5550804138183594, 0.3920527994632721, 0.3142455816268921, 0.0026664265897125006, 0.648686945438385, -0.07592591643333435, -0.816364586353...
func ReadOrInitSessionId(bD *BaseData) (string, error) { _, ok := sessions[bD.SessionId]; if !ok { bytes := make([]byte, 16) if _, err := rand.Read(bytes); err != nil { return "", err } sessionId := hex.EncodeToString(bytes) sessions[sessionId] = &Data{SessionId: sessionId, CopyAndPaste: mak...
[ -0.08966625481843948, -0.979474663734436, 0.5200033783912659, -0.9251643419265747, -0.6205692291259766, 0.16680821776390076, 0.08325296640396118, -0.18288783729076385, 1.8466042280197144, 0.8117424249649048, 0.23432333767414093, 0.2651403248310089, -0.212712824344635, 0.2797042429447174, ...
func RegisterQuery(qr weave.QueryRouter) { NewVoteBucket().Register("vote", qr) NewTallyBucket().Register("tally", qr) }
[ -0.06738866120576859, 0.192533940076828, 0.2517397999763489, -0.0689001977443695, 1.6397240161895752, 0.05290783569216728, -1.3620221614837646, -0.34611210227012634, 0.1859571486711502, -0.2521516680717468, -0.5086900591850281, -0.10194486379623413, 0.9095322489738464, 0.8369537591934204, ...
func RegisterRoutes(r weave.Registry, auth x.Authenticator) { bucket := NewVoteBucket() tallies := NewTallyBucket() r.Handle(pathRecordVote, &recordVoteHandler{auth: auth, bucket: bucket, tallies: tallies}) }
[ 0.07030770182609558, 0.7232357859611511, 0.11030072718858719, 0.32154548168182373, 1.243505597114563, 0.270141065120697, -0.042328137904405594, 0.34623849391937256, -0.39581650495529175, -0.12529313564300537, -0.5429434776306152, 0.48758792877197266, 0.055864207446575165, 0.540860056877136...
func (h *recordVoteHandler) getNotary(db weave.KVStore) weave.Address { notary := gconf.String(db, gconfNotary) bz, err := hex.DecodeString(notary) if err != nil { panic(err) } addr := weave.Address(bz) if err := addr.Validate(); err != nil { panic(err) } return addr }
[ 0.13645976781845093, 0.36436358094215393, 0.4651543200016022, 0.4575243294239044, 0.06665480136871338, -0.3950662612915039, -0.7983294725418091, 0.5023513436317444, -0.07020986825227737, 0.7175328731536865, 0.24642549455165863, 0.7218551635742188, -0.7162948846817017, -0.1882806271314621, ...
func VoteToString(mainVote int32) string { return fmt.Sprintf("main%d", mainVote) }
[ -0.4531649351119995, -0.46554669737815857, 0.5162196755409241, -0.7996097803115845, -0.3305816054344177, 1.249886155128479, -0.7383463382720947, -0.5543509125709534, -0.04139990732073784, 0.37377411127090454, 0.6979837417602539, -0.23934221267700195, -0.5841196775436401, -0.232763186097145...
func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response { fmt.Println("########### oow18_example Init ###########") _, args := stub.GetFunctionAndParameters() // Only create init entities if the user intends to do it. if len(args) > 0 { fmt.Println("User put in Init params") var A...
[ -0.43376994132995605, -0.2355579435825348, 0.8632938265800476, -0.6474853157997131, 1.0019450187683105, 0.12657798826694489, 0.33973708748817444, -0.21754342317581177, -0.8218478560447693, 0.03043181635439396, -0.2499072104692459, 0.9636386632919312, 0.03219382464885712, 0.1552922129631042...
func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response { fmt.Println("########### oow18_example Invoke ###########") function, args := stub.GetFunctionAndParameters() if function != "invoke" { return shim.Error("Unknown function call") } if len(args) < 2 { return...
[ -0.411861389875412, -0.09214302897453308, 0.9281206727027893, 0.48224854469299316, 0.5779536962509155, -0.6177451610565186, 0.08367257565259933, -0.5230185985565186, 0.13815823197364807, 0.01105103176087141, -0.0985051617026329, 0.3426842987537384, -0.6424860954284668, -0.13372403383255005...
func (t *SimpleChaincode) createTreeOrder(stub shim.ChaincodeStubInterface, args []string) pb.Response { var owner string // Name of the "account holder" from input var cash int // Amount of money in the tree order from input var tree int // Number of trees to be planted var orderid string // Generate something at ...
[ -0.2613959312438965, 0.1717379093170166, 0.9750925302505493, 0.06883657723665237, 0.7653453350067139, 0.04410509020090103, -0.24866658449172974, -0.5210077166557312, -0.5533414483070374, 0.35725662112236023, -0.7579072117805481, -0.03493437543511391, 0.29481297731399536, 0.8119706511497498...
func (t *SimpleChaincode) query(stub shim.ChaincodeStubInterface, args []string) pb.Response { var qt string // QueryType var id string // name or orderid var Avalbytes []byte var err error if len(args) != 3 { return shim.Error("Incorrect number of arguments. Expecting querytype: 'name' or 'id' and string to q...
[ -0.17649395763874054, -0.35614821314811707, 0.690433919429779, -0.1225561872124672, 0.010214665904641151, -0.7838858366012573, -0.6937188506126404, -0.8226195573806763, 0.45810434222221375, 0.3728267550468445, 0.2834526300430298, 0.5783809423446655, -0.25629502534866333, 0.4018652141094208...
func (t *SimpleChaincode) create(stub shim.ChaincodeStubInterface, args []string) pb.Response { // must be an invoke var X string // Entity var Xval int // Asset holding var err error if len(args) != 3 { return shim.Error("Incorrect number of arguments. Expecting 3, function followed by 1 name and 1 value") ...
[ -0.38735994696617126, 0.11171255260705948, 0.6739414930343628, -0.4486340880393982, 0.8422431349754333, 0.46386629343032837, -0.6757121086120605, -0.7002899050712585, -0.743053138256073, -0.24002940952777863, 0.002931772032752633, 0.31568554043769836, -0.378805011510849, -0.25811967253685,...
func (t *SimpleChaincode) delete(stub shim.ChaincodeStubInterface, args []string) pb.Response { if len(args) != 1 { return shim.Error("Incorrect number of arguments. Expecting 1") } A := args[1] // Delete the key from the state in ledger err := stub.DelState(A) if err != nil { return shim.Error("Failed to d...
[ -0.08724979311227798, 0.2706509828567505, 0.6913684606552124, 0.23725278675556183, 0.515044093132019, 0.11908870935440063, 0.4567711353302002, 0.36543869972229004, 0.25782012939453125, 0.5550670623779297, 0.0748680979013443, 0.13172653317451477, -1.2050200700759888, 0.032181523740291595, ...
func main() { err := shim.Start(new(SimpleChaincode)) if err != nil { fmt.Printf("Error starting Simple chaincode: %s", err) } }
[ 1.1079133749008179, -0.9413660764694214, 0.7208975553512573, 1.2480080127716064, 0.5596138834953308, 0.3087085485458374, 0.2790496349334717, 1.269166111946106, -0.038863010704517365, -0.7584585547447205, -1.3832409381866455, 1.3476048707962036, -0.5491262674331665, -0.16502711176872253, ...