text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (*TopUpGatewayMiningFuelResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{2} }
[ -0.7289162874221802, -0.515210747718811, -0.023504363372921944, -0.3824421167373657, 0.25175562500953674, -1.0593111515045166, -0.40781834721565247, 0.1340467631816864, -0.6669818162918091, -0.1288842409849167, 0.07234424352645874, -0.4349643290042877, -1.243528127670288, 0.112505257129669...
func (*WithdrawGatewayMiningFuelRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{3} }
[ -1.6341301202774048, 0.27006274461746216, 0.35015666484832764, -0.3013531267642975, 0.29278039932250977, -1.0530370473861694, -0.5935990810394287, 0.6092315316200256, -0.7393372654914856, -0.35323894023895264, 0.13486477732658386, 0.33130407333374023, -1.1714731454849243, 0.86655592918396,...
func (*WithdrawGatewayMiningFuelResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{4} }
[ -0.6469060182571411, -0.04049919173121452, -0.1304224729537964, -0.47229090332984924, 0.653890073299408, -1.1788591146469116, -0.38136646151542664, 0.15671353042125702, -0.5574471354484558, -0.019802730530500412, -0.4498004913330078, -0.27625715732574463, -1.886145830154419, 0.218005180358...
func (*GetGatewayMiningHealthRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{5} }
[ -0.2126641422510147, 0.28330686688423157, 0.166510209441185, -0.3164331912994385, 0.84244704246521, -0.21920524537563324, -1.1173244714736938, -0.5248309969902039, -0.7079199552536011, 0.011659989133477211, 0.5943828821182251, 1.059029221534729, -0.9317241311073303, 0.7677941918373108, 0...
func (*GatewayMiningHealth) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{6} }
[ -0.035242535173892975, 0.12017716467380524, -0.053659837692976, -0.33079999685287476, -0.28703317046165466, 0.2406693994998932, -0.9814090728759766, -0.5774735808372498, -0.4690548777580261, -0.017331935465335846, -0.2918161153793335, 0.09190432727336884, -1.031379222869873, 1.096810698509...
func (*MiningHealthAverage) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{7} }
[ -0.22834408283233643, 0.628743052482605, 0.05720321089029312, -0.27114036679267883, 0.34216028451919556, -0.09507875144481659, 0.1305208057165146, -0.9588000178337097, -0.7728273272514343, 1.0108697414398193, 0.7867094874382019, 0.3580605685710907, -0.7389298677444458, 1.4053106307983398, ...
func (*GetGatewayMiningHealthResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{8} }
[ 0.5524654984474182, 0.09442086517810822, -0.2759384214878082, -0.42769405245780945, 1.052693247795105, -0.6383686065673828, -1.0707221031188965, -0.8542520999908447, -0.5306271314620972, 0.2106543481349945, -0.08601683378219604, 0.23364830017089844, -1.5584796667099, 0.31715887784957886, ...
func (*GetWalletBalanceRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{9} }
[ -0.12418495863676071, -0.08655678480863571, 0.6828039288520813, -0.6015521883964539, 0.9841805100440979, -0.9194710850715637, 0.1700129210948944, -0.6670336723327637, 0.21775996685028076, -0.4862182140350342, -0.033302415162324905, 0.5680855512619019, -0.9377645254135132, 1.631566524505615...
func (*GetWalletBalanceResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{10} }
[ 0.45717865228652954, 0.14213791489601135, 0.07450349628925323, -0.9163450598716736, 1.028849482536316, -1.2631595134735107, 0.3326932489871979, -1.030158519744873, 0.2601727545261383, -0.31581875681877136, -0.7895511984825134, -0.6155856847763062, -1.6847436428070068, 0.5262987613677979, ...
func (*GetWalletMiningIncomeRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{11} }
[ -0.5634153485298157, -0.05316312611103058, 0.23534204065799713, 0.30504924058914185, 0.4280836582183838, -0.656419038772583, -0.2244548499584198, 0.4525214731693268, -0.396499365568161, -0.515829861164093, 0.13221357762813568, 0.6061087846755981, -1.4769883155822754, 1.3231403827667236, ...
func (*GetWalletMiningIncomeResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{12} }
[ 0.1781141757965088, 0.008437485434114933, -0.11678238958120346, -0.44367024302482605, 0.6389604210853577, -0.8007239699363708, -0.6219096779823303, -0.07986479252576828, -0.5620431303977966, -0.5947431325912476, -0.4110534191131592, -0.20035600662231445, -2.4659786224365234, -0.07894103974...
func (*GetGatewayMiningIncomeRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{13} }
[ -0.47472772002220154, 0.1851261705160141, 0.392547607421875, 0.08328037708997726, 0.6590234637260437, -0.6825910210609436, -0.13500338792800903, 0.310553640127182, -0.5227079391479492, -0.3535347878932953, 0.15612207353115082, 1.2226899862289429, -1.3250099420547485, 1.4238033294677734, ...
func (*MiningStats) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{14} }
[ 0.8917176723480225, 1.3861745595932007, -0.16127093136310577, -0.389560341835022, -0.5953174829483032, 0.34202221035957336, -0.4395058751106262, -0.5601102113723755, -0.08397749066352844, -0.4441640377044678, 0.17504361271858215, -0.26166197657585144, -0.5517491698265076, 0.543836772441864...
func (*GetGatewayMiningIncomeResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{15} }
[ 0.19509167969226837, 0.3608507513999939, -0.04232369363307953, -0.5309606194496155, 0.760517418384552, -0.8355785608291626, -0.5902356505393982, -0.2649095952510834, -0.6617807745933533, -0.3667324185371399, -0.28495490550994873, 0.39488932490348816, -2.2370998859405518, 0.1147515103220939...
func (*MiningData) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{16} }
[ -0.2973059117794037, 0.8302569389343262, 0.01007963065057993, -0.320461243391037, -0.08738282322883606, 0.8905266523361206, -0.537828803062439, -0.24752718210220337, -0.6050635576248169, -0.1473243534564972, -0.13998769223690033, 0.16957733035087585, -0.49084606766700745, 0.774887681007385...
func (*GetMiningInfoRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{17} }
[ -0.28018057346343994, 0.20466968417167664, 0.40198084712028503, -0.25440284609794617, 0.18566159904003143, 0.1374136507511139, -0.15376600623130798, 0.05512267351150513, -0.5038288235664368, -0.36049285531044006, 0.28989121317863464, 0.5249627232551575, -0.7512511014938354, 0.7455096840858...
func (*GetMiningInfoResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{18} }
[ 0.14306563138961792, -0.3086736500263214, -0.14083454012870789, -0.3639114797115326, 0.18924018740653992, -0.294701486825943, -0.5632153749465942, -0.3640690743923187, -0.3256537616252899, -0.8428105711936951, -0.7167953252792358, -0.46047553420066833, -1.4497612714767456, 0.17711025476455...
func (*GetVmxcTxHistoryRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{19} }
[ 0.5503736734390259, 0.7969517707824707, 0.4885728061199188, 0.03433647006750107, 0.3272741138935089, -0.4957166314125061, -1.0939841270446777, 0.6398552060127258, 0.31064537167549133, -0.05544885993003845, 0.3441312909126282, 0.8232318162918091, -0.48530617356300354, -0.13759905099868774, ...
func (*VmxcTxHistory) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{20} }
[ 0.7508290410041809, 0.6386377811431885, -0.01167855691164732, -0.30374035239219666, -0.8996441960334778, -0.4657113254070282, -0.9269735813140869, 0.0606541708111763, 0.1426982432603836, 0.7745832204818726, -0.22638709843158722, 0.11372440308332443, -0.3522752821445465, -0.0013696757378056...
func (*GetVmxcTxHistoryResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{21} }
[ 1.0757232904434204, 0.40881776809692383, -0.06651084870100021, -0.17592889070510864, 0.2684558928012848, -0.9907253980636597, -0.8449608683586121, 0.47583287954330444, 0.5952008366584778, 0.27246516942977905, -0.4286494851112366, -0.04439440369606018, -1.0158814191818237, -0.66000366210937...
func (*GetNetworkUsageHistRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{22} }
[ -0.6023974418640137, 1.1744307279586792, 0.3842798173427582, -0.26098158955574036, 0.9984436631202698, -1.1276421546936035, 0.03277105465531349, 0.47012147307395935, -0.6629173755645752, -0.5114355683326721, -0.5728303790092468, -0.2386099249124527, -0.036861300468444824, 0.780387163162231...
func (*NetworkUsage) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{23} }
[ -0.6171130537986755, 0.7002272605895996, 0.29135531187057495, -0.3181172013282776, 0.6468693614006042, -0.9856323599815369, 0.3870525360107422, -0.06004432588815689, -0.2870504856109619, 0.09719077497720718, -0.39810168743133545, -0.6530882716178894, -0.4858928322792053, 1.2169039249420166...
func (*GetNetworkUsageHistResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{24} }
[ 0.08283417671918869, 0.47100868821144104, -0.11146274209022522, -0.8331793546676636, 0.949917733669281, -1.5304325819015503, 0.3692120909690857, -0.1592857390642166, -0.2635793685913086, -0.5396284461021423, -1.0978692770004272, -0.48328930139541626, -0.4627133011817932, 0.3075931966304779...
func (*GetDownLinkPriceRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{25} }
[ -0.7160749435424805, 0.4704228341579437, 0.8409929275512695, 0.1543627381324768, 0.8710963129997253, -0.6996592283248901, 0.40530386567115784, 0.3557388484477997, 0.2330043762922287, -0.5967515707015991, 0.43045657873153687, 1.221322774887085, -1.086936593055725, 0.5211682915687561, 0.30...
func (*GetDownLinkPriceResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{26} }
[ -0.09594842791557312, 0.08085817843675613, 0.19551031291484833, -0.15690955519676208, 0.7945637106895447, -0.8798726797103882, 0.499508261680603, -0.07367662340402603, 0.4480038285255432, -0.48238831758499146, 0.12142495065927505, 0.5756574273109436, -1.779883623123169, -0.4906738698482513...
func (*GetMXCpriceRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{27} }
[ -0.7219387888908386, 0.6371572613716125, 0.6443946361541748, 0.10782630741596222, -0.33199214935302734, -1.2319930791854858, -0.22240017354488373, 0.4666387140750885, 0.09141156077384949, 0.1031680777668953, -0.29387256503105164, 0.5326359272003174, -0.8973923921585083, 1.1024688482284546,...
func (*GetMXCpriceResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{28} }
[ 0.13776665925979614, 0.28639155626296997, 0.0987624078989029, 0.095082126557827, -0.0877700001001358, -1.3858399391174316, 0.09264782071113586, 0.16730685532093048, 0.16998890042304993, -0.04568737745285034, -1.0585086345672607, -0.1964416205883026, -1.8225854635238647, -0.1119208335876464...
func (*GetTransactionHistoryRequest) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{29} }
[ -0.41743001341819763, 1.2638121843338013, 0.11662743240594864, -0.595089852809906, 0.4548757076263428, -1.211187720298767, 0.16024020314216614, 0.35551849007606506, -0.5095925331115723, -0.12974973022937775, 0.11723580956459045, 0.18846797943115234, 0.0065523297525942326, 0.290434390306472...
func (*Transaction) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{30} }
[ -0.4770926833152771, 0.9141911268234253, 0.4530007243156433, -0.41467365622520447, 0.5698243975639343, -0.2085973471403122, -0.02825012616813183, 0.034748319536447525, 0.24595396220684052, -0.08463473618030548, -1.075394868850708, -0.6007200479507446, -0.0061453962698578835, 0.059800565242...
func (*GetTransactionHistoryResponse) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{31} }
[ 0.1952512562274933, 0.743029773235321, -0.40025341510772705, -1.0444024801254272, 0.46408167481422424, -1.7941516637802124, 0.2820584774017334, 0.11280297487974167, -0.13952049612998962, 0.3319743275642395, -0.5988699197769165, -0.7476938366889954, -0.625284731388092, -0.18078456819057465,...
func (a *MockActor) Expect(t string, r MockResponse) { a.mu.Lock() defer a.mu.Unlock() a.Responses[t] = &r }
[ -0.5466418266296387, -1.0823993682861328, 0.11129017919301987, -1.1471911668777466, 0.12724949419498444, -0.01666593737900257, 0.35842180252075195, 0.06712598353624344, 0.5789608955383301, -0.2953261733055115, -0.3205338716506958, 0.1727246344089508, -0.12222125381231308, -0.47986304759979...
func (a *MockActor) AssertExpectations() error { a.mu.Lock() defer a.mu.Unlock() for t, r := range a.Responses { if !r.Consumed { return fmt.Errorf("expected to reply with %s", t) } } return nil }
[ 0.3195851147174835, 0.41473424434661865, 0.36615699529647827, -0.529400646686554, 0.8897382020950317, -0.28958582878112793, 0.611077070236206, -0.7382931113243103, 0.6918702721595764, 0.04098828136920929, 0.31116145849227905, -0.4270397424697876, -1.2157001495361328, 1.082639217376709, -...
func Connect() (*gorm.DB, error) { url := fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local", *dbUser, *dbPassword, *dbHost, *dbPort, *dbSchema) return gorm.Open("mysql", url) }
[ -0.25439396500587463, 0.17043083906173706, 0.50424724817276, 0.21145007014274597, -0.3625563979148865, 0.2585710883140564, -0.7013656497001648, 0.16744329035282135, -1.5616276264190674, 0.3170235753059387, 0.12259255349636078, 0.0016878843307495117, -0.9609473943710327, 0.6667237877845764,...
func connectForTesting(_ *testing.T) (*gorm.DB, error) { url := fmt.Sprintf("%s:%s@tcp(%s:%d)/test?charset=utf8mb4&parseTime=True&loc=Local", *dbUser, *dbPassword, *dbHost, *dbPort) return gorm.Open("mysql", url) }
[ 0.09001707285642624, 0.33584457635879517, 0.3282839357852936, -0.5319960117340088, -0.010245454497635365, -0.2842918038368225, 0.35768911242485046, 0.4571310579776764, -0.9397513270378113, -0.2063341736793518, 0.29014328122138977, -0.6746308207511902, -0.9501625299453735, 0.467394590377807...
func GibToByte(nGib int) int64 { return int64(nGib) * Gib }
[ -0.623083233833313, 0.4198123514652252, 0.28002920746803284, -0.6081686019897461, -0.13549643754959106, 0.6319607496261597, -0.3175910413265228, -1.6428533792495728, -0.6574195623397827, 0.7406425476074219, -0.1273888200521469, -0.5957096219062805, -1.2268301248550415, 0.062348607927560806...
func ByteCeilToGib(nByte int64) int { if nByte <= 0 { return 0 } res := nByte / Gib if res*Gib < nByte { res += 1 } return int(res) }
[ 0.2011197805404663, 0.8663908243179321, 0.3425498902797699, -0.4593171775341034, -0.048146557062864304, 0.21432620286941528, 0.4482295513153076, -0.8555630445480347, -0.22875112295150757, 1.044048547744751, -0.5900568962097168, -0.1581404060125351, -1.1497408151626587, 1.0470609664916992, ...
func IsValidCapacityBytes(cur int64, capRange *csi.CapacityRange) bool { if capRange == nil { return true } if capRange.GetRequiredBytes() > 0 && cur < capRange.GetRequiredBytes() { return false } if capRange.GetLimitBytes() > 0 && cur > capRange.GetLimitBytes() { return false } return true }
[ -0.8986936807632446, -1.2212064266204834, 0.3975354731082916, 0.7193019986152649, -0.34420478343963623, 0.6115160584449768, -0.03279227018356323, 0.7524592876434326, 0.3968343734741211, -0.307640939950943, 0.33689191937446594, 0.14378304779529572, -1.142043948173523, 0.8598765134811401, ...
func GetRequestSizeBytes(capRange *csi.CapacityRange) (int64, error) { if capRange == nil { return 0, nil } requiredBytes := capRange.GetRequiredBytes() limitBytes := capRange.GetLimitBytes() if requiredBytes < 0 || limitBytes < 0 { return -1, fmt.Errorf("capacity range [%d,%d] should not less than zero", req...
[ -2.0408775806427, -0.2811172902584076, 0.9880298376083374, 0.20670001208782196, -0.29259997606277466, 0.07919570058584213, -0.18887658417224884, 0.024840719997882843, 0.6244329810142517, -0.5102445483207703, 0.5761795043945312, 0.6902022957801819, -1.4202048778533936, 0.26602521538734436, ...
func Constructor() MinStack { return MinStack{} }
[ 0.3567139804363251, 0.1645115464925766, 0.11429877579212189, 1.4531041383743286, -1.075164794921875, -0.616504430770874, 0.5363447666168213, -0.2650521397590637, 0.223358154296875, -0.7514351010322571, -0.9369213581085205, -0.4493820071220398, -0.34114310145378113, 0.5217452049255371, 0....
func (b *EtcdManagerBuilder) Build(c *fi.CloudupModelBuilderContext) error { for _, etcdCluster := range b.Cluster.Spec.EtcdClusters { backupStore := "" if etcdCluster.Backups != nil { backupStore = etcdCluster.Backups.BackupStore } if backupStore == "" { return fmt.Errorf("backupStore must be set for us...
[ -0.1827867031097412, -0.3721962869167328, 0.6152287721633911, -0.1854328066110611, 0.283247709274292, -0.0038010720163583755, 0.03251210227608681, 0.5875299572944641, -0.4429095983505249, -0.24479183554649353, -0.16920316219329834, -0.0677870362997055, 0.665600597858429, 1.0581988096237183...
func (b *EtcdManagerBuilder) buildPod(etcdCluster kops.EtcdClusterSpec, instanceGroupName string) (*v1.Pod, error) { var pod *v1.Pod var container *v1.Container var manifest []byte // TODO: pull from bundle bundle := "(embedded etcd manifest)" manifest = []byte(defaultManifest) { objects, err := model.Parse...
[ -0.37713831663131714, -0.4282650947570801, 0.6892792582511902, -0.2502686381340027, -0.31438085436820984, 0.3621382713317871, 0.043898649513721466, 0.20217393338680267, -0.16988582909107208, 0.7192752957344055, 0.7115558981895447, 0.07846291363239288, 0.5802040696144104, -0.350434750318527...
func SelectorForCluster(etcdCluster kops.EtcdClusterSpec) map[string]string { return map[string]string{ "k8s-app": "etcd-manager-" + etcdCluster.Name, } }
[ -0.10317699611186981, -0.762763261795044, 0.11416070908308029, -0.8494695425033569, 0.03895144537091255, 0.11165019124746323, -1.0396442413330078, -0.051761750131845474, -0.42876213788986206, 0.2882107198238373, 0.592174232006073, 0.12861888110637665, 0.7867947220802307, 0.1336005628108978...
func PortsForCluster(etcdCluster kops.EtcdClusterSpec) (Ports, error) { switch etcdCluster.Name { case "main": return Ports{ GRPCPort: wellknownports.EtcdMainGRPC, // TODO: Use a socket file for the quarantine port QuarantinedGRPCPort: wellknownports.EtcdMainQuarantinedClientPort, ClientPort: 4...
[ 0.6894708871841431, -0.1886003464460373, 0.44803962111473083, -0.6313506364822388, 0.2017143964767456, -0.06843336671590805, -0.33115044236183167, -0.22090686857700348, -0.24783791601657867, 0.43241044878959656, 0.2546777129173279, 0.5912683010101318, -0.04629084840416908, -0.0285476315766...
func init() { //todo... }
[ 0.3737129271030426, -0.4561435580253601, 0.3633648753166199, 0.8644972443580627, 0.3602866232395172, 0.11163373291492462, 1.2487648725509644, 0.40490469336509705, 0.27677494287490845, -0.7145332098007202, -0.9759708642959595, 1.1104710102081299, -0.5447076559066772, 0.2448858916759491, -...
func WithTimeoutCallOption(timeout time.Duration) *TimeoutCallOption { return &TimeoutCallOption{&grpc.EmptyCallOption{}, timeout} }
[ 0.28102919459342957, -0.11610838770866394, 0.4920397996902466, 0.08308443427085876, -0.23476868867874146, 0.2100277990102768, -0.3164445459842682, -0.666330873966217, 0.6903244853019714, 1.0753029584884644, -0.11220966279506683, -0.5224015116691589, 0.06898120045661926, -0.1242816448211669...
func DefaultClient() *Client { _once.Do(func() { _defaultClient = NewClient(nil) }) return _defaultClient }
[ -0.08090823143720627, -0.1265781968832016, 0.05106135830283165, 0.2688574492931366, 0.5755921006202698, -0.3710586726665497, 0.8812437057495117, -0.2727411985397339, 0.08021717518568039, -1.4547169208526611, -0.5104966163635254, 0.47366687655448914, -0.9746533632278442, -0.4953565597534179...
func NewClient(conf *ClientConfig, opt ...grpc.DialOption) *Client { SetResolver() c := new(Client) if err := c.SetConfig(conf); err != nil { panic(err) } c.UseOpt(grpc.WithBalancerName(roundrobin.Name)) //指定客户端轮询负载均衡,以后可扩展为根据服务器当前负载进行选择 c.UseOpt(opt...) return c }
[ 0.5048374533653259, -0.229191854596138, 0.4624750018119812, 0.527633547782898, -0.03900688514113426, 0.6139203310012817, 1.1327155828475952, -0.9559850692749023, -0.05081510543823242, 0.05417024344205856, -0.3595801591873169, -0.06047139689326286, -1.293068289756775, -0.38692161440849304, ...
func (c *Client) Dial(ctx context.Context, target string, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error) { opts = append(opts, grpc.WithInsecure(), grpc.WithBlock()) return c.dial(ctx, target, opts...) }
[ -0.3709793984889984, -0.01185397058725357, 0.5768043398857117, 0.46864330768585205, -0.27622249722480774, 0.22152680158615112, -0.5688578486442566, -0.27315443754196167, 0.3698684275150299, 0.26148122549057007, 0.2961465120315552, 1.6490920782089233, -0.3373594284057617, -0.783288538455963...
func (c *Client) DialTLS(ctx context.Context, target string, file string, name string, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error) { var creds credentials.TransportCredentials creds, err = credentials.NewClientTLSFromFile(file, name) if err != nil { err = errors.WithStack(err) return } opts = a...
[ 0.2583274841308594, -0.3773351013660431, 0.6185894012451172, -0.8279309868812561, -0.8504263758659363, 0.26445209980010986, -0.8017041087150574, -0.5509979128837585, -0.5312784910202026, 0.5527650117874146, -0.022624127566814423, 0.7046033143997192, -0.34871727228164673, -1.010788917541504...
func (c *Client) UseUnary(handlers ...grpc.UnaryClientInterceptor) *Client { finalSize := len(c.unaryMidle) + len(handlers) if finalSize >= int(_abortIndex) { panic("grpc: client use too many unary handlers") } mergedHandlers := make([]grpc.UnaryClientInterceptor, finalSize) copy(mergedHandlers, c.unaryMidle) c...
[ -0.7535624504089355, 0.21475736796855927, 0.9568592309951782, -0.1848539263010025, 0.42270922660827637, -0.18136876821517944, 0.25256261229515076, 0.1045294925570488, 0.20356760919094086, -1.1419551372528076, 0.3185459077358246, 0.10944007337093353, -1.1542065143585205, -0.6708433628082275...
func (c *Client) UseOpt(opts ...grpc.DialOption) *Client { c.opts = append(c.opts, opts...) return c }
[ -0.13188260793685913, 0.2069392204284668, 0.6304894685745239, -0.5355201959609985, 0.14714175462722778, 0.18351797759532928, -0.5963922739028931, -0.8194903135299683, 0.583143949508667, -0.2635822296142578, 0.3548052906990051, -0.004963467828929424, -0.7619185447692871, 0.00412834249436855...
func (c *Client) SetConfig(conf *ClientConfig) (err error) { if conf == nil { conf = _defaultCliConf } if conf.Dial <= 0 { conf.Dial = time.Second * 10 } if conf.Timeout <= 0 { conf.Timeout = time.Millisecond * 300 } if conf.KeepAliveInterval <= 0 { conf.KeepAliveInterval = time.Second * 60 } if conf.K...
[ -0.013191146776080132, 0.32252851128578186, 0.5162163972854614, 0.0331641286611557, -0.4472346901893616, 0.39687544107437134, 0.5098708271980286, 0.1406746804714203, -0.35853341221809387, 0.6137837767601013, -1.1998258829116821, -0.33264583349227905, -0.4547378420829773, 0.511498749256134,...
func NewScanner(r io.Reader) *Scanner { return &Scanner{r: bufio.NewReader(r)} }
[ -0.14141389727592468, -1.4777415990829468, 0.03937121480703354, -0.029163068160414696, -1.5168737173080444, 0.29064810276031494, -0.4866965413093567, -0.3041852116584778, 0.44895023107528687, -1.0682282447814941, -0.2759366035461426, -0.5738424062728882, -0.15502680838108063, 0.24139040708...
func (s *Scanner) Scan() (tok Token, lit string) { // Read the next rune. ch := s.read() if isWhitespace(ch) { // If we see whitespace then consume all contiguous whitespace. s.unread() return s.scanWhitespace() } else if isLetter(ch) { // If we see a letter then consume as a variable or reserved word. s.unr...
[ -0.040161702781915665, -0.6826561093330383, 0.7558993101119995, -0.07105638086795807, -1.3559550046920776, -0.549758791923523, -0.2648434340953827, -0.08248212188482285, -0.1277434527873993, -0.7262214422225952, 0.4951477646827698, 0.47566044330596924, 0.5107195377349854, -0.08823599666357...
func (s *Scanner) scanWhitespace() (tok Token, lit string) { var buf bytes.Buffer buf.WriteRune(s.read()) // Read every subsequent whitespace character into the buffer. // Non-whitespace characters and EOF will cause the loop to exit. for { if ch := s.read(); ch == eof { break } else if !isWhitespace(ch) {...
[ -0.1900893896818161, -0.8014112114906311, 0.4798572361469269, -1.1841517686843872, -0.9285781979560852, -1.2415324449539185, 0.013163363561034203, -0.31265464425086975, 0.6215493679046631, -0.5930101871490479, 0.1483238935470581, 0.4520390033721924, 0.22566771507263184, 0.14490896463394165...
func (s *Scanner) scanVariable() (tok Token, lit string) { var buf bytes.Buffer buf.WriteRune(s.read()) varSize := 1 // Read every subsequent valid variable character into the buffer. // Non-variable characters and EOF will cause the loop to exit. for { if ch := s.read(); ch == eof { break } else if !isVar...
[ -0.15617671608924866, -0.8971418142318726, 0.633847177028656, -0.16481584310531616, -1.5197721719741821, -1.0166330337524414, -0.6538681983947754, -0.26694315671920776, -0.2589874267578125, -0.048664309084415436, -0.3837166726589203, 0.8082542419433594, -0.23285573720932007, -0.49036994576...
func (s *Scanner) read() rune { ch, _, err := s.r.ReadRune() if err != nil { return eof } return ch }
[ 0.17483490705490112, -0.08163098990917206, 0.5939715504646301, 0.35439538955688477, -0.43445467948913574, 0.4330287575721741, 0.127280592918396, -0.27187761664390564, -0.3797543942928314, -1.1879627704620361, 0.98419189453125, 0.29908692836761475, -0.3768794536590576, -0.22566622495651245,...
func (s *Scanner) unread() { _ = s.r.UnreadRune() }
[ 1.073624849319458, -0.43207988142967224, 0.3502766191959381, -0.7892343401908875, -0.30189308524131775, 0.18159417808055878, 1.1181198358535767, 0.49840453267097473, 0.15665097534656525, -1.7565901279449463, 1.1049225330352783, 0.8279693722724915, 0.19813215732574463, 0.3066238760948181, ...
func isWhitespace(ch rune) bool { return ch == ' ' || ch == '\t' || ch == '\n' }
[ -0.3373602032661438, 0.19931048154830933, 0.23437143862247467, -0.5940629839897156, 0.09007469564676285, -1.2337541580200195, -0.6193409562110901, -1.3738024234771729, 0.13194793462753296, 0.2161528319120407, -0.653313159942627, 0.6327349543571472, 0.1305100917816162, 1.0505785942077637, ...
func isLetter(ch rune) bool { return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') }
[ -0.8339745402336121, -0.8140833377838135, 0.6335054039955139, -0.9495455026626587, -0.6759337186813354, 0.6517565846443176, -0.6511731147766113, 0.11302953958511353, 0.701198935508728, 0.19259744882583618, -0.49737903475761414, 0.4963304102420807, -0.29425913095474243, 1.2742500305175781, ...
func isOperator(ch rune) bool { return (ch == '<' || ch == '=' || ch == '>') }
[ -1.837576985359192, 0.5555288195610046, 0.7318769097328186, -0.32279184460639954, -1.262942910194397, -0.07334764301776886, -0.5055670738220215, -0.5634382963180542, 1.0319631099700928, 0.2934716045856476, -0.23318246006965637, -0.857099711894989, -0.47891467809677124, 0.8914477825164795, ...
func isDigit(ch rune) bool { return (ch >= '0' && ch <= '9') }
[ -0.0241392832249403, -0.9423209428787231, 0.5101029276847839, 0.4341513514518738, 0.3855997920036316, 0.6544983386993408, -0.5301629900932312, -0.14318999648094177, -0.235486701130867, -0.6196553707122803, -0.21554051339626312, 0.07960794121026993, -0.1462680995464325, 0.8361124992370605, ...
func isDigitOrDot(ch rune) bool { return (ch >= '0' && ch <= '9') || ch == '.' }
[ -0.9907428622245789, -0.5424174666404724, 0.3692777156829834, -0.9122290015220642, -0.29021987318992615, 0.175085186958313, -0.37109383940696716, -1.0521926879882812, 0.34063610434532166, -0.23784379661083221, -0.3628036081790924, 0.5964625477790833, 0.213037371635437, 0.5221979022026062, ...
func isVariableChar(ch rune) bool { switch ch { case '!', ')', '+', '-': return false } return !isOperator(ch) }
[ -0.6418964862823486, 0.24381588399410248, 0.5404219627380371, 1.0071828365325928, -0.8085779547691345, 0.16757065057754517, -0.6384435892105103, -0.3075665831565857, 0.07003984600305557, 0.17551496624946594, -0.6830531358718872, 0.15331999957561493, -0.38467323780059814, 0.8437417149543762...
func Blank(r io.Reader, w io.Writer, o BlankOption) error { if err := o.validate(); err != nil { return errors.Wrap(err, "invalid option") } cr, bom := reader(r, o.Encoding) cw := writer(w, bom, o.outputEncoding()) defer cw.Flush() var cols columns csvp := NewCSVProcessor(cr, cw) if o.NoHeader { csvp.SetP...
[ 0.37397313117980957, 0.017561381682753563, 0.908946692943573, -0.2080758959054947, -0.33491748571395874, 0.20907670259475708, 0.5255939364433289, -0.6697856783866882, 0.49873462319374084, 0.4295208156108856, 0.47836121916770935, 0.5558960437774658, 0.6637411713600159, -0.36120882630348206,...
func NewCompanyCompanyHierarchyV1GetCompanyHierarchyGetParams() *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { var () return &CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams{ timeout: cr.DefaultTimeout, } }
[ -0.3136141300201416, -0.2108348160982132, 0.8206338882446289, 1.458221435546875, 0.04862949624657631, -0.4696522653102875, 0.18208631873130798, 0.6911141872406006, -1.2904270887374878, -0.3665468692779541, -0.542329728603363, 0.6611627340316772, -1.138329267501831, 0.7133051753044128, -0...
func NewCompanyCompanyHierarchyV1GetCompanyHierarchyGetParamsWithTimeout(timeout time.Duration) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { var () return &CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams{ timeout: timeout, } }
[ 0.5005134344100952, 0.02513684332370758, 0.6898951530456543, 1.3228682279586792, -0.1413799524307251, 0.0339181013405323, -0.38532596826553345, 0.6062362790107727, -1.1085001230239868, 0.42101138830184937, -0.3799395263195038, 0.6930693984031677, -0.9488444328308105, 1.0409430265426636, ...
func NewCompanyCompanyHierarchyV1GetCompanyHierarchyGetParamsWithContext(ctx context.Context) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { var () return &CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams{ Context: ctx, } }
[ 0.04928349703550339, 0.28068727254867554, 0.9617979526519775, 1.049716830253601, 0.358786404132843, 0.19476847350597382, -0.3215182423591614, 0.12353671342134476, -0.582236647605896, 0.016098957508802414, -0.33330461382865906, 0.3593464195728302, -0.8596084117889404, 0.5246169567108154, ...
func NewCompanyCompanyHierarchyV1GetCompanyHierarchyGetParamsWithHTTPClient(client *http.Client) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { var () return &CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams{ HTTPClient: client, } }
[ -0.1874188333749771, -0.284237265586853, 0.772255539894104, 1.0419381856918335, 0.48112788796424866, 0.21712206304073334, 0.4224534332752228, 0.8419094681739807, -1.4005088806152344, -0.4466509521007538, -0.4280449151992798, 0.5749785304069519, -0.8553056716918945, 0.2556114196777344, -0...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) WithTimeout(timeout time.Duration) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { o.SetTimeout(timeout) return o }
[ 0.3625505268573761, 0.4716790020465851, 0.4532451927661896, 0.8268544673919678, -0.04832736402750015, -0.24362502992153168, -0.049281492829322815, 0.30673542618751526, -0.4055752158164978, 0.0039778766222298145, 0.0063171712681651115, 0.5371168255805969, -0.4850049912929535, 0.838085234165...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ 0.10123678296804428, 0.5509873628616333, 0.31588155031204224, 0.8548373579978943, 0.35190314054489136, 0.2326987236738205, 0.24521522223949432, 0.8186704516410828, -0.9198981523513794, -0.138718381524086, 0.09348372370004654, 0.8813100457191467, -0.9668674468994141, 0.8053693175315857, -...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) WithContext(ctx context.Context) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { o.SetContext(ctx) return o }
[ -0.21109895408153534, 0.5243899822235107, 0.7149289846420288, 0.7615038752555847, 0.18758824467658997, -0.060338664799928665, -0.3447839617729187, -0.06386671960353851, -0.021755008026957512, -0.6221646666526794, 0.09668242186307907, 0.22077235579490662, -0.9155357480049133, 0.154530927538...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) SetContext(ctx context.Context) { o.Context = ctx }
[ -0.4072175621986389, 0.6717320084571838, 0.43716466426849365, 1.0402538776397705, 0.46382197737693787, 0.3030901551246643, 0.11479242146015167, 0.18081222474575043, -0.15905456244945526, -0.5807728171348572, -0.04999922588467598, 0.661877453327179, -1.1595642566680908, 0.20275217294692993,...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) WithHTTPClient(client *http.Client) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { o.SetHTTPClient(client) return o }
[ -0.23823551833629608, -0.6083303093910217, 0.5770429968833923, 0.6145250797271729, 0.2068081945180893, -0.09025759249925613, 0.513515830039978, 0.2539032995700836, -0.7636114358901978, -0.884620189666748, -0.012859747745096684, 0.4216896593570709, -0.49195292592048645, -0.35421526432037354...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ -0.10300008207559586, -0.18416482210159302, 0.3192872107028961, 0.30838242173194885, -0.13801313936710358, -0.253126323223114, 0.7714669108390808, 0.2901555001735687, -1.4276076555252075, -0.8766980767250061, -0.1175733134150505, 0.873168408870697, -0.7372174859046936, -0.40360027551651, ...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) WithID(id int64) *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams { o.SetID(id) return o }
[ -0.21289180219173431, -0.1179046630859375, 0.4724188446998596, 1.174619197845459, 0.2139877825975418, 0.10149642825126648, -0.05716953054070473, 0.36317774653434753, 0.21732598543167114, -0.36912432312965393, 0.0473676435649395, 0.2216917723417282, -1.3045642375946045, 0.7489993572235107, ...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) SetID(id int64) { o.ID = id }
[ -0.41311606764793396, -0.05616051331162453, 0.23867851495742798, 1.2885829210281372, 0.5807474851608276, 0.4686755836009979, 0.13801434636116028, 0.6943116784095764, -0.2809082567691803, -0.7091999650001526, -0.06435628235340118, 0.5987522602081299, -1.7027865648269653, 0.9674739241600037,...
func (o *CompanyCompanyHierarchyV1GetCompanyHierarchyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param id if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { return err }...
[ -1.2346376180648804, 0.09794153273105621, 0.7852288484573364, 0.1919296383857727, 1.3698196411132812, -0.27889665961265564, 0.8991122841835022, 0.36689379811286926, -0.8219392895698547, -0.3820165693759918, 0.2647430896759033, 0.6323366165161133, -1.0072040557861328, -0.05299271643161774, ...
func realMain(_ []string) int { c := di.NewContainer() env := c.InjectConfig() // configure our calculator service calculatorService := buyrentcalculator.NewService() // Create new gRPC server. gRPC server handles core function this service. grpcServer, err := grpc.New(calculatorService) if err != nil { fmt.P...
[ -0.4371379315853119, 0.23371130228042603, 1.1125192642211914, 0.39757978916168213, 0.3180295526981354, 0.007508534472435713, 0.31993576884269714, -0.047549668699502945, -0.5997825860977173, 0.3065708577632904, 0.2802203595638275, 0.9866471290588379, -0.9509205222129822, 0.7605364918708801,...
func WithLevel(logLevel Level) LogOption { return withLevel(logLevel) }
[ 0.9475047588348389, 0.07353075593709946, 0.4375426471233368, -0.17961911857128143, -0.9640106558799744, -0.3491598963737488, 0.488135427236557, -0.6194561719894409, 0.690962553024292, -0.15092924237251282, -0.6932649612426758, 0.22467058897018433, 0.163918599486351, -0.3801416754722595, ...
func WithOutputPaths(paths ...string) LogOption { return withOutputPaths(paths) }
[ -1.1293866634368896, 0.5094771385192871, 0.2983386814594269, 0.4500539302825928, -1.4365339279174805, 0.5418818593025208, 0.8599316477775574, -0.5853505730628967, 0.0146202826872468, -0.058191899210214615, -0.47432059049606323, -1.3653333187103271, -1.647744059562683, -0.5658871531486511, ...
func WithOutputHints(hints ...OutputHint) LogOption { return withOutputHints(hints) }
[ -0.8895461559295654, -0.24175870418548584, 0.3976849615573883, 0.06671766191720963, -1.3074376583099365, 0.7351034879684448, 0.5582405924797058, -0.6612188816070557, -0.189213827252388, 0.18360526859760284, -0.3660455048084259, -0.8642749190330505, -1.285210371017456, -0.7067233324050903, ...
func WithZap(config ...*zap.Config) LogOption { var cfg *zap.Config if len(config) > 0 { cfg = config[0] } return withZap{zapConfig: cfg} }
[ 0.4700186252593994, -0.6278707385063171, 0.6994990110397339, 0.9736855626106262, -0.5655648708343506, -0.29675135016441345, 0.2852981984615326, -0.20236530900001526, 0.8031413555145264, 0.4687007665634155, -0.26467904448509216, -0.6689501404762268, 0.26152580976486206, -0.512394368648529, ...
func WithStackdriver(gcpProjectID, credentialsFilePath, stackdriverLogID string, monitoredResource *monitoredres.MonitoredResource) LogOption { return withStackdriver{ gcpProjectID: gcpProjectID, credentialsFilePath: credentialsFilePath, stackdriverLogID: stackdriverLogID, monitoredResource: mon...
[ 1.1723567247390747, -0.777795135974884, 0.3886381983757019, 0.33976441621780396, -0.18916817009449005, 0.028403352946043015, -0.17205078899860382, -0.7577797770500183, -0.2719869911670685, 0.020361794158816338, 0.023295754566788673, 0.12028130143880844, -0.08218611776828766, 0.699082314968...
func WithCommonKeysAndValues(commonKeysAndValues ...interface{}) LogOption { if len(commonKeysAndValues)%2 != 0 { stdlog.Fatalf("number of keys + values must be even") } return withCommonKeysAndValues(commonKeysAndValues) }
[ -0.42422303557395935, -0.4239411950111389, 0.4999816417694092, -0.020327391102910042, 0.10415487736463547, 0.44464460015296936, 0.3874131441116333, -0.06914057582616806, -0.12426213175058365, -0.5681050419807434, 0.2706800401210785, -0.48606035113334656, 0.1581069529056549, 1.5469291210174...
func (c *SlsConfig) ValidateAndSetDefaults() error { return nil }
[ 0.0958189070224762, 0.6854868531227112, 0.0796641856431961, 0.5967181324958801, 1.250793218612671, 0.022642700001597404, -0.37014544010162354, -0.17745234072208405, 0.0767173171043396, -0.43322598934173584, -0.4796452820301056, 0.07205218821763992, -0.397678017616272, 0.7812934517860413, ...
func InitImageName(hub, tag string) string { return hub + "/proxy_init:" + tag }
[ -0.08203031867742538, -0.8991130590438843, 0.4628966450691223, -0.08843232691287994, -0.43334275484085083, -0.5731011629104614, -0.3637836277484894, 1.096042275428772, -0.3432247042655945, 0.6223218441009521, -0.640204906463623, -0.1309366077184677, -0.18882055580615997, 0.3620245158672333...
func ProxyImageName(hub, tag string) string { return hub + "/proxy_debug:" + tag }
[ -0.5508066415786743, -0.19166238605976105, 0.2813991606235504, -0.7990883588790894, -0.42030614614486694, -0.35157671570777893, -0.6247382164001465, 0.8455167412757874, -0.33826979994773865, 0.6433966755867004, -0.22444204986095428, -0.044056184589862823, -0.10204511135816574, 0.7924474477...
func GetMeshConfig(kube kubernetes.Interface, namespace, name string) (*proxyconfig.ProxyMeshConfig, error) { config, err := kube.CoreV1().ConfigMaps(namespace).Get(name, metav1.GetOptions{}) if err != nil { return nil, err } // values in the data are strings, while proto might use a different data type. // the...
[ 0.13476470112800598, 0.17001189291477203, 0.6912774443626404, 0.617134153842926, 0.007380237802863121, -0.4418393671512604, -0.6939966082572937, 0.18503859639167786, -0.037858180701732635, 0.6902333498001099, -0.6220275163650513, 0.471069872379303, -0.5763214230537415, 1.2018853425979614, ...
func IntoResourceFile(p *Params, in io.Reader, out io.Writer) error { reader := yamlDecoder.NewYAMLReader(bufio.NewReaderSize(in, 4096)) for { raw, err := reader.Read() if err == io.EOF { break } if err != nil { return err } kinds := map[string]struct { typ interface{} inject func(typ inter...
[ -0.06553946435451508, -0.4239351153373718, 0.7026780843734741, -0.6733839511871338, 0.03347465768456459, 0.14308489859104156, 0.8174133896827698, 0.5176297426223755, -0.3050270676612854, 0.4719301760196686, -0.17179058492183685, 0.22210939228534698, 0.15228214859962463, 0.5367472767829895,...
func NewIdlerAPI(openShiftClient client.OpenShiftClient, controller openshift.Controller) IdlerAPI { return &idler{ openShiftClient: openShiftClient, controller: controller, } }
[ -0.1786251813173294, -1.4267065525054932, 0.57025146484375, -1.1990455389022827, -0.23582398891448975, 0.5493700504302979, -0.8402122855186462, -0.09262091666460037, 0.3875492811203003, -0.6219530701637268, -1.127822756767273, 0.24798475205898285, -1.1575424671173096, -0.07241000980138779,...
func ExecutableExtension(platform string) string { switch platform { case "windows": return ".exe" default: return "" } }
[ 0.6656535863876343, -0.08886775374412537, 0.534873366355896, 0.9297389388084412, -0.7541932463645935, 1.043566107749939, -0.5817546844482422, -0.07049888372421265, -0.364044189453125, 0.7070989608764648, -0.5415011644363403, 0.4231393337249756, -0.5969644784927368, 0.32816073298454285, 0...
func NewOnu2G(params ...ParamData) (*ManagedEntity, OmciErrors) { return NewManagedEntity(*onu2gBME, params...) }
[ -1.1886690855026245, -0.1746997982263565, 0.3094128966331482, 0.17299312353134155, -1.183064341545105, 0.1752246916294098, -0.4630473554134369, 0.48263245820999146, -0.9687920212745667, -0.07643114775419235, 0.34957024455070496, -0.14771100878715515, 0.013168074190616608, 0.792666673660278...
func (v *GetVero) AddTags(id interface{}, tags ...interface{}) error { uID, err := checkID(id) if err != nil { return err } t, err := checkTags(tags...) if err != nil { return err } a := getveroTag{ AuthToken: v.AuthToken, ID: uID, Add: t, Remove: nil, } b, err := json.Marshal(a)...
[ -0.22002361714839935, 0.943665623664856, 0.5092475414276123, 0.2784738540649414, 0.5070375800132751, -0.5574421882629395, -0.9352220296859741, -0.8929877877235413, 0.08384539186954498, 0.40753552317619324, -0.5490509867668152, 0.6488831043243408, -0.5952462553977966, 0.5268987417221069, ...
func (v *GetVero) RemoveTags(id interface{}, tags ...interface{}) error { uID, err := checkID(id) if err != nil { return err } t, err := checkTags(tags...) if err != nil { return err } a := getveroTag{ AuthToken: v.AuthToken, ID: uID, Add: nil, Remove: t, } b, err := json.Marshal...
[ -0.4334825575351715, 0.7129724621772766, 0.3306358754634857, 0.18725936114788055, 0.09279632568359375, -1.079946517944336, -0.5816015005111694, -0.3715488612651825, 0.04762528836727142, 0.7354412078857422, -0.9931463599205017, 0.4880746901035309, -0.8625505566596985, 0.2677457928657532, ...
func NewGCSArtifactFetcher(c *storage.Client) *GCSArtifactFetcher { return &GCSArtifactFetcher{ client: c, } }
[ 1.239413857460022, -0.7654495239257812, -0.2559637725353241, -0.10569805651903152, -0.5552057027816772, 0.4386853277683258, -0.4056982696056366, -0.2105066180229187, -0.7899836301803589, -0.7570697665214539, -0.6134752035140991, 0.4668557047843933, 0.6927484273910522, -0.5854910016059875, ...
func newGCSJobSource(src string) (*gcsJobSource, error) { gcsURL, err := url.Parse(fmt.Sprintf("gs://%s", src)) if err != nil { return &gcsJobSource{}, ErrCannotParseSource } gcsPath := &gcs.Path{} err = gcsPath.SetURL(gcsURL) if err != nil { return &gcsJobSource{}, ErrCannotParseSource } tokens := strings...
[ -0.06361545622348785, -0.2769004702568054, 0.004289827309548855, -0.6489330530166626, -1.0121331214904785, -0.4571358263492584, -0.6512877941131592, -0.08197249472141266, -0.5381392240524292, -0.013765187002718449, -1.1465572118759155, 0.24730712175369263, -0.3214135468006134, 0.0443035140...
func (af *GCSArtifactFetcher) artifacts(key string) ([]string, error) { src, err := newGCSJobSource(key) if err != nil { return nil, fmt.Errorf("Failed to get GCS job source from %s: %v", key, err) } listStart := time.Now() bucketName, prefix := extractBucketPrefixPair(src.jobPath()) artifacts := []string{} b...
[ -1.0826842784881592, -0.3099294900894165, 0.48656153678894043, -1.003474473953247, -0.24848607182502747, 0.038607314229011536, -0.23665040731430054, -0.4473240375518799, 0.313705712556839, 0.7120494842529297, -0.2084633708000183, 0.5845975875854492, 0.020250892266631126, 0.0651513263583183...
func (af *GCSArtifactFetcher) artifact(key string, artifactName string, sizeLimit int64) (lenses.Artifact, error) { src, err := newGCSJobSource(key) if err != nil { return nil, fmt.Errorf("Failed to get GCS job source from %s: %v", key, err) } bucketName, prefix := extractBucketPrefixPair(src.jobPath()) bkt := ...
[ -0.1994897723197937, -0.2763478755950928, 0.25850963592529297, -0.3366358280181885, -0.6591623425483704, -0.1678716540336609, -0.11490074545145035, 0.049012940376996994, 0.4911366403102875, -0.2684394121170044, -0.3103461265563965, 1.2188891172409058, 0.528016984462738, -0.8904373645782471...
func (src *gcsJobSource) canonicalLink() string { return path.Join(src.linkPrefix, src.bucket, src.jobPrefix) }
[ 0.6458778381347656, -0.6654520034790039, 0.29794588685035706, -0.7381336688995361, 0.4518527686595917, 0.6507382988929749, 0.03859664127230644, 0.6537685394287109, -0.5603092312812805, -0.6123753786087036, 0.01541020069271326, 0.7500281929969788, 0.3051767945289612, -0.5960213541984558, ...