text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (client *DataCollectionEndpointsClient) listBySubscriptionCreateRequest(ctx context.Context, options *DataCollectionEndpointsListBySubscriptionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints" if client.subscriptionID == "" { r...
[ -0.09309036284685135, 0.5806423425674438, 0.41953787207603455, -0.14512844383716583, 0.42122286558151245, -0.18322807550430298, 0.06201828271150589, 0.012378416024148464, -0.1598493605852127, 0.2890421450138092, -0.1531645953655243, 0.7652111649513245, 0.5305905938148499, 0.387115329504013...
func (client *DataCollectionEndpointsClient) listBySubscriptionHandleResponse(resp *http.Response) (DataCollectionEndpointsListBySubscriptionResponse, error) { result := DataCollectionEndpointsListBySubscriptionResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.DataCollectionEndpointResourceL...
[ 0.38877561688423157, -0.08240509778261185, 0.16557194292545319, -0.24565747380256653, -0.24682071805000305, 0.184541717171669, 0.5957927107810974, 0.47138506174087524, 0.06374845653772354, 0.4139558672904968, -1.0423520803451538, -0.7490526437759399, 0.1923060566186905, 0.06336969137191772...
func (client *DataCollectionEndpointsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, options *DataCollectionEndpointsUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft...
[ -0.8005117177963257, -0.4914224445819855, 0.969221830368042, -0.41191691160202026, -0.4116511642932892, 0.06355450302362442, 0.08820676058530807, -0.27365320920944214, -0.40467533469200134, 0.35270750522613525, 0.2388506978750229, 0.9707755446434021, -0.28415244817733765, 0.228017851710319...
func (client *DataCollectionEndpointsClient) updateHandleResponse(resp *http.Response) (DataCollectionEndpointsUpdateResponse, error) { result := DataCollectionEndpointsUpdateResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.DataCollectionEndpointResource); err != nil { return DataCollecti...
[ -0.8927943110466003, -1.1367334127426147, 0.2268909066915512, -0.5121833086013794, -0.22431769967079163, 0.5389560461044312, 0.3828074038028717, 0.450019896030426, 0.05815507471561432, 0.18171727657318115, -0.866890549659729, -1.102368950843811, -0.7521519064903259, -0.8915025591850281, ...
func (rt *Runtime) Push(d chan map[string]string) (err error) { t := rt.API.NewTable("supporter(supporter_KEY)donation") offset := int32(0) count := 500 c := "donation.RESULT IN 0,-1" for count == 500 { m, err := t.LeftJoinMap(offset, count, c) if err != nil { return err } for _, r := range m { d <- ...
[ -0.7220627665519714, 0.4519956409931183, 0.4802802801132202, -0.5954040288925171, -0.23772218823432922, 0.2599138021469116, 0.14372658729553223, -0.48028501868247986, -0.5633974075317383, 0.3838896155357361, 0.16011328995227814, 0.5727925300598145, -0.18480625748634338, 1.013656735420227, ...
func StartService() { opts := []selenium.ServiceOption{ selenium.ChromeDriver(helpers.AutomationPath + driverPath), // Specify the path to GeckoDriver in order to use Firefox. selenium.Output(os.Stderr), // Output debug information to STDERR. } selenium.SetDebug(false) selenium, ...
[ 0.14503006637096405, -0.51530522108078, 0.2499873787164688, 0.6101376414299011, 0.9175193905830383, 0.3613453805446625, 0.27416396141052246, 0.618762195110321, 0.14840520918369293, 0.013264507055282593, 0.16227106750011444, 1.2978429794311523, -0.3729536235332489, 0.8637595176696777, 0.7...
func StopService() { seleniumService.Stop() }
[ -0.5807279944419861, -1.021203875541687, 0.07274873554706573, 0.23766444623470306, 0.6366288065910339, 0.690768837928772, -0.11112155765295029, 0.3087290823459625, -0.0650365948677063, 0.5788115859031677, 0.013538248836994171, 0.5219678282737732, -0.6567074656486511, 0.5516695976257324, ...
func NewDriver(browser string) selenium.WebDriver { StartService() caps := selenium.Capabilities{"browserName": browser} switch browser { case "chrome": chrCaps := chrome.Capabilities{ Args: []string{ "--no-sandbox", }, W3C: true, } if headless { chrCaps.Args = append(chrCaps.Args, "--headles...
[ 0.04158617556095123, -0.7152926325798035, 0.6100883483886719, 0.9187260866165161, -0.5740860104560852, 0.8182539343833923, 0.2189955711364746, 0.24597960710525513, 0.8763960003852844, 0.2646554410457611, 0.6113386750221252, 0.7395667433738708, -0.7520161271095276, 0.9255987405776978, 1.5...
func (c *Client) Address(assetCode ...string) *AddressService { if len(assetCode) == 0 { assetCode[0] = "" } return &AddressService{service{c}, assetCode[0]} }
[ -0.4947582185268402, -0.25822576880455017, 0.42246243357658386, -0.6499161124229431, 0.1474703550338745, 0.35326945781707764, -0.49635976552963257, -0.7714782953262329, 0.6245881915092468, -0.2293696105480194, 0.43654870986938477, 1.1796133518218994, -0.8449417352676392, 0.6413657069206238...
func (as *AddressService) Create(name string) (*Address, error) { if isEmptyStr(as.assetCode) { return nil, errAssetCode } var ( addresses []*Address body struct { Address struct { Name string `json:"name"` } `json:"address"` } ) body.Address.Name = name if err := as.client.Post(buildStri...
[ -0.9270994067192078, 0.1393318921327591, 0.6811419725418091, 0.08956784754991531, -0.10820497572422028, -0.029603801667690277, 0.1078149825334549, -1.332193374633789, 0.039963603019714355, 0.8131037950515747, -0.22917109727859497, 0.3450188934803009, -0.9693759083747864, 0.2619060277938843...
func (as *AddressService) GetActive() ([]*Address, error) { return as.getAddresses("deposit") }
[ -0.24078969657421112, -0.420538991689682, 0.7294026017189026, 0.6057750582695007, 0.35692617297172546, -0.7834696173667908, 0.24169974029064178, -0.40889450907707214, 0.4934346675872803, -0.050670549273490906, -0.29337435960769653, 1.2197519540786743, -0.06241464242339134, -0.4258826673030...
func (as *AddressService) GetSaved() ([]*Address, error) { return as.getAddresses("withdraw") }
[ -0.5463606119155884, 0.35169506072998047, 0.5990801453590393, 0.23909993469715118, 0.9604231119155884, -0.3853650689125061, -0.13153550028800964, 0.3035118281841278, 1.3191046714782715, -0.13267163932323456, -0.5757979154586792, 1.3896596431732178, -0.15064962208271027, 0.10211006551980972...
func (as *AddressService) Remove(addressID int) error { if err := as.client.Delete(buildString("address/withdraw/", strconv.Itoa(addressID))); err != nil { return err } return nil }
[ -0.6571115851402283, 0.059990037232637405, 0.24437269568443298, -0.9257433414459229, -0.45626842975616455, -0.16702227294445038, -0.3867749869823456, 0.8956606984138489, 2.1400744915008545, 0.4815143048763275, -0.29972580075263977, 0.7460794448852539, -1.101536750793457, 0.3706682622432709...
func (as *AddressService) VerifyWithdrawal(token string) error { if err := as.client.Get(buildString("address/withdraw/verify/", token), nil); err != nil { return err } return nil }
[ 0.3779762089252472, 0.2409934252500534, 0.48213210701942444, -0.11715496331453323, 0.2762555778026581, -0.13472998142242432, -1.0582140684127808, -1.198009967803955, 1.2136316299438477, -0.6546263098716736, -0.8354424834251404, 1.1507092714309692, 0.32152628898620605, 0.565037727355957, ...
func (as *AddressService) VerifyBSB(bsb string) (*BSBStatus, error) { var bsbStatus BSBStatus if err := as.client.Get(buildString("address/withdraw/bsb-verify/", bsb), &bsbStatus); err != nil { return nil, err } return &bsbStatus, nil }
[ -0.08187974244356155, 0.2917337119579315, 0.5895975828170776, 0.9218164086341858, -0.03578938916325569, 0.19198136031627655, -0.43280670046806335, -0.7416852116584778, 1.525083303451538, 0.07457496225833893, -1.3754023313522339, 1.2652215957641602, -1.3322489261627197, 0.7253986597061157, ...
func (as *AddressService) CheckDeposit(addressID int) error { if isEmptyStr(as.assetCode) { return errAssetCode } if err := as.client.Get(buildString("address/check/", as.assetCode, "/", strconv.Itoa(addressID)), nil); err != nil { return err } return nil }
[ -0.872514545917511, -0.029376594349741936, 0.5173687934875488, -1.055922031402588, 0.15374284982681274, -0.17021284997463226, -0.20372430980205536, -0.17754998803138733, 0.36930468678474426, 0.8164637088775635, 0.30252426862716675, 0.23900489509105682, -0.25546643137931824, 0.5405982136726...
func (Type) EnumDescriptor() ([]byte, []int) { return file_price_price_proto_rawDescGZIP(), []int{0} }
[ -1.028461217880249, 0.4202592670917511, 0.7073032855987549, 0.11767129600048065, 0.6716209053993225, -0.29107096791267395, 0.5018824934959412, -0.4567413628101349, 0.1797531694173813, 0.8098533153533936, 0.012960062362253666, 0.44986188411712646, -0.2726374864578247, 1.2201370000839233, ...
func (*Price) Descriptor() ([]byte, []int) { return file_price_price_proto_rawDescGZIP(), []int{0} }
[ -1.216796875, 0.5312334895133972, 0.5270413160324097, 0.6781089901924133, 0.12976734340190887, 0.009471592493355274, 0.23006580770015717, 0.45100122690200806, -0.4937179386615753, -0.1090397760272026, -0.5714030265808105, -0.5426102876663208, -0.24112755060195923, 0.6673714518547058, 1.1...
func (*SearchParams) Descriptor() ([]byte, []int) { return file_price_price_proto_rawDescGZIP(), []int{1} }
[ -0.6220866441726685, 0.6947876811027527, 0.41028115153312683, 0.4024295508861542, 0.33096134662628174, -0.14936700463294983, 0.32912513613700867, 0.07487811148166656, -1.0625276565551758, 0.22005562484264374, -0.8045819997787476, 0.22502760589122772, -0.3338242471218109, 0.8083080053329468...
func NewInt(i int64) T { return big.NewInt(i) }
[ 0.31667420268058777, 1.1220121383666992, 0.04615562781691551, 0.23261232674121857, -0.7441596984863281, 0.023917002603411674, 0.17230825126171112, -0.7485834360122681, -0.4479982852935791, 0.44857341051101685, -0.7309569716453552, -0.7956385612487793, 0.6967169046401978, -0.333167403936386...
func NewFloat(f float64) T { return big.NewFloat(f) }
[ 0.7859355807304382, 1.4474589824676514, 0.23809942603111267, 0.4760396480560303, -0.23461537063121796, -0.7481198906898499, 0.1074448972940445, 0.3099343180656433, -0.6572014093399048, -0.6919817328453064, -0.20998916029930115, -0.8643270134925842, 1.3064823150634766, 0.38155287504196167, ...
func (m Map) Lookup(d digest.Digest, key T) T { if _, ok := m.tab[d]; !ok { return nil } entry := *m.tab[d] for entry != nil && Less(entry.Key, key) { entry = entry.Next } if entry == nil || !Equal(entry.Key, key) { return nil } return entry.Value }
[ 0.1358521729707718, -0.4877370595932007, 0.6314246654510498, -0.3119792938232422, -0.6856811046600342, -0.44973039627075195, -0.445494145154953, -0.420745849609375, -0.2539922595024109, 0.41800203919410706, 0.8702472448348999, 0.19959411025047302, 0.21421052515506744, -0.26604512333869934,...
func (m *Map) Insert(d digest.Digest, key, value T) { if m.tab[d] == nil { entry := &mapEntry{Key: key, Value: value} if m.tab == nil { m.tab = make(map[digest.Digest]**mapEntry) } m.n++ m.tab[d] = &entry return } entryp := m.tab[d] for *entryp != nil && Less((*entryp).Key, key) { entryp = &(*entry...
[ -0.7532815337181091, 0.3987725079059601, 0.7451980710029602, -0.7595242261886597, -0.5098509788513184, 0.07849151641130447, 0.1139443889260292, 0.4257872700691223, -0.6160186529159546, -0.08050799369812012, -0.20954228937625885, -0.4090949594974518, -0.17563335597515106, 0.296600341796875,...
func (m Map) Len() int { return m.n }
[ -0.3824622333049774, -0.7894580364227295, -0.12501060962677002, -0.04761157184839249, -0.016301961615681648, 0.11824284493923187, 0.6488693356513977, 0.5698316097259521, -0.2832443118095398, -1.1434533596038818, -0.5585100650787354, 0.053916893899440765, 0.4211980402469635, 0.2774515151977...
func (m Map) Each(fn func(k, v T)) { digests := make([]digest.Digest, 0, len(m.tab)) for d := range m.tab { digests = append(digests, d) } sort.Slice(digests, func(i, j int) bool { return digests[i].Less(digests[j]) }) for _, d := range digests { for entry := *m.tab[d]; entry != nil; entry = entry.Next { fn...
[ -0.30663394927978516, -0.6204513907432556, 0.613114058971405, -0.15663231909275055, 0.03492173179984093, 0.10306005924940109, 0.0251762792468071, 0.24357999861240387, -1.190809726715088, -0.221298485994339, 0.5800166726112366, 0.0681307464838028, 1.5031050443649292, 0.2603776454925537, -...
func MakeMap(kt *types.T, kvs ...T) *Map { if len(kvs)%2 != 0 { panic("uneven makemap") } m := new(Map) for i := 0; i < len(kvs); i += 2 { m.Insert(Digest(kvs[i], kt), kvs[i], kvs[i+1]) } return m }
[ -0.6655558347702026, 0.5203179717063904, 0.7204597592353821, 0.25627759099006653, -0.8415414094924927, 0.9729402661323547, -0.5148037075996399, -0.4700438976287842, -0.11088137328624725, 0.0916205421090126, 0.361992746591568, -1.367430567741394, 0.28137239813804626, -0.6976246237754822, ...
func (d Dir) Len() int { return len(d.contents) }
[ -0.6928101778030396, 0.25840356945991516, -0.0300834309309721, -0.9289819598197937, 0.2684890329837799, -1.0367803573608398, 0.9894849061965942, 0.6970414519309998, 0.2640133798122406, -1.3535109758377075, -0.46383997797966003, 0.5017377138137817, 1.4069644212722778, 0.4564495086669922, ...
func (d *Dir) Set(path string, file reflow.File) { if d.contents == nil { d.contents = make(map[string]reflow.File) } d.contents[path] = file }
[ -0.14463752508163452, -0.3927825093269348, 0.19572891294956207, -1.0737602710723877, -0.04118075966835022, 0.17176495492458344, -0.07230979949235916, -0.21071334183216095, -1.049470067024231, -0.6634560227394104, 0.5544148087501526, 0.10450682044029236, 0.7351425290107727, 0.49654620885849...
func (d Dir) Lookup(path string) (file reflow.File, ok bool) { file, ok = d.contents[path] return file, ok }
[ -0.3190498352050781, 0.24305382370948792, 0.42015892267227173, -0.7483992576599121, -0.2503834068775177, 0.0596536248922348, 0.53318190574646, -0.849001944065094, 0.011802193708717823, -0.028224969282746315, 0.9723028540611267, -0.6212062239646912, 0.4717038571834564, -1.0065228939056396, ...
func (s *DirScanner) Scan() bool { if len(s.todo) == 0 { return false } s.path = s.todo[0] s.todo = s.todo[1:] return true }
[ -1.4150837659835815, 0.3733914792537689, 0.4095761179924011, 1.1329376697540283, -0.3999900817871094, 0.08031745254993439, 0.476604700088501, 0.8771167993545532, -0.03699849918484688, -0.9679113030433655, -0.4662104547023773, -0.32309702038764954, 0.3499657213687897, -0.05004028603434563, ...
func (s *DirScanner) Path() string { return s.path }
[ -0.012216744013130665, -0.7513368725776672, 0.11736641824245453, 0.8319615125656128, -0.7465100884437561, 1.1035419702529907, 1.1446316242218018, -0.798141598701477, 0.7540271282196045, -0.6717724204063416, 0.4057360291481018, -1.1332098245620728, -0.35241249203681946, 0.3671920895576477, ...
func (s *DirScanner) File() reflow.File { return s.contents[s.path] }
[ -0.20764702558517456, -0.6814157962799072, 0.11296453326940536, 0.5376574397087097, -0.3566211462020874, 0.39488306641578674, 0.8554469347000122, -1.0105489492416382, -0.016687877476215363, -1.6001402139663696, 0.9492303133010864, -0.4061075747013092, 0.9824579358100891, 0.4147078096866607...
func (d Dir) Equal(e Dir) bool { if d.Len() != e.Len() { return false } for lk, lv := range d.contents { if rv, ok := e.contents[lk]; !ok || !rv.Equal(lv) { return false } } return true }
[ -1.7445813417434692, 0.08213897049427032, 0.443836510181427, -0.1998215764760971, 0.15173029899597168, 0.17011620104312897, -0.06845861673355103, 0.03561745956540108, -0.3067891001701355, 0.41731297969818115, -0.5061503052711487, 0.369778573513031, 0.01788322627544403, 1.0275137424468994, ...
func Equal(v, w T) bool { switch v := v.(type) { case reflow.File: l, r := v, w.(reflow.File) return l.Equal(r) default: } return reflect.DeepEqual(v, w) }
[ 0.23910513520240784, -0.13273251056671143, 0.5278899073600769, 0.17936921119689941, 0.8010324835777283, 0.7942849397659302, 0.0794423371553421, -0.8050410747528076, -0.6842657923698425, 0.5497309565544128, 0.17500977218151093, 0.6861329078674316, -0.6927058696746826, 1.2416210174560547, ...
func Less(v, w T) bool { if v == Unit { return false } switch v := v.(type) { case *big.Int: return v.Cmp(w.(*big.Int)) < 0 case *big.Float: return v.Cmp(w.(*big.Float)) < 0 case string: return v < w.(string) case bool: return !v && w.(bool) case reflow.File: w := w.(reflow.File) if v.IsRef() != w...
[ -0.13455794751644135, -0.8930798172950745, 0.8537289500236511, -1.1325037479400635, -0.6519515514373779, 0.27541959285736084, 0.19994935393333435, -0.9630773067474365, 0.07883516699075699, -0.7811688184738159, -0.0849638357758522, 0.1019827350974083, -0.41115814447402954, 0.963063538074493...
func Sprint(v T, t *types.T) string { switch arg := v.(type) { case shorter: return arg.Short() case stringer: return arg.String() case digester: return fmt.Sprintf("delayed(%v)", arg.Digest()) } switch t.Kind { case types.ErrorKind, types.BottomKind: panic("illegal type") case types.IntKind: return ...
[ 0.35959911346435547, -0.40854740142822266, 0.6777732372283936, -0.7212884426116943, -0.444309800863266, -0.5953319668769836, -0.3230299949645996, -1.481255054473877, -0.20060111582279205, 0.14559532701969147, 1.014639139175415, 0.3855559229850769, 0.8990525603294373, 0.2205027937889099, ...
func Digest(v T, t *types.T) digest.Digest { w := Digester.NewWriter() WriteDigest(w, v, t) return w.Digest() }
[ 0.33316949009895325, -0.80202716588974, 0.4728229343891144, 0.01444980502128601, 0.141997292637825, 0.2507041394710541, 0.5120279788970947, 0.05190664529800415, -0.8545055389404297, -0.6564171314239502, 0.14022013545036316, 0.5319211483001709, 0.3238898515701294, 0.4775956869125366, -0.3...
func WriteDigest(w io.Writer, v T, t *types.T) { if d, ok := v.(digester); ok { digest.WriteDigest(w, d.Digest()) return } w.Write([]byte{t.Kind.ID()}) switch t.Kind { case types.ErrorKind, types.BottomKind, types.RefKind: panic("illegal type") case types.IntKind: vi := v.(*big.Int) // Bytes returns th...
[ -0.5211259722709656, 0.01926838792860508, 0.6652879118919373, -0.3317314088344574, 0.5249959826469421, -0.35900604724884033, 0.20602242648601532, -1.0560696125030518, -0.1532287299633026, -0.23160339891910553, 0.18108698725700378, 0.043325480073690414, 0.4777922034263611, 0.924120724201202...
func OnUpdateManifest(repo, reference, mediaType string, digest godigest.Digest, body []byte, storeController storage.StoreController, metaDB mTypes.MetaDB, log log.Logger, ) error { imgStore := storeController.GetImageStore(repo) // check if image is a signature isSignature, signatureType, signedManifestDigest, e...
[ -0.2807157337665558, -1.0845754146575928, 0.8957515954971313, -0.09632480144500732, -0.4071732461452484, -0.2093069702386856, -0.4123065769672394, 0.5285724997520447, 0.6682741641998291, 1.2687125205993652, -0.038180604577064514, -0.3306877315044403, -0.2970932424068451, 0.6374021768569946...
func OnDeleteManifest(repo, reference, mediaType string, digest godigest.Digest, manifestBlob []byte, storeController storage.StoreController, metaDB mTypes.MetaDB, log log.Logger, ) error { imgStore := storeController.GetImageStore(repo) isSignature, signatureType, signedManifestDigest, err := storage.CheckIsImage...
[ 0.3766508400440216, -0.36519715189933777, 0.7184759974479675, -0.11202310025691986, -0.2590855360031128, -0.6590263843536377, -0.24775992333889008, 0.5158705115318298, 1.1899290084838867, 0.5851606130599976, 0.458103209733963, -0.11506644636392593, -0.9061668515205383, 1.172071099281311, ...
func OnGetManifest(name, reference string, body []byte, storeController storage.StoreController, metaDB mTypes.MetaDB, log log.Logger, ) error { // check if image is a signature isSignature, _, _, err := storage.CheckIsImageSignature(name, body, reference) if err != nil { log.Error().Err(err).Msg("can't check if ...
[ 0.33931541442871094, -0.5944281220436096, 0.7889763712882996, 0.07117203623056412, -0.1823292225599289, -1.1857463121414185, -0.6485804319381714, -0.11011236160993576, 0.9147375822067261, 0.660353422164917, 0.5320237278938293, 0.09045849740505219, -0.16292214393615723, 1.2167541980743408, ...
func (api *API) GetCommitteeRequest(id uint32, count int32) (*CommitteeObject, error) { var resp CommitteeObject err := api.call("committee_api", "get_committee_request", []interface{}{id, count}, &resp) return &resp, err }
[ -0.7969551086425781, -0.26522576808929443, 0.631573498249054, -0.3067910969257355, 0.4086230993270874, -1.0431289672851562, -0.15603698790073395, -0.4806879758834839, -0.7108752727508545, 0.6203320622444153, -0.04566265270113945, 1.4918638467788696, -0.5220706462860107, -0.3596379160881042...
func (api *API) GetCommitteeRequestVotes(id uint32) ([]*CommitteeVoteState, error) { var resp []*CommitteeVoteState err := api.call("committee_api", "get_committee_request_votes", []interface{}{id}, &resp) return resp, err }
[ -1.149074912071228, 0.17528875172138214, 0.5608083605766296, 0.005489567294716835, 0.5501354932785034, -0.3300199806690216, -1.1248359680175781, -0.5114201307296753, 0.23900121450424194, 0.1995818018913269, 0.08007629215717316, 0.7561199069023132, -0.8148717880249023, 0.25284096598625183, ...
func (api *API) GetCommitteeRequestsList(status uint16) ([]*uint16, error) { var resp []*uint16 err := api.call("committee_api", "get_committee_requests_list", []interface{}{status}, &resp) return resp, err }
[ -0.6427149772644043, -0.15149392187595367, 0.5749073624610901, 0.2052728831768036, 0.4668629467487335, -0.02875543013215065, -0.7342700362205505, 0.6080687642097473, 0.011572184972465038, 0.8409843444824219, -0.5265922546386719, 0.48153096437454224, -0.7374374270439148, 0.19033733010292053...
func NewBtcClient() (*BtcClient, error) { var BtcHostPort = fmt.Sprintf("%s:%s",config.RpcConfig.BtcHost,config.RpcConfig.BtcPort) var BtcrpcUser = config.RpcConfig.BtcRpcUser var BtcrpcPassword = config.RpcConfig.BtcRpcPwd connCfg := &rpcclient.ConnConfig{ Host: BtcHostPort, User: BtcrpcUser,...
[ 0.3573569059371948, -1.0937058925628662, 0.6077871918678284, -0.7999951243400574, -0.00815073773264885, -0.015068774111568928, -0.09098400175571442, -0.7202690839767456, -0.8088801503181458, 0.4589686691761017, -0.14131474494934082, 0.7234027981758118, -1.0301257371902466, -0.4697788059711...
func (client *BtcClient) GetNewAddress(account string) (string, error) { if len(account) == 0 { account = DEFAULT_ACCOUNT } address, err := client.rpcClient.GetNewAddress(account) if err != nil { return "", err } return address.String(), nil }
[ -0.3533836603164673, 0.3955942690372467, 0.8105041980743408, 0.33127090334892273, 0.3333049416542053, -0.22433654963970184, -0.0618463009595871, -0.5518016815185547, 0.2724187970161438, 0.6516845226287842, -0.011126344092190266, 1.1696892976760864, -1.4271904230117798, 0.1727653592824936, ...
func (client *BtcClient) SendFrom(account, address string, amount float64) (string, error) { decoded, err := decodeAddress(address, btcEnv) if err != nil { return "", err } btcAmount, err := convertToBtcAmount(amount) if err != nil { return "", err } hash, err := client.rpcClient.SendFrom(account, decoded,...
[ 1.0674997568130493, 0.1663144826889038, 0.6456881761550903, 0.05084874853491783, -1.3202641010284424, -0.038742974400520325, -0.3874017298221588, -0.24314385652542114, 0.006322581321001053, 0.7612509727478027, 0.283825159072876, 0.6282607316970825, -0.20195746421813965, -0.1655137240886688...
func (client *BtcClient)BtcSendRawTrans(serial string , tx []byte)(string,error ){ var redeemTx wire.MsgTx err := json.Unmarshal(tx,&redeemTx) if err != nil { return "",err } sendResult,err := client.rpcClient.SendRawTransaction(&redeemTx,false) //sendResult,err := btcClient.SendRawTransactionAsync(&redeemTx,...
[ -0.49360066652297974, 0.5790123343467712, 0.9863120913505554, -1.1063683032989502, -1.0118272304534912, -0.8020377159118652, -0.8167360424995422, -0.7175514698028564, 0.3425857424736023, 0.7874430418014526, -0.8686219453811646, 0.8200294971466064, -0.5524897575378418, -0.8088948130607605, ...
func decodeAddress(address string, cfg *chaincfg.Params) (btcutil.Address, error) { decodedAddress, err := btcutil.DecodeAddress(address, cfg) if err != nil { return nil, err } return decodedAddress, nil }
[ 0.12466790527105331, -0.9241862893104553, 0.3702564239501953, -0.06067779287695885, 0.3119833469390869, -0.09989405423402786, 0.1573946475982666, 0.4835248589515686, 0.44864922761917114, -0.33690929412841797, -0.3261115849018097, 1.4985743761062622, -0.8735207915306091, 0.21871842443943024...
func (c Client) GetHTTPClient() *http.Client { return &c.httpClient }
[ 0.680385172367096, -0.23995095491409302, 0.2645149230957031, 0.6442529559135437, -0.03605857491493225, 0.5004628896713257, 0.8776638507843018, -0.5331676006317139, -0.1452653557062149, -0.8670515418052673, -0.06629063934087753, 1.2553188800811768, -0.6298990249633789, -0.6345624327659607, ...
func JsonPrint(data interface{}) { var p []byte p, err := json.Marshal(data) if err != nil { fmt.Println(err) return } fmt.Printf("%s \n", p) }
[ 0.7911593914031982, -0.30051296949386597, 0.8801205158233643, -0.6737146377563477, -0.35261425375938416, 0.3012458384037018, -0.6985652446746826, -0.5247881412506104, 0.5296749472618103, -0.3598499000072479, 0.1821645051240921, 1.5135810375213623, -0.08639594167470932, 0.34265655279159546,...
func Generate(data []byte) ([]byte, error) { if len(data) == 0 { return nil, ErrEmptySlice } var tempHash = make([]int, len(data)*8) var hash []byte var index = 0 for _, ib := range data { for i, coefficient := range Coefficients { var temp int if i > 0 { temp = i - 1 } tempHash[index] = ((te...
[ -0.2652828097343445, 0.3033656179904938, 0.6895604133605957, -0.06494566053152084, -0.12691731750965118, -0.20605584979057312, -0.28821489214897156, -0.3581746220588684, 0.11654621362686157, 0.22675932943820953, -0.9345541000366211, -0.5937469601631165, -0.4412158727645874, 0.3473888635635...
func TestPoolGC(t *testing.T) { testPool(t, true) }
[ 0.41331246495246887, 0.9114169478416443, 0.3831905126571655, -0.1905497908592224, 0.42214125394821167, 1.6021409034729004, 1.3678476810455322, -1.0209242105484009, -0.7646591067314148, 0.3064432442188263, -0.7431163787841797, 0.7535191774368286, -0.48125985264778137, 0.5751327872276306, ...
func TestPoolRelease(t *testing.T) { testPool(t, false) }
[ -0.3693464696407318, -0.30976369976997375, 0.1791532337665558, -0.08797454833984375, 0.3110674321651459, 0.9282294511795044, 0.8723071217536926, -0.5910977721214294, 0.5810069441795349, 0.07196592539548874, -0.5150353312492371, 0.7802306413650513, -0.3453632891178131, 0.5707461833953857, ...
func BenchmarkPoolStarvation(b *testing.B) { var p Pool count := 100 // Reduce number of putted objects by 33 %. It creates objects starvation // that force P-local storage to steal objects from other Ps. countStarved := count - int(float32(count)*0.33) b.RunParallel(func(pb *testing.PB) { for pb.Next() { fo...
[ 0.3781333267688751, 0.4756266474723816, 0.5519617199897766, 0.12519851326942444, 0.6233741641044617, 0.2602565288543701, 1.6749215126037598, -0.004342372994869947, -0.15688829123973846, 1.0154857635498047, -0.4141240119934082, 0.36821049451828003, -0.3415353298187256, -0.1951669454574585, ...
func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher { mock := &MockFetcher{ctrl: ctrl} mock.recorder = &MockFetcherMockRecorder{mock} return mock }
[ 0.35602957010269165, 0.005455000791698694, 0.34814706444740295, 0.8124043345451355, -0.4635733962059021, 0.19742301106452942, 0.014316502027213573, -0.7903068661689758, 0.3463011682033539, -0.21363720297813416, -0.897473931312561, -0.3498896062374115, 0.10451357066631317, 1.84627103805542,...
func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder { return m.recorder }
[ -0.16598019003868103, 0.21252569556236267, 0.29543864727020264, 0.21156103909015656, -0.16420286893844604, 0.3531849980354309, -0.16242310404777527, 0.02594449557363987, 0.043688368052244186, -0.4861922264099121, 0.5160448551177979, 0.4663165509700775, -0.22847609221935272, 1.0625376701354...
func (m *MockFetcher) FetchLocalImage(arg0 string) (image.Image, error) { ret := m.ctrl.Call(m, "FetchLocalImage", arg0) ret0, _ := ret[0].(image.Image) ret1, _ := ret[1].(error) return ret0, ret1 }
[ 0.4250093698501587, -0.38754019141197205, 0.036458663642406464, 0.425174742937088, -0.15338319540023804, 0.671181857585907, 0.23782718181610107, -0.2108650952577591, -0.7521266937255859, 0.044334184378385544, -0.6982898116111755, -0.023873556405305862, -0.3367203176021576, 1.62997436523437...
func (mr *MockFetcherMockRecorder) FetchLocalImage(arg0 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLocalImage", reflect.TypeOf((*MockFetcher)(nil).FetchLocalImage), arg0) }
[ 0.6666030883789062, 0.21335351467132568, -0.027975687757134438, 0.3152802884578705, -1.036669373512268, 0.629335880279541, -0.3871464431285858, -0.330639123916626, 0.5911399126052856, 0.6829637885093689, 0.2680756449699402, 0.7601699233055115, -0.38117101788520813, 1.6837210655212402, -0...
func (m *MockFetcher) FetchRemoteImage(arg0 string) (image.Image, error) { ret := m.ctrl.Call(m, "FetchRemoteImage", arg0) ret0, _ := ret[0].(image.Image) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.05133963003754616, -0.4104202389717102, 0.36113274097442627, 0.3741471469402313, 0.23826827108860016, 1.3320705890655518, 0.36478206515312195, -0.5603525638580322, -0.975308895111084, 0.2162151038646698, -1.1359003782272339, -0.1094927191734314, -0.6174665689468384, 1.334014654159546, ...
func (mr *MockFetcherMockRecorder) FetchRemoteImage(arg0 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchRemoteImage", reflect.TypeOf((*MockFetcher)(nil).FetchRemoteImage), arg0) }
[ 0.3032255172729492, 0.15406930446624756, 0.18054145574569702, 0.276653915643692, -0.6314581036567688, 1.5020725727081299, -0.2864611744880676, -0.6143044233322144, 0.20690050721168518, 0.958666980266571, -0.21262866258621216, 0.6043654680252075, -0.7654475569725037, 1.3296869993209839, -...
func (m *MockFetcher) FetchUpdatedLocalImage(arg0 context.Context, arg1 string, arg2 io.Writer) (image.Image, error) { ret := m.ctrl.Call(m, "FetchUpdatedLocalImage", arg0, arg1, arg2) ret0, _ := ret[0].(image.Image) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.303335577249527, -0.8472285270690918, 0.11946035176515579, 0.10197430104017258, -0.0851188376545906, 0.8577054738998413, 0.05521566420793533, -0.41065043210983276, -0.9273920655250549, 0.0904778316617012, -0.8035085797309875, 0.06768114864826202, 0.04017932340502739, 1.239235281944275, ...
func (mr *MockFetcherMockRecorder) FetchUpdatedLocalImage(arg0, arg1, arg2 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchUpdatedLocalImage", reflect.TypeOf((*MockFetcher)(nil).FetchUpdatedLocalImage), arg0, arg1, arg2) }
[ -0.09362379461526871, -0.420358270406723, 0.1793338656425476, 0.11326030641794205, -1.0101523399353027, 0.7980924248695374, -0.7390549182891846, -0.6462549567222595, 0.2604335844516754, 0.8683774471282959, 0.21576564013957977, 0.7586631178855896, 0.16014088690280914, 1.401799201965332, -...
func NewProtocol( store s.Store, epochCtx *epochctx.EpochCtx, rewardingConfig indexprotocol.Rewarding, gravityChainCfg indexprotocol.GravityChain, ) *Protocol { return &Protocol{ Store: store, RewardConfig: rewardingConfig, epochCtx: epochCtx, gravityChainCfg: gravityChainCfg, } }
[ 0.19500410556793213, 0.5353215932846069, 0.06250961869955063, -0.14236317574977875, -0.3487657308578491, -0.18999263644218445, -0.5194761157035828, -0.3297768831253052, 0.3370203971862793, 0.19221240282058716, -0.21189486980438232, 0.3873531222343445, -0.4292448163032532, -1.29045414924621...
func (p *Protocol) Initialize(context.Context, *sql.Tx, *indexprotocol.Genesis) error { return nil }
[ -0.509711742401123, 0.9921722412109375, 0.32572048902511597, 0.6248761415481567, 0.4038469195365906, -0.13602828979492188, -0.023858822882175446, -0.41959062218666077, -0.4787147045135498, 0.13044248521327972, -0.42153140902519226, 0.8087505102157593, -1.9496456384658813, -0.60277307033538...
func (p *Protocol) getRewardHistory(actionHash string) ([]*RewardHistory, error) { db := p.Store.GetDB() getQuery := fmt.Sprintf(selectRewardHistory, RewardHistoryTableName) stmt, err := db.Prepare(getQuery) if err != nil { return nil, errors.Wrap(err, "failed to prepare get query") } defer stmt.Close() ro...
[ 0.4150848388671875, 0.9272879958152771, 0.6867465376853943, -0.1524062156677246, 0.786230742931366, -0.1956971436738968, -0.16457344591617584, -0.6601898670196533, 0.5396180152893066, 0.7992936968803406, -0.24691219627857208, 0.7294302582740784, -0.33308467268943787, 0.5427474975585938, ...
func (p *Protocol) getAccountReward(epochNumber uint64, candidateName string) (*AccountReward, error) { db := p.Store.GetDB() getQuery := fmt.Sprintf(selectAccountReward, AccountRewardTableName) stmt, err := db.Prepare(getQuery) if err != nil { return nil, errors.Wrap(err, "failed to prepare get query") } de...
[ -0.20539966225624084, 0.28659573197364807, 0.7284285426139832, -0.5799271464347839, 0.19327902793884277, -0.7798548340797424, 0.24670453369617462, 0.33945828676223755, 0.5759005546569824, 0.052472326904535294, 0.6939831972122192, 1.0085530281066895, -0.281328409910202, -0.2415347844362259,...
func (p *Protocol) updateRewardHistory(tx *sql.Tx, epochNumber uint64, actionHash string, rewardInfoMap map[string]*RewardInfo) error { valStrs := make([]string, 0, len(rewardInfoMap)) valArgs := make([]interface{}, 0, len(rewardInfoMap)*7) for rewardAddress, rewards := range rewardInfoMap { blockReward := rewards...
[ -0.20768991112709045, -0.1965901106595993, 0.7700754404067993, -0.4857877194881439, 0.3706303834915161, 0.35451456904411316, 0.09882467240095139, 0.32676389813423157, 0.05693715810775757, 0.6489220261573792, -0.321708083152771, 0.3888813257217407, -0.3578105866909027, 0.16352814435958862, ...
func stringToBigInt(estr string) (*big.Int, error) { ret, ok := big.NewInt(0).SetString(estr, 10) if !ok { return nil, errors.New("failed to parse string to big int") } return ret, nil }
[ 0.26805660128593445, -0.617798388004303, 0.3538748621940613, -0.9670858979225159, 0.41941574215888977, 0.13094466924667358, 0.026414886116981506, 0.011323784478008747, -0.1139584481716156, 0.1654573380947113, -0.7476833462715149, 0.9684495329856873, -0.1695471853017807, -0.5799511671066284...
func NewStorageReader(accountName, accountKey, containerName string) (*StorageReader, error) { logp.Debug( "storage_reader", "Creating new instance of storage reader", ) c := &Config{ accountName: accountName, accountKey: accountKey, containerName: containerName, } sr := &StorageReader{ config:...
[ 0.4412435293197632, -0.5094155669212341, 0.18728448450565338, 0.5688552260398865, 0.0491178035736084, -0.22220279276371002, -0.2247685343027115, -0.3394186496734619, -0.6060940623283386, -0.13619722425937653, 0.28675171732902527, 0.06295175105333328, -0.6397720575332642, 0.5155903697013855...
func (sr *StorageReader) ListBlobsModifiedBetween(startTime, endTime int64) *[]BlobDetails { logp.Debug("storage_reader", "Listing blobs modified between %v and %v.", startTime, endTime) ctx := context.Background() var blobItems []BlobDetails i := 0 for marker := (azblob.Marker{}); marker.NotDone(); { listBl...
[ 0.14328278601169586, -1.5697349309921265, 0.6191973090171814, 0.0021377643570303917, 0.4705669581890106, -0.07552448660135269, -0.802401065826416, -1.1881465911865234, -0.8233013153076172, 0.23721204698085785, -0.2998967468738556, 0.9213795065879822, -0.6427852511405945, 0.3316295146942138...
func (sr *StorageReader) ReadBlobData(path string, startIndex, length int64) []byte { ctx := context.Background() blobURL := sr.container.NewBlockBlobURL(path) downloadResponse, err := blobURL.Download(ctx, startIndex, length, azblob.BlobAccessConditions{}, false) logp.Info("Attempting to download blob %s at %v"...
[ 0.19389423727989197, -0.30343934893608093, 0.8137280941009521, -0.019094301387667656, -0.43852004408836365, 0.5040443539619446, -0.6538479924201965, -1.254281997680664, -0.40367230772972107, 0.29031744599342346, -0.34280455112457275, 0.9532247185707092, -0.9143609404563904, -1.088822364807...
func (r *Response) Supported() bool { return !strings.Contains(r.String(), NotSupported) }
[ -0.5920979976654053, -0.49016880989074707, 0.3193163573741913, -0.3202700912952423, -0.38441184163093567, 0.31240615248680115, -0.7854079604148865, 0.29875636100769043, 0.1881672590970993, 0.09360268712043762, -0.9311745762825012, -0.43040138483047485, -0.616083025932312, -0.19546039402484...
func (r *Response) String() string { return string(r.Data) }
[ 0.22847051918506622, -1.709231972694397, -0.3575070798397064, -1.0075106620788574, -0.4399743974208832, 0.787956178188324, 0.3773285150527954, -1.9189876317977905, 0.5809839367866516, -0.8024862408638, -0.3646183907985687, 0.2072468101978302, -0.07793980091810226, -1.131616473197937, 0.6...
func (r *Response) Bool() (bool, error) { return strconv.ParseBool(r.String()) }
[ 0.45255959033966064, -1.107362985610962, 0.30736786127090454, -0.16355155408382416, -0.10229796916246414, 0.054771654307842255, -0.07294098287820816, 0.09996268153190613, 0.2534774839878082, -0.29370737075805664, -0.5600594282150269, 0.34075725078582764, 0.019655857235193253, -1.9781366586...
func (r *Response) Int() (int, error) { return strconv.Atoi(r.String()) }
[ 0.1535910665988922, -1.365598201751709, 0.2795426845550537, -1.22275972366333, -0.5716859102249146, -0.40274518728256226, -0.04443996399641037, -0.6239736080169678, -0.5703132152557373, -0.30931708216667175, -0.11530052125453949, -0.030017126351594925, -0.08509273082017899, -0.917102873325...
func (r *Response) Int64() (int64, error) { return strconv.ParseInt(r.String(), 10, 64) }
[ -0.7007763385772705, -0.7004464268684387, 0.18460749089717865, -0.12554942071437836, 0.3822244703769684, -1.2683463096618652, -0.0599740594625473, -0.17277102172374725, 0.4223652780056, -0.3697689175605774, -0.030959539115428925, 0.07302495837211609, -0.820286214351654, -0.4075224995613098...
func (r *Response) Float64() (float64, error) { return strconv.ParseFloat(r.String(), 64) }
[ 0.043972138315439224, -0.7995565533638, 0.1598934829235077, 0.12517613172531128, 0.3034614026546478, -1.2580194473266602, -0.43136781454086304, -0.6795061826705933, 0.12615585327148438, -0.8464332222938538, -0.06884334981441498, -0.12445176392793655, -0.7586889863014221, -0.162995308637619...
func (r *Response) Interface() interface{} { // Attempt int64 i, err := strconv.ParseInt(r.String(), 10, 64) if err == nil { return i } // Attempt float64 f, err := strconv.ParseFloat(r.String(), 64) if err == nil { return f } // Attempt bool b, err := strconv.ParseBool(r.String()) if err == nil { re...
[ -0.352622926235199, -0.697033166885376, 0.7152805924415588, -0.5918266773223877, -0.34685736894607544, -0.22888360917568207, 0.07958205789327621, -0.4592856168746948, 0.2510283589363098, -0.2939470708370209, -0.0296805240213871, -0.2111651748418808, -0.42777717113494873, -0.294428199529647...
func newResponse() *Response { return &Response{ // Header is always 5 bytes Header: make([]byte, 5), } }
[ 0.6686919331550598, -0.7796469330787659, 0.0017660229932516813, 0.7298410534858704, -0.8232057094573975, -0.5795482397079468, -0.3632703125476837, -1.3552054166793823, 0.8007721900939941, -0.631153404712677, -1.0901612043380737, -0.8394296765327454, -1.2083534002304077, -0.2771248519420624...
func Serve(ctx context.Context, serviceName string, options ...ServerOption) error { var err error // Setup the server options serverOptions := &serverOptions{ serviceName: serviceName, log: log.WithField("service", serviceName), } options = append([]ServerOption{ WithServerConfig(ServerConfig{ ...
[ 0.3264290690422058, -0.01801484450697899, 0.733814001083374, 0.4946410357952118, 0.4482855498790741, 0.14087693393230438, -0.2695861756801605, -0.8523955941200256, -0.3267049193382263, 0.556175708770752, -0.20817270874977112, 0.05156714469194412, -0.6625601053237915, 0.18517421185970306, ...
func NewPolicyDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PolicyDefinitionsClient { cp := arm.ClientOptions{} if options != nil { cp = *options } if len(cp.Host) == 0 { cp.Host = arm.AzurePublicCloud } return &PolicyDefinitionsClient{subscriptionID:...
[ 1.313069462776184, -0.03021550178527832, -0.20797118544578552, -0.2792130708694458, -0.05777645856142044, 0.3557267189025879, -0.9431236386299133, -0.5563160181045532, -0.07672348618507385, -0.2578527629375458, -0.6517505645751953, 1.1591060161590576, -0.17919164896011353, -0.2143610566854...
func (client *PolicyDefinitionsClient) createOrUpdateCreateRequest(ctx context.Context, policyDefinitionName string, parameters PolicyDefinition, options *PolicyDefinitionsCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{...
[ -0.3493318557739258, -0.7605323195457458, 0.5226454734802246, -0.39911946654319763, -0.30598798394203186, 0.3667227327823639, -0.5574188232421875, 0.2187211960554123, 0.2842559516429901, 0.3709526062011719, 0.4397677779197693, 0.6159413456916809, -0.10633911192417145, 0.5996853113174438, ...
func (client *PolicyDefinitionsClient) createOrUpdateHandleResponse(resp *http.Response) (PolicyDefinitionsCreateOrUpdateResponse, error) { result := PolicyDefinitionsCreateOrUpdateResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinition); err != nil { return PolicyDefinitionsCre...
[ -0.03484281152486801, -0.6537355780601501, 0.11864238232374191, -0.562990665435791, -0.027195999398827553, 0.7600663304328918, -0.0345991775393486, -0.238662451505661, 0.5303213596343994, 0.06745998561382294, -0.3559221625328064, -1.1754757165908813, -0.84598308801651, -0.20883174240589142...
func (client *PolicyDefinitionsClient) createOrUpdateAtManagementGroupCreateRequest(ctx context.Context, policyDefinitionName string, managementGroupID string, parameters PolicyDefinition, options *PolicyDefinitionsCreateOrUpdateAtManagementGroupOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Mana...
[ -0.6193633079528809, -0.1769835650920868, 0.2053433507680893, -0.6369335651397705, -0.4141511023044586, -0.05766487121582031, -0.5371626019477844, -0.4739150404930115, -0.355280339717865, 0.6352865099906921, 0.47087305784225464, 0.6087287068367004, -0.0815490186214447, 1.0079317092895508, ...
func (client *PolicyDefinitionsClient) createOrUpdateAtManagementGroupHandleResponse(resp *http.Response) (PolicyDefinitionsCreateOrUpdateAtManagementGroupResponse, error) { result := PolicyDefinitionsCreateOrUpdateAtManagementGroupResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefi...
[ -0.08184099197387695, -0.08453051745891571, -0.026035478338599205, -0.8094092607498169, -0.29234176874160767, 0.3180708885192871, -0.15348780155181885, -0.7587136626243591, -0.014474607072770596, 0.39145249128341675, -0.29823893308639526, -1.0154380798339844, -0.7447294592857361, 0.1605918...
func (client *PolicyDefinitionsClient) deleteCreateRequest(ctx context.Context, policyDefinitionName string, options *PolicyDefinitionsDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}" if policyDefinitionNa...
[ 0.24327735602855682, -0.46785080432891846, 0.8528472781181335, -0.08376413583755493, -0.3675163686275482, 0.22845999896526337, -0.28916123509407043, 0.0008968267356976867, 0.2883329689502716, -0.27060040831565857, 0.3578217625617981, 1.2843416929244995, -0.25425171852111816, 0.442873030900...
func (client *PolicyDefinitionsClient) deleteAtManagementGroupCreateRequest(ctx context.Context, policyDefinitionName string, managementGroupID string, options *PolicyDefinitionsDeleteAtManagementGroupOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Management/managementGroups/{managementGroupId}/p...
[ 0.16093310713768005, -0.192270427942276, 0.23891812562942505, -0.6335450410842896, -0.5489679574966431, 0.060229815542697906, -0.3101968765258789, -0.716960608959198, -0.5406933426856995, 0.09922651201486588, 0.6739515066146851, 1.1396750211715698, -0.01472699549049139, 0.8536489605903625,...
func (client *PolicyDefinitionsClient) getCreateRequest(ctx context.Context, policyDefinitionName string, options *PolicyDefinitionsGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}" if policyDefinitionName == ...
[ 0.0036068696063011885, -0.1091684028506279, 1.0368708372116089, -0.20501284301280975, 0.03360281512141228, 0.12974794209003448, -0.7663423418998718, -0.1536494493484497, 0.04416337609291077, 0.14123152196407318, 0.5600383281707764, 1.8205684423446655, -0.1650221049785614, 0.109153375029563...
func (client *PolicyDefinitionsClient) getHandleResponse(resp *http.Response) (PolicyDefinitionsGetResponse, error) { result := PolicyDefinitionsGetResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinition); err != nil { return PolicyDefinitionsGetResponse{}, runtime.NewResponseEr...
[ 0.14779871702194214, -0.19091728329658508, 0.6305531859397888, -0.2695903778076172, 0.06575866043567657, 0.14335256814956665, -0.2981027364730835, -0.290233850479126, 0.8321691751480103, -0.47735148668289185, -0.4895216226577759, -0.39733240008354187, -0.7920156121253967, -0.22441890835762...
func (client *PolicyDefinitionsClient) getAtManagementGroupCreateRequest(ctx context.Context, policyDefinitionName string, managementGroupID string, options *PolicyDefinitionsGetAtManagementGroupOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Management/managementGroups/{managementGroupId}/provide...
[ -0.24980144202709198, 0.28628838062286377, 0.3067649304866791, -0.6781629323959351, -0.5002312660217285, -0.03278578072786331, -0.9510948657989502, -0.7438263893127441, -0.8133082985877991, 0.31305497884750366, 0.5867896676063538, 1.4230016469955444, 0.13618610799312592, 0.7016820907592773...
func (client *PolicyDefinitionsClient) getAtManagementGroupHandleResponse(resp *http.Response) (PolicyDefinitionsGetAtManagementGroupResponse, error) { result := PolicyDefinitionsGetAtManagementGroupResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinition); err != nil { return Po...
[ -0.3055741786956787, -0.1127249002456665, 0.17601676285266876, -1.0398335456848145, -0.828212559223175, 0.06007187068462372, -0.3581717908382416, -0.5508425831794739, -0.11153597384691238, 0.22854433953762054, 0.12434199452400208, -0.09068045020103455, -0.192142516374588, 0.145502656698226...
func (client *PolicyDefinitionsClient) getBuiltInCreateRequest(ctx context.Context, policyDefinitionName string, options *PolicyDefinitionsGetBuiltInOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}" if policyDefinitionName == "" { return nil...
[ -0.2596239149570465, -0.46022894978523254, 0.9468616247177124, 0.031217901036143303, -0.21489514410495758, 0.6802727580070496, -0.37061813473701477, 0.055299464613199234, -0.14322160184383392, -0.27829301357269287, -0.04817623272538185, 1.692108154296875, -0.413055956363678, -0.42074492573...
func (client *PolicyDefinitionsClient) getBuiltInHandleResponse(resp *http.Response) (PolicyDefinitionsGetBuiltInResponse, error) { result := PolicyDefinitionsGetBuiltInResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinition); err != nil { return PolicyDefinitionsGetBuiltInRespo...
[ 0.36398234963417053, -0.9814565777778625, 0.5808501243591309, -0.17556358873844147, -0.4460707902908325, 0.8105592131614685, 0.15211224555969238, 0.08383185416460037, 0.503283679485321, -0.6268566250801086, -1.04048752784729, 0.321056991815567, -1.1485729217529297, -0.6604918241500854, 0...
func (client *PolicyDefinitionsClient) listCreateRequest(ctx context.Context, options *PolicyDefinitionsListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions" if client.subscriptionID == "" { return nil, errors.New("parameter client.s...
[ -0.27645862102508545, -0.42729830741882324, 0.8619527220726013, -0.5740823745727539, -0.29432860016822815, -0.3111887276172638, -0.678584098815918, 0.15099264681339264, 0.42434945702552795, 0.08502806723117828, 0.07960594445466995, 1.184101939201355, 0.08911758661270142, 0.3916351199150085...
func (client *PolicyDefinitionsClient) listHandleResponse(resp *http.Response) (PolicyDefinitionsListResponse, error) { result := PolicyDefinitionsListResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinitionListResult); err != nil { return PolicyDefinitionsListResponse{}, runtime...
[ -0.1836508959531784, -0.5947433114051819, 0.4768807291984558, -0.3964675962924957, -0.0582767091691494, 0.12320239841938019, -0.2539592385292053, -0.04036162421107292, 0.9698612689971924, 0.05685088038444519, -1.1439976692199707, -0.7836955785751343, -0.5003649592399597, 0.2274397611618042...
func (client *PolicyDefinitionsClient) listBuiltInCreateRequest(ctx context.Context, options *PolicyDefinitionsListBuiltInOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Authorization/policyDefinitions" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.ep, urlPath)) if...
[ -0.4742789566516876, -0.4870608150959015, 0.7628041505813599, -0.2776513993740082, -0.3752872049808502, 0.10148943215608597, -0.29534927010536194, 0.022975655272603035, 0.002943925792351365, -0.36368095874786377, -0.23933136463165283, 1.3530205488204956, -0.14004258811473846, 0.12589460611...
func (client *PolicyDefinitionsClient) listBuiltInHandleResponse(resp *http.Response) (PolicyDefinitionsListBuiltInResponse, error) { result := PolicyDefinitionsListBuiltInResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinitionListResult); err != nil { return PolicyDefinitionsLi...
[ 0.24137447774410248, -0.987395167350769, 0.40387162566185, -0.4357490837574005, -0.29558444023132324, 0.5802390575408936, 0.21704672276973724, 0.26447540521621704, 0.4697583019733429, -0.22999556362628937, -1.4874906539916992, -0.09771095961332321, -0.8486003279685974, 0.27883434295654297,...
func (client *PolicyDefinitionsClient) listByManagementGroupCreateRequest(ctx context.Context, managementGroupID string, options *PolicyDefinitionsListByManagementGroupOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/...
[ -0.19120703637599945, -0.03646504506468773, 0.40637797117233276, -0.5733866095542908, -0.28196078538894653, -0.3214765191078186, -0.2695111930370331, -0.45187151432037354, 0.173911452293396, 0.4409012198448181, 0.2964637875556946, 0.6583378314971924, -0.03792828693985939, 0.932139158248901...
func (client *PolicyDefinitionsClient) listByManagementGroupHandleResponse(resp *http.Response) (PolicyDefinitionsListByManagementGroupResponse, error) { result := PolicyDefinitionsListByManagementGroupResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.PolicyDefinitionListResult); err != nil ...
[ 0.5345239639282227, -0.15158310532569885, 0.0036812499165534973, -0.5341998934745789, -0.30791035294532776, 0.05555229261517525, -0.07305225729942322, -0.30460765957832336, 0.28136277198791504, 0.4957582652568817, -0.5639448165893555, -0.754051685333252, -0.6937764883041382, 0.699710905551...