text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (clidq *CheckListItemDefinitionQuery) CountX(ctx context.Context) int { count, err := clidq.Count(ctx) if err != nil { panic(err) } return count }
[ 0.24979475140571594, 0.6267427206039429, 0.3510817885398865, 0.7528648972511292, 0.1922108232975006, 1.0194215774536133, -0.6861127614974976, 0.4930254817008972, 0.0778922289609909, 0.6601507663726807, -0.6782151460647583, 0.10329189896583557, 0.32095611095428467, 0.47553491592407227, -0...
func (clidq *CheckListItemDefinitionQuery) Exist(ctx context.Context) (bool, error) { return clidq.sqlExist(ctx) }
[ -0.18064425885677338, -0.10331898182630539, 0.3028623163700104, 0.8118534088134766, 0.6870331168174744, 0.9054470658302307, -0.6170448064804077, 0.23650488257408142, -0.6817951202392578, 1.2334084510803223, -0.11036832630634308, -0.7198477983474731, -0.5965657830238342, 0.9640516042709351,...
func (clidq *CheckListItemDefinitionQuery) ExistX(ctx context.Context) bool { exist, err := clidq.Exist(ctx) if err != nil { panic(err) } return exist }
[ -0.38694313168525696, 0.5732623934745789, 0.5574980974197388, 0.46910178661346436, 0.4061843454837799, 1.386966586112976, -0.9647992849349976, 0.3994276821613312, -0.11247266083955765, 1.4007809162139893, -0.4723805785179138, -0.19965429604053497, -0.30377739667892456, 0.41651538014411926,...
func (clidq *CheckListItemDefinitionQuery) Clone() *CheckListItemDefinitionQuery { return &CheckListItemDefinitionQuery{ config: clidq.config, limit: clidq.limit, offset: clidq.offset, order: append([]Order{}, clidq.order...), unique: append([]string{}, clidq.unique...), predicates: a...
[ 0.604715883731842, -0.5692088007926941, 0.4762799143791199, 0.9026021957397461, -0.5918460488319397, 0.7993958592414856, -0.49626997113227844, -0.07952085137367249, 0.040182992815971375, 0.6289420127868652, 0.2520607113838196, 0.4718065857887268, -0.2181522250175476, -0.07302308827638626, ...
func (clidgb *CheckListItemDefinitionGroupBy) Aggregate(fns ...Aggregate) *CheckListItemDefinitionGroupBy { clidgb.fns = append(clidgb.fns, fns...) return clidgb }
[ -0.4384692907333374, 1.0013829469680786, 0.47270455956459045, 1.1209229230880737, 1.4453884363174438, 0.09491446614265442, -0.13704921305179596, -0.029904643073678017, -0.7919190526008606, -0.2799987494945526, -0.4977484941482544, 0.25074058771133423, -0.7076666951179504, 0.467384636402130...
func (clidgb *CheckListItemDefinitionGroupBy) Scan(ctx context.Context, v interface{}) error { return clidgb.sqlScan(ctx, v) }
[ -0.8612084984779358, 0.7056687474250793, 0.13336268067359924, 1.2195242643356323, -0.10097184777259827, 0.10706739127635956, 0.25249800086021423, -0.4836331605911255, -0.7123906016349792, 0.036321546882390976, -0.14258712530136108, 0.4199070334434509, -0.4613945186138153, 0.377943873405456...
func (clidgb *CheckListItemDefinitionGroupBy) ScanX(ctx context.Context, v interface{}) { if err := clidgb.Scan(ctx, v); err != nil { panic(err) } }
[ -1.013970971107483, 1.1959664821624756, 0.30682557821273804, 1.5177924633026123, -0.7358826398849487, 0.580291748046875, -0.6864628195762634, -0.7750242948532104, 0.30478060245513916, 0.5152527689933777, -0.5082517862319946, 0.7611573934555054, -0.5798546075820923, 0.3851909041404724, -0...
func (clidgb *CheckListItemDefinitionGroupBy) Strings(ctx context.Context) ([]string, error) { if len(clidgb.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionGroupBy.Strings is not achievable when grouping more than 1 field") } var v []string if err := clidgb.Scan(ctx, &v); err != nil { return ...
[ -0.20885372161865234, 0.42308616638183594, 0.028226543217897415, 0.3164636194705963, 0.9042500257492065, 0.5972262620925903, 0.4003371000289917, -0.9904521703720093, -0.6382179260253906, 0.5303784608840942, 0.3797402083873749, 0.6545172333717346, -1.072082281112671, 0.6110543608665466, 0...
func (clidgb *CheckListItemDefinitionGroupBy) StringsX(ctx context.Context) []string { v, err := clidgb.Strings(ctx) if err != nil { panic(err) } return v }
[ -0.07178810983896255, 0.3248920440673828, 0.2852403521537781, 0.9557145237922668, 0.08401881158351898, 1.1358363628387451, -0.6938422322273254, -1.0519099235534668, -0.04270082339644432, 1.0738035440444946, 0.29629623889923096, 1.1575343608856201, -0.8753932118415833, 0.25941187143325806, ...
func (clidgb *CheckListItemDefinitionGroupBy) Ints(ctx context.Context) ([]int, error) { if len(clidgb.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionGroupBy.Ints is not achievable when grouping more than 1 field") } var v []int if err := clidgb.Scan(ctx, &v); err != nil { return nil, err } ...
[ -0.6288198232650757, 0.725565493106842, 0.31726962327957153, 0.5695266723632812, 0.4747956395149231, -0.08468245714902878, 0.3085874319076538, -0.43296074867248535, -0.8336747288703918, 0.37281185388565063, 0.2520564794540405, 0.8076027631759644, -0.8787815570831299, 0.20587459206581116, ...
func (clidgb *CheckListItemDefinitionGroupBy) IntsX(ctx context.Context) []int { v, err := clidgb.Ints(ctx) if err != nil { panic(err) } return v }
[ -0.4722423553466797, 1.0530011653900146, 0.31118759512901306, 1.0293570756912231, 0.017588112503290176, 0.2168104648590088, -0.4946958124637604, -0.2577378749847412, -0.27297866344451904, 0.6191272735595703, -0.26631441712379456, 0.5872558355331421, -0.7873556017875671, -0.1435053944587707...
func (clidgb *CheckListItemDefinitionGroupBy) Float64s(ctx context.Context) ([]float64, error) { if len(clidgb.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionGroupBy.Float64s is not achievable when grouping more than 1 field") } var v []float64 if err := clidgb.Scan(ctx, &v); err != nil { ret...
[ -0.4528903365135193, 0.6646462678909302, 0.28299447894096375, 0.8758155703544617, 0.7355359792709351, -0.3429754674434662, 0.008962123654782772, -0.662846565246582, -0.41826462745666504, 0.3800237774848938, -0.001058661611750722, 0.865626871585846, -0.7220144271850586, 0.92922443151474, ...
func (clidgb *CheckListItemDefinitionGroupBy) Float64sX(ctx context.Context) []float64 { v, err := clidgb.Float64s(ctx) if err != nil { panic(err) } return v }
[ -0.23979340493679047, 0.672075092792511, 0.1173989400267601, 1.4277596473693848, 0.11141445487737656, -0.17829670011997223, -0.798689067363739, -0.47034594416618347, -0.09541452676057816, 0.3575294315814972, -0.22254706919193268, 0.327608197927475, -0.4954979717731476, 0.49122363328933716,...
func (clidgb *CheckListItemDefinitionGroupBy) Bools(ctx context.Context) ([]bool, error) { if len(clidgb.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionGroupBy.Bools is not achievable when grouping more than 1 field") } var v []bool if err := clidgb.Scan(ctx, &v); err != nil { return nil, err...
[ -0.664848804473877, 0.9314440488815308, 0.2667863965034485, 0.40186408162117004, 0.8428339958190918, 0.25186973810195923, 0.08610313385725021, -0.14696305990219116, -0.9031844735145569, 0.27141985297203064, 0.24772755801677704, 0.4491614103317261, -0.2726495563983917, 0.13882188498973846, ...
func (clidgb *CheckListItemDefinitionGroupBy) BoolsX(ctx context.Context) []bool { v, err := clidgb.Bools(ctx) if err != nil { panic(err) } return v }
[ -0.20277515053749084, 0.595072865486145, 0.3994268476963043, 1.0361701250076294, -0.30612289905548096, 0.5222437977790833, -0.8185892701148987, -0.2717546820640564, -0.45776453614234924, 0.7035560011863708, -0.34205707907676697, 0.5372870564460754, -0.08241308480501175, -0.0010637356899678...
func (clids *CheckListItemDefinitionSelect) Scan(ctx context.Context, v interface{}) error { return clids.sqlScan(ctx, v) }
[ -0.9133382439613342, 0.3946704864501953, 0.0260370671749115, 0.7830361723899841, 0.07797381281852722, 0.1531781107187271, -0.42833423614501953, -0.35205772519111633, 0.09149289131164551, -0.11869427561759949, -0.3868473470211029, 0.7357349395751953, 0.05771873518824577, 0.15018342435359955...
func (clids *CheckListItemDefinitionSelect) ScanX(ctx context.Context, v interface{}) { if err := clids.Scan(ctx, v); err != nil { panic(err) } }
[ -1.1829280853271484, 0.8702871203422546, 0.08433928340673447, 1.0741679668426514, -0.33001813292503357, 0.4050506055355072, -1.1039347648620605, -0.7728932499885559, 0.8439835906028748, 0.5090458989143372, -0.6466915607452393, 0.9230914115905762, -0.15363948047161102, 0.1534503996372223, ...
func (clids *CheckListItemDefinitionSelect) Strings(ctx context.Context) ([]string, error) { if len(clids.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionSelect.Strings is not achievable when selecting more than 1 field") } var v []string if err := clids.Scan(ctx, &v); err != nil { return nil,...
[ -0.5871859788894653, 0.23126904666423798, -0.04175858944654465, -0.026243677362799644, 1.0652295351028442, 0.32107335329055786, -0.3594633638858795, -1.1268033981323242, 0.06014542654156685, 0.5579898357391357, 0.17439307272434235, 0.674536943435669, -0.7039624452590942, 0.4129948914051056...
func (clids *CheckListItemDefinitionSelect) StringsX(ctx context.Context) []string { v, err := clids.Strings(ctx) if err != nil { panic(err) } return v }
[ -0.236405611038208, 0.0076534035615623, 0.15250082314014435, 0.6132770776748657, 0.33826059103012085, 0.98993319272995, -1.2332656383514404, -1.2320793867111206, 0.7052047848701477, 1.0238595008850098, 0.18952377140522003, 1.2732292413711548, -0.6041043996810913, 0.2129124402999878, -0.2...
func (clids *CheckListItemDefinitionSelect) Ints(ctx context.Context) ([]int, error) { if len(clids.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionSelect.Ints is not achievable when selecting more than 1 field") } var v []int if err := clids.Scan(ctx, &v); err != nil { return nil, err } ret...
[ -0.8646803498268127, 0.3788236677646637, 0.1279495358467102, 0.1813243180513382, 0.719967246055603, -0.3195995092391968, -0.44074374437332153, -0.6716489791870117, -0.3408925533294678, 0.4675910770893097, -0.07034638524055481, 0.8092672228813171, -0.5626395344734192, 0.04333385080099106, ...
func (clids *CheckListItemDefinitionSelect) IntsX(ctx context.Context) []int { v, err := clids.Ints(ctx) if err != nil { panic(err) } return v }
[ -0.5892956256866455, 0.631864070892334, 0.2063361406326294, 0.6509049534797668, 0.1423628032207489, 0.10635126382112503, -1.0473155975341797, -0.4197521507740021, 0.37213635444641113, 0.6520401835441589, -0.4815460741519928, 0.7547146677970886, -0.557761013507843, -0.312762051820755, 0.3...
func (clids *CheckListItemDefinitionSelect) Float64s(ctx context.Context) ([]float64, error) { if len(clids.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionSelect.Float64s is not achievable when selecting more than 1 field") } var v []float64 if err := clids.Scan(ctx, &v); err != nil { return ...
[ -0.6532155275344849, 0.4659873843193054, 0.15188628435134888, 0.6739837527275085, 1.073298692703247, -0.5119567513465881, -0.5546176433563232, -0.7958598732948303, -0.07376207411289215, 0.34294718503952026, -0.3398922383785248, 0.9724605083465576, -0.4393412172794342, 0.753341794013977, ...
func (clids *CheckListItemDefinitionSelect) Float64sX(ctx context.Context) []float64 { v, err := clids.Float64s(ctx) if err != nil { panic(err) } return v }
[ -0.2883234918117523, 0.40994563698768616, 0.0884447693824768, 1.2357523441314697, 0.24937596917152405, -0.26030609011650085, -1.2373589277267456, -0.5040453672409058, 0.485567182302475, 0.28067344427108765, -0.44787269830703735, 0.5525659322738647, -0.3400750458240509, 0.3228432238101959, ...
func (clids *CheckListItemDefinitionSelect) Bools(ctx context.Context) ([]bool, error) { if len(clids.fields) > 1 { return nil, errors.New("ent: CheckListItemDefinitionSelect.Bools is not achievable when selecting more than 1 field") } var v []bool if err := clids.Scan(ctx, &v); err != nil { return nil, err } ...
[ -0.9375726580619812, 0.6675469279289246, 0.08176907151937485, 0.02315681427717209, 1.1522034406661987, 0.010679196566343307, -0.7021023035049438, -0.40235158801078796, -0.17375706136226654, 0.20606151223182678, -0.012002501636743546, 0.5543748736381531, 0.17139680683612823, 0.0424363873898...
func (clids *CheckListItemDefinitionSelect) BoolsX(ctx context.Context) []bool { v, err := clids.Bools(ctx) if err != nil { panic(err) } return v }
[ -0.14690610766410828, 0.31335389614105225, 0.2228168547153473, 0.7906585335731506, -0.09719651192426682, 0.5092179179191589, -1.321889042854309, -0.376994788646698, 0.16245415806770325, 0.6233963966369629, -0.517821729183197, 0.7706737518310547, 0.22645170986652374, -0.07020781189203262, ...
func (v *Value) SetValue(i interface{}) error { switch i.(type) { case bool: v.Value = &Value_Bval{Bval: i.(bool)} case float64: // JSON encodes numbers as floats v.Value = &Value_Fval{Fval: i.(float64)} case int, int64, int32, int16, int8: ival, ok := AsInt64(i) if !ok { return fmt.Errorf("unsupported t...
[ -1.0843814611434937, 0.8237476348876953, 0.7046805620193481, 0.5716118216514587, 0.28519314527511597, -0.0474238246679306, 0.05707068741321564, -0.5277167558670044, 0.03242124989628792, 0.43902698159217834, -0.4401066303253174, 0.2336139976978302, 0.23467344045639038, 0.6364033222198486, ...
func NSToTime(ns int64) time.Time { return time.Unix(ns/1e9, ns%1e9) }
[ 0.23191630840301514, 0.4322666525840759, 0.18791073560714722, -0.5672557353973389, -0.5968937277793884, -0.2054019272327423, -1.0073381662368774, -1.5168817043304443, 1.1021029949188232, 0.28605592250823975, -0.46626073122024536, -0.5724976658821106, 0.27813607454299927, 0.7392328977584839...
func (v *Value) MarshalJSON() ([]byte, error) { val, err := v.GoValue() if err != nil { return nil, err } return json.Marshal(val) }
[ -0.43797487020492554, 0.3710877597332001, 0.21351870894432068, -0.13361112773418427, -0.4786745607852936, 0.10828719288110733, 0.024753455072641373, 0.3325604200363159, 0.588595449924469, 0.3690086603164673, -0.5397638082504272, 1.2743018865585327, 0.04421195760369301, 1.0222885608673096, ...
func (v *Value) UnmarshalJSON(data []byte) error { var i interface{} if err := json.Unmarshal(data, &i); err != nil { return err } // JSON encodes numbers as floats f, ok := i.(float64) if ok && intRe.Match(data) { i = int64(f) } // TODO: Time return v.SetValue(i) }
[ -0.5447668433189392, 0.8705000877380371, 0.5514782071113586, -0.6742370128631592, -0.5677967071533203, -0.5115903615951538, 0.7099548578262329, 0.3005962371826172, -0.025919172912836075, 0.601711630821228, -0.3441181480884552, -0.13026514649391174, -0.14469754695892334, 0.6786454319953918,...
func (s *SchemaField) Property(key string) (interface{}, bool) { if s.Properties == nil { return nil, false } val, ok := s.Properties[key] if !ok { return nil, false } v, err := val.GoValue() if err != nil { return nil, false } return v, true }
[ -1.0957982540130615, -0.13409285247325897, 0.7415939569473267, 0.4897591769695282, -0.16143693029880524, 0.28608256578445435, -0.3534599542617798, 0.9387047290802002, 0.4088762700557709, 0.5305956602096558, -0.13623307645320892, -0.35744619369506836, -0.6432304978370667, 0.1960995495319366...
func (s *Session) Format(state fmt.State, verb rune) { if s == nil { state.Write([]byte("<nil>")) return } switch verb { case 's', 'q': val := passwdRe.ReplaceAllString(s.String(), passwdMaskFull) if verb == 'q' { val = fmt.Sprintf("%q", val) } fmt.Fprint(state, val) case 'v': if state.Flag('#') ...
[ -0.09901921451091766, -0.7768574953079224, 0.8931863307952881, -0.3861977756023407, -0.44813525676727295, -0.3665226995944977, 0.2635651230812073, -0.2337326556444168, 0.6375035047531128, 0.1894727200269699, 0.5012664198875427, 0.5246375203132629, 0.8813153505325317, 0.4499869644641876, ...
func AsInt64(val interface{}) (int64, bool) { switch val.(type) { case int64: return val.(int64), true case int: return int64(val.(int)), true case int32: return int64(val.(int32)), true case int16: return int64(val.(int16)), true case int8: return int64(val.(int8)), true } return 0, false }
[ -1.4925895929336548, -0.06670379638671875, 0.5887157320976257, -0.022717135027050972, -0.17877057194709778, -0.5774944424629211, -0.21963605284690857, -0.3294527530670166, 0.36853668093681335, 1.3582279682159424, -0.4881737232208252, -0.404908686876297, -0.5358114838600159, 0.6235706210136...
func (r *ExecRequest) Arg(name string) (interface{}, error) { return r.Args[name].GoValue() }
[ -1.5281420946121216, 0.3845183849334717, 0.4928382635116577, -0.1738600879907608, -0.20182079076766968, 0.40894269943237305, -0.21703040599822998, -0.16316592693328857, -0.3824633061885834, 0.7403378486633301, 0.3976830840110779, 0.9193954467773438, 0.11519461870193481, 1.0266770124435425,...
func cString(str *string) C.String { // The C.String is a *string. return C.String(str) }
[ 0.7908417582511902, -1.054381251335144, 0.2757391929626465, -0.033716581761837006, -1.1509000062942505, 0.4152478277683258, 0.41694384813308716, -0.2598643898963928, 0.7372465133666992, -0.12874819338321686, 0.4334077835083008, -0.0001662663125898689, 0.6043158769607544, -0.650990605354309...
func (rc RpcCmd) DoGet(qs int) ([]byte, error) { switch qs { case cmd.QsConsistent: // make it simple better, proxy to leader http port cfg := config.GetConfigure() rpcAddr := fmt.Sprintf("%s:%s", cfg.LeaderRpcC.Addr, cfg.LeaderRpcC.Port) opRequest := pb.OpRequest{ Op: rc.Op, Bucket: rc.Bucket, K...
[ -0.5438796877861023, -0.39206841588020325, 0.9307029247283936, -0.49679404497146606, 0.7494871616363525, -0.19019721448421478, -0.2939862012863159, -1.2616188526153564, 0.12485736608505249, 0.030619632452726364, 0.36602529883384705, 0.017652999609708786, -1.0407968759536743, -0.30202254652...
func (rc RpcCmd) DoSet() error { cfg := config.GetConfigure() rpcAddr := fmt.Sprintf("%s:%s", cfg.LeaderRpcC.Addr, cfg.LeaderRpcC.Port) opRequest := pb.OpRequest{ Op: rc.Op, Bucket: rc.Bucket, Key: rc.Key, Value: rc.Value, } reply, err := NewRiotRPCClient().RPCRequest(rpcAddr, &opRequest) if reply...
[ -0.1542837917804718, -0.21442008018493652, 0.8276236653327942, -0.8868777751922607, 1.558566927909851, 0.26529166102409363, -0.20698660612106323, -0.6927083730697632, -0.34034234285354614, 0.6314592957496643, 0.3282169699668884, -0.009546766988933086, -1.2956496477127075, -0.41037786006927...
func (rc RpcCmd) DoDel() error { cfg := config.GetConfigure() rpcAddr := fmt.Sprintf("%s:%s", cfg.LeaderRpcC.Addr, cfg.LeaderRpcC.Port) opRequest := pb.OpRequest{ Op: rc.Op, Bucket: rc.Bucket, Key: rc.Key, Value: rc.Value, } reply, err := NewRiotRPCClient().RPCRequest(rpcAddr, &opRequest) if reply...
[ -0.5355265140533447, -0.19712790846824646, 0.8268140554428101, -0.5933417677879333, 0.6199953556060791, 0.8360049724578857, 0.38654664158821106, -0.7301203608512878, 0.03478137031197548, 0.1533447951078415, 0.13857585191726685, 0.36534762382507324, -1.2171440124511719, -0.12263349443674088...
func (rc RpcCmd) GetBucket() (interface{}, error) { cfg := config.GetConfigure() rpcAddr := fmt.Sprintf("%s:%s", cfg.LeaderRpcC.Addr, cfg.LeaderRpcC.Port) opRequest := pb.OpRequest{ Op: rc.Op, Bucket: rc.Bucket, Key: rc.Key, Value: rc.Value, } reply, err := NewRiotRPCClient().RPCRequest(rpcAddr, &o...
[ -0.10628028959035873, 0.4482332170009613, 1.097530484199524, 0.16530637443065643, 0.27893418073654175, 0.11762363463640213, 0.45415881276130676, -0.9077109098434448, -0.5721668004989624, 0.1801374852657318, 0.37921425700187683, 0.759191632270813, -1.2882260084152222, -0.1741275191307068, ...
func OptionEnableProxyProtocol(enabled bool, subnet string) Option { return func(cfg *gwconfig) { cfg.proxyProtocolEnabled = enabled cfg.proxyProtocolSubnet = subnet } }
[ 0.887873113155365, 0.5661933422088623, 0.6306223273277283, -0.12990206480026245, -0.1606421023607254, 1.6537630558013916, 0.2970004379749298, 0.490252286195755, 0.13963879644870758, 0.4180324673652649, -0.757926881313324, -0.3477495610713959, -1.1345067024230957, -0.6420097351074219, -0....
func OptionTCPRateLimiting(enabled bool, cps float64, burst int, maxConnections int) Option { return func(cfg *gwconfig) { cfg.tcpRateLimitingEnabled = enabled cfg.tcpRateLimitingCPS = cps cfg.tcpRateLimitingBurst = burst cfg.tcpMaxConnections = maxConnections } }
[ 1.0297503471374512, 0.6204733848571777, 0.43932971358299255, -0.47331666946411133, -0.17551663517951965, 0.7203513979911804, -0.03397964686155319, -0.10102110356092453, 0.6245088577270508, 1.2288388013839722, 0.04949996620416641, -0.4736689031124115, -0.943435549736023, -0.3648939728736877...
func OptionRateLimiting(enabled bool, cps int, burst int) Option { return func(cfg *gwconfig) { cfg.rateLimitingEnabled = enabled cfg.rateLimitingRPS = int64(cps) cfg.rateLimitingBurst = int64(burst) } }
[ 1.1672968864440918, 0.49920034408569336, 0.5065975189208984, 0.11648093163967133, -0.0829458236694336, 0.3940836787223816, -0.182845339179039, 0.032521381974220276, 1.121271014213562, 0.9745431542396545, -0.15389074385166168, 0.01795061305165291, -0.8896362781524658, -0.622918426990509, ...
func OptionEnableTrace(enabled bool) Option { return func(cfg *gwconfig) { cfg.trace = enabled } }
[ 1.5415445566177368, 0.28074994683265686, 0.5886192917823792, 0.481533944606781, 0.6476988196372986, 0.9813275933265686, 0.5721782445907593, 0.4087299406528473, 0.8819580078125, 0.7992969751358032, -0.1946573555469513, -0.582716166973114, -1.5073944330215454, -0.5427621006965637, -0.41900...
func OptionEnableMaintenance(enabled bool) Option { return func(cfg *gwconfig) { cfg.maintenance = enabled } }
[ 0.1723533421754837, -0.3497762978076935, 0.5467959642410278, -0.2683069407939911, -0.2821482717990875, 1.0771433115005493, 0.7792591452598572, 0.7969909310340881, 0.48502638936042786, 0.6322684288024902, 0.041356634348630905, -0.9325477480888367, -1.1966252326965332, -0.28244224190711975, ...
func OptionHTTPTimeouts(read, write, idle time.Duration, disableKeepAlive bool) Option { return func(cfg *gwconfig) { cfg.httpReadTimeout = read cfg.httpWriteTimeout = write cfg.httpIdleTimeout = idle cfg.httpDisableKeepAlive = disableKeepAlive } }
[ 0.6711852550506592, -0.14227470755577087, 0.741028904914856, -0.704659104347229, 0.6159363389015198, 0.6656845808029175, 0.11165373027324677, -0.30793190002441406, -0.18794207274913788, 1.1774822473526, -0.12732282280921936, -0.4806981682777405, -0.322377473115921, -0.22215695679187775, ...
func OptionExposePrivateAPIs(enabled bool) Option { return func(cfg *gwconfig) { cfg.exposePrivateAPIs = enabled } }
[ -0.8248918056488037, 0.07111787050962448, 0.3219364583492279, -0.49111348390579224, -0.31615692377090454, 0.4564743638038635, 0.35710883140563965, 0.19049172103405, 1.2623026371002197, 0.3591243624687195, -0.5736848711967468, -0.03663000836968422, -1.47806978225708, 0.6309689879417419, -...
func OptionBlockOpenTracingHeaders(block bool) Option { return func(cfg *gwconfig) { cfg.blockOpenTracingHeaders = block } }
[ -0.27423831820487976, 0.08146441727876663, 0.6030989289283752, 0.8131002187728882, -0.11847695708274841, 0.9288115501403809, 0.7053711414337158, -0.07583783566951752, 0.044256530702114105, -0.15025843679904938, -0.07258427143096924, -0.6934581398963928, -0.7752983570098877, -0.017435586079...
func OptionUpstreamConfig( upstreamMaxConnsPerHost int, upstreamMaxIdleConns int, upstreamMaxIdleConnsPerHost int, upstreamTLSHandshakeTimeout time.Duration, upstreamIdleConnTimeout time.Duration, upstreamCircuitBreakerCond string, useHTTP2 bool, ) Option { return func(cfg *gwconfig) { cfg.upstreamMaxConnsPer...
[ -0.5926609039306641, 0.011873675510287285, 0.825853705406189, -0.395385205745697, -0.42278072237968445, 0.536266565322876, 0.2682020664215088, 0.04560581594705582, 0.2515435814857483, 0.5225478410720825, -0.7968950271606445, 0.8921838402748108, -0.16141442954540253, 0.29976919293403625, ...
func OptionUpstreamURLScheme(scheme string) Option { return func(cfg *gwconfig) { cfg.upstreamURLScheme = scheme } }
[ -0.32791662216186523, 0.15660126507282257, 0.4867918789386749, -0.4856821298599243, -0.31190183758735657, 0.9560564160346985, 0.42399466037750244, 0.10777375102043152, 0.38068199157714844, 0.39312291145324707, -0.12264122068881989, 0.6642247438430786, 0.6140173077583313, 0.716256856918335,...
func OptionMetricsManager(metricsManager bahamut.MetricsManager) Option { return func(cfg *gwconfig) { cfg.metricsManager = metricsManager } }
[ 0.15407775342464447, -0.18798094987869263, 0.3353599011898041, -0.17549237608909607, -0.1629958152770996, 0.5308674573898315, 0.29178544878959656, -0.6365799903869629, 0.5702525973320007, 0.12130343168973923, 0.1753329187631607, 0.3736729919910431, -0.7162529826164246, 0.8792873024940491, ...
func OptionRegisterPrefixInterceptor(prefix string, f InterceptorFunc) Option { return func(cfg *gwconfig) { cfg.prefixInterceptors[prefix] = f } }
[ -0.30585217475891113, 0.4892445206642151, 0.3709008991718292, -0.49850133061408997, 0.20875470340251923, -0.006078495178371668, 0.47801199555397034, 0.7024134397506714, 0.4284166395664215, -0.13149142265319824, -0.303234338760376, -0.045395489782094955, 0.292117178440094, -0.02766119502484...
func OptionRegisterSuffixInterceptor(prefix string, f InterceptorFunc) Option { return func(cfg *gwconfig) { cfg.suffixInterceptors[prefix] = f } }
[ 0.10323430597782135, 0.36123713850975037, 0.22823505103588104, -0.4998345375061035, 0.4057104289531708, -0.30294111371040344, 0.5798001289367676, 1.0521172285079956, 0.46004071831703186, -0.30470797419548035, -1.029464602470398, 0.1842765063047409, 0.5206328630447388, 0.1845046877861023, ...
func OptionRegisterExactInterceptor(path string, f InterceptorFunc) Option { return func(cfg *gwconfig) { cfg.exactInterceptors[path] = f } }
[ -0.2222597301006317, 0.18542557954788208, 0.4795723557472229, -0.7538461685180664, 0.5845305323600769, 0.2850443720817566, 0.6970853209495544, 0.7463089227676392, -0.34867700934410095, 0.2848656177520752, -0.7584099769592285, -0.31947532296180725, -0.027881428599357605, -0.1683642566204071...
func OptionSetCustomRequestRewriter(r RequestRewriter) Option { return func(cfg *gwconfig) { cfg.requestRewriter = r } }
[ -0.1930406391620636, -0.7089861631393433, 0.23711882531642914, -0.5620594024658203, 0.4357638955116272, -0.5688033699989319, 0.49124857783317566, -0.223671555519104, 0.4387868344783783, -0.4519071877002716, 0.6341392397880554, 0.7884508371353149, -0.29936128854751587, -0.2846524715423584, ...
func OptionSetCustomResponseRewriter(r ResponseRewriter) Option { return func(cfg *gwconfig) { cfg.responseRewriter = r } }
[ 0.3079613745212555, -1.2803382873535156, 0.2683231830596924, -0.690847635269165, 0.26832836866378784, -0.4140468239784241, 0.8550692200660706, -0.4451832175254822, 0.8137401938438416, -0.47358936071395874, -0.03675701096653938, 0.15007299184799194, -0.12612341344356537, -0.5413479208946228...
func OptionServerTLSConfig(tlsConfig *tls.Config) Option { return func(cfg *gwconfig) { cfg.serverTLSConfig = tlsConfig } }
[ 0.7875174880027771, -0.2200404852628708, 0.4764583110809326, -0.8685792088508606, -0.34791117906570435, 0.03873995691537857, -0.42080289125442505, 0.4736049175262451, 0.29416951537132263, 1.1859705448150635, -1.4712016582489014, 0.5221558213233948, 0.04981314390897751, 1.1756328344345093, ...
func OptionUpstreamTLSConfig(tlsConfig *tls.Config) Option { return func(cfg *gwconfig) { cfg.upstreamTLSConfig = tlsConfig } }
[ 0.23596449196338654, -0.13007579743862152, 0.5757225751876831, -1.0378656387329102, -1.0397039651870728, 0.7246646881103516, 0.6460721492767334, 0.6338333487510681, 0.5240452885627747, 0.7382348775863647, -0.6508912444114685, 0.7003209590911865, 0.9035574793815613, 0.7801293134689331, -0...
func OptionAllowedCORSOrigin(origin string) Option { return func(cfg *gwconfig) { cfg.corsOrigin = origin } }
[ 0.7828776836395264, -0.7793586850166321, 0.7037452459335327, -0.2440527379512787, -0.753078043460846, 0.6126103401184082, 0.7267498970031738, 0.15186798572540283, 0.5777330994606018, -0.17704951763153076, 0.027358965948224068, 0.8381823301315308, -0.6904498338699341, 0.22390365600585938, ...
func NewPROV_NLexer(input antlr.CharStream) *PROV_NLexer { l := new(PROV_NLexer) lexerDeserializer := antlr.NewATNDeserializer(nil) lexerAtn := lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn) lexerDecisionToDFA := make([]*antlr.DFA, len(lexerAtn.DecisionToState)) for index, ds := range lexerAtn.Decisio...
[ -0.03832077980041504, -0.4811977446079254, 0.519570529460907, -0.056910865008831024, -1.399084210395813, -0.6632828116416931, -0.7539520263671875, 0.13520991802215576, 0.24900175631046295, -0.08212868124246597, -0.0629478469491005, 0.020637253299355507, 0.39149072766304016, 0.2967610657215...
func (Cluster) Annotations() []schema.Annotation { return []schema.Annotation{ entsql.Annotation{Table: "clusters"}, } }
[ -0.08011158555746078, 0.49618691205978394, 0.4258379638195038, 0.6484087705612183, 0.7650145292282104, -0.08840463310480118, -0.6036808490753174, 0.40342333912849426, 0.36448758840560913, 0.32321667671203613, -0.9188748598098755, -0.1686701476573944, 0.48198506236076355, -0.069740965962409...
func (Cluster) Fields() []ent.Field { return []ent.Field{ field.Uint("id").Unique(), field.String("name").MaxLen(128), field.String("description"), field.Bool("disabled"), } }
[ -0.5702382326126099, 0.3573724925518036, 0.08104117959737778, -1.1170154809951782, 0.7470175623893738, 1.0120697021484375, -1.3670355081558228, 0.007678508758544922, 0.5809851884841919, 0.13335394859313965, -0.6685921549797058, -0.05658384785056114, -0.635523796081543, -0.30337026715278625...
func (Cluster) Edges() []ent.Edge { return []ent.Edge{ edge.To("agents", Agent.Type), edge.To("nodes", Node.Type), } }
[ -1.1067339181900024, -0.3840622305870056, 0.1792515218257904, -0.15676814317703247, 1.1982778310775757, 0.3465616703033447, -1.3756725788116455, 0.40515363216400146, 0.3032884895801544, 0.5364746451377869, 0.3637411594390869, 1.0010725259780884, -0.06579456478357315, 0.0966399610042572, ...
func NewImageStore(rootDir string, gc bool, gcDelay time.Duration, dedupe, commit bool, log zlog.Logger, metrics monitoring.MetricServer, linter common.Lint, cacheDriver cache.Cache, ) storageTypes.ImageStore { if _, err := os.Stat(rootDir); os.IsNotExist(err) { if err := os.MkdirAll(rootDir, storageConstants.Defau...
[ 0.05196923390030861, -0.4347294569015503, 0.3248157203197479, -0.08959255367517471, -0.5332611203193665, -0.7910457253456116, -0.32363876700401306, 0.06254956871271133, -0.0487133227288723, -0.24653930962085724, 0.5551599860191345, -0.03912334516644478, -0.2299387902021408, 1.0064681768417...
func (is *ImageStoreLocal) InitRepo(name string) error { var lockLatency time.Time is.Lock(&lockLatency) defer is.Unlock(&lockLatency) return is.initRepo(name) }
[ 0.2621157169342041, 0.5782291889190674, 0.4134575128555298, 0.22243736684322357, -0.6907094120979309, -1.1729767322540283, 0.13012869656085968, 0.6020045876502991, 0.4384865164756775, 0.023267287760972977, -0.8759945631027222, -0.794201135635376, 0.014819340780377388, 0.30326369404792786, ...
func (is *ImageStoreLocal) ValidateRepo(name string) (bool, error) { // https://github.com/opencontainers/image-spec/blob/master/image-layout.md#content // at least, expect at least 3 entries - ["blobs", "oci-layout", "index.json"] // and an additional/optional BlobUploadDir in each image store if !zreg.FullNameReg...
[ 0.1169334203004837, -0.42189931869506836, 0.9757973551750183, -0.5869249701499939, -0.9251784682273865, -0.2961999773979187, 0.9184178709983826, -0.06954756379127502, 0.09182228893041611, 0.4112606644630432, -0.26011577248573303, -0.6699092984199524, -0.21499887108802795, 0.147718325257301...
func (is *ImageStoreLocal) GetRepositories() ([]string, error) { var lockLatency time.Time dir := is.rootDir is.RLock(&lockLatency) defer is.RUnlock(&lockLatency) _, err := os.ReadDir(dir) if err != nil { is.log.Error().Err(err).Msg("failure walking storage root-dir") return nil, err } stores := make([...
[ -0.5501097440719604, -0.2825621962547302, 0.6084469556808472, 0.33837246894836426, -0.07558535784482956, -0.6576806306838989, 0.42214444279670715, -0.32748156785964966, 0.7521928548812866, 0.19899894297122955, 0.2031318098306656, -0.2179427295923233, -0.45737066864967346, 0.907750904560089...
func (is *ImageStoreLocal) GetNextRepository(repo string) (string, error) { var lockLatency time.Time dir := is.rootDir is.RLock(&lockLatency) defer is.RUnlock(&lockLatency) _, err := os.ReadDir(dir) if err != nil { is.log.Error().Err(err).Msg("failure walking storage root-dir") return "", err } found ...
[ 0.26479440927505493, -0.24333657324314117, 0.8418374061584473, 0.02469155564904213, -0.9743606448173523, -0.8654282093048096, 0.589385449886322, -0.8459116220474243, 0.663043200969696, -0.16566085815429688, 0.4008137285709381, 0.16438691318035126, 0.17953766882419586, 0.8224901556968689, ...
func (is *ImageStoreLocal) GetImageTags(repo string) ([]string, error) { var lockLatency time.Time dir := path.Join(is.rootDir, repo) if !is.DirExists(dir) { return nil, zerr.ErrRepoNotFound } is.RLock(&lockLatency) defer is.RUnlock(&lockLatency) index, err := common.GetIndex(is, repo, is.log) if err != ni...
[ -0.3080050051212311, 0.6584315896034241, 0.42232179641723633, -0.3964979350566864, 0.518264889717102, -0.90977543592453, -0.28023627400398254, -0.6347901225090027, -0.42106664180755615, 0.5691758394241333, -0.7972304224967957, 0.12565147876739502, -0.5931325554847717, 0.663434624671936, ...
func (is *ImageStoreLocal) GetImageManifest(repo, reference string) ([]byte, godigest.Digest, string, error) { dir := path.Join(is.rootDir, repo) if !is.DirExists(dir) { return nil, "", "", zerr.ErrRepoNotFound } var lockLatency time.Time var err error is.RLock(&lockLatency) defer func() { is.RUnlock(&loc...
[ -0.37645113468170166, -0.929875373840332, 0.7707042694091797, -1.1058125495910645, -0.0028623526450246572, -1.2032806873321533, -0.33254918456077576, -0.31602972745895386, 0.18791764974594116, 0.6937592029571533, -0.34035030007362366, 0.6346262097358704, -0.718316912651062, 0.7349951863288...
func (is *ImageStoreLocal) PutImageManifest(repo, reference, mediaType string, //nolint: gocyclo body []byte, ) (godigest.Digest, godigest.Digest, error) { if err := is.InitRepo(repo); err != nil { is.log.Debug().Err(err).Msg("init repo") return "", "", err } var lockLatency time.Time var err error is.Loc...
[ -0.7359871864318848, -0.2372831404209137, 0.6473782062530518, -1.2608767747879028, -0.23343528807163239, -0.5916619300842285, -0.22786256670951843, -0.30205613374710083, 0.4816504120826721, 0.8351445198059082, -0.14977259933948517, 0.6758308410644531, -0.7622953057289124, 0.649218797683715...
func (is *ImageStoreLocal) DeleteImageManifest(repo, reference string, detectCollision bool) error { dir := path.Join(is.rootDir, repo) if !is.DirExists(dir) { return zerr.ErrRepoNotFound } var lockLatency time.Time var err error is.Lock(&lockLatency) defer func() { is.Unlock(&lockLatency) if err == ni...
[ 0.5508324503898621, -1.268519401550293, 0.7519331574440002, -0.4662189185619354, -0.20905987918376923, -0.33837759494781494, 0.4479597210884094, 0.01677439734339714, 0.27359214425086975, 0.8433204889297485, -0.06251554936170578, -0.0004715835675597191, -0.233110710978508, 0.532853603363037...
func (is *ImageStoreLocal) BlobUploadPath(repo, uuid string) string { dir := path.Join(is.rootDir, repo) blobUploadPath := path.Join(dir, storageConstants.BlobUploadDir, uuid) return blobUploadPath }
[ 0.7842864990234375, -0.832807183265686, 0.31919363141059875, -0.45371773838996887, -0.15021243691444397, 0.498136430978775, -0.07209298759698868, 0.2913731038570404, 0.337726354598999, 0.9367197155952454, -0.6792134642601013, -0.06536008417606354, -0.8276620507240295, -0.6952614784240723, ...
func (is *ImageStoreLocal) NewBlobUpload(repo string) (string, error) { if err := is.InitRepo(repo); err != nil { is.log.Error().Err(err).Msg("error initializing repo") return "", err } uuid, err := guuid.NewV4() if err != nil { return "", err } uid := uuid.String() blobUploadPath := is.BlobUploadPath(...
[ -0.1666259765625, -0.8361663818359375, 0.7659597992897034, -0.6505362391471863, -0.8240107297897339, 0.18612265586853027, 0.5986838340759277, 0.09760379791259766, -0.18569797277450562, 0.6275793313980103, -0.996139407157898, -0.42427965998649597, -0.7584695219993591, -0.11622180044651031, ...
func (is *ImageStoreLocal) GetBlobUpload(repo, uuid string) (int64, error) { blobUploadPath := is.BlobUploadPath(repo, uuid) if !utf8.ValidString(blobUploadPath) { is.log.Error().Msg("input is not valid UTF-8") return -1, zerr.ErrInvalidRepositoryName } binfo, err := os.Stat(blobUploadPath) if err != nil { ...
[ -0.827204167842865, 0.12981007993221283, 0.8510966897010803, -0.46851858496665955, -0.048493027687072754, -0.7142355442047119, 0.24135185778141022, 0.13530878722667694, -0.5607729554176331, 0.45959141850471497, -0.4244242310523987, -0.22378773987293243, -0.804186224937439, -0.0544947795569...
func (is *ImageStoreLocal) PutBlobChunkStreamed(repo, uuid string, body io.Reader) (int64, error) { if err := is.InitRepo(repo); err != nil { return -1, err } blobUploadPath := is.BlobUploadPath(repo, uuid) _, err := os.Stat(blobUploadPath) if err != nil { return -1, zerr.ErrUploadNotFound } file, err := ...
[ 0.035920578986406326, -0.34556251764297485, 0.7088407874107361, -0.7307802438735962, 0.07041613012552261, 0.044930413365364075, 1.1073206663131714, 0.19223026931285858, -1.1042451858520508, 0.7188321948051453, -0.47343313694000244, 0.8712882995605469, -1.0635830163955688, -0.07406705617904...
func (is *ImageStoreLocal) PutBlobChunk(repo, uuid string, from, to int64, body io.Reader, ) (int64, error) { if err := is.InitRepo(repo); err != nil { return -1, err } blobUploadPath := is.BlobUploadPath(repo, uuid) binfo, err := os.Stat(blobUploadPath) if err != nil { return -1, zerr.ErrUploadNotFound } ...
[ -0.5263090133666992, -0.4746010899543762, 0.8299958109855652, -0.6748807430267334, 0.13479796051979065, 0.3106659948825836, 1.0608367919921875, 0.2244337946176529, -1.2823004722595215, 0.7912777662277222, -0.4069877564907074, 0.5394832491874695, -0.723812460899353, -0.5208848118782043, 0...
func (is *ImageStoreLocal) BlobUploadInfo(repo, uuid string) (int64, error) { blobUploadPath := is.BlobUploadPath(repo, uuid) binfo, err := os.Stat(blobUploadPath) if err != nil { is.log.Error().Err(err).Str("blob", blobUploadPath).Msg("failed to stat blob") return -1, err } size := binfo.Size() return si...
[ 0.3214596211910248, -0.49433237314224243, 0.663304328918457, -1.3658570051193237, -0.20533791184425354, -0.030332643538713455, -0.12487396597862244, -0.07197625935077667, -0.9419872164726257, 0.6004424095153809, -1.287264108657837, -0.43560123443603516, -0.2859385907649994, 0.1468492150306...
func (is *ImageStoreLocal) FinishBlobUpload(repo, uuid string, body io.Reader, dstDigest godigest.Digest) error { if err := dstDigest.Validate(); err != nil { return err } src := is.BlobUploadPath(repo, uuid) _, err := os.Stat(src) if err != nil { is.log.Error().Err(err).Str("blob", src).Msg("failed to stat ...
[ 0.1828579306602478, -0.6660804152488708, 0.7706651091575623, -0.7655432820320129, 0.051831625401973724, -0.33323317766189575, 0.5959066152572632, 0.09176167100667953, -0.6574791073799133, 0.8433188796043396, -0.7794504165649414, -0.09082280099391937, 0.09975428134202957, -0.012761053629219...
func (is *ImageStoreLocal) FullBlobUpload(repo string, body io.Reader, dstDigest godigest.Digest, ) (string, int64, error) { if err := dstDigest.Validate(); err != nil { return "", -1, err } if err := is.InitRepo(repo); err != nil { return "", -1, err } u, err := guuid.NewV4() if err != nil { return "", -...
[ -0.09279381483793259, -0.5334649682044983, 1.0396463871002197, -0.40970227122306824, -0.344033420085907, -0.4749760627746582, 0.6920050382614136, 0.6025943756103516, -0.14011499285697937, 0.7605664730072021, -0.7995115518569946, -0.08720429986715317, -0.24827972054481506, 0.137282341718673...
func (is *ImageStoreLocal) DeleteBlobUpload(repo, uuid string) error { blobUploadPath := is.BlobUploadPath(repo, uuid) if err := os.Remove(blobUploadPath); err != nil { is.log.Error().Err(err).Str("blobUploadPath", blobUploadPath).Msg("error deleting blob upload") return err } return nil }
[ 0.11213711649179459, -0.34674975275993347, 0.4441133439540863, -0.1745302975177765, 0.3877623975276947, 0.12927311658859253, 0.31520727276802063, 0.5297972559928894, 0.06931509077548981, 0.3385300636291504, -0.4149351119995117, -0.23959897458553314, -0.6859216094017029, 0.08747503161430359...
func (is *ImageStoreLocal) BlobPath(repo string, digest godigest.Digest) string { return path.Join(is.rootDir, repo, "blobs", digest.Algorithm().String(), digest.Encoded()) }
[ 1.2736736536026, -0.6235941052436829, 0.22148291766643524, -0.14113950729370117, -0.3546704947948456, 0.5398964285850525, 0.20299559831619263, -0.08509892970323563, 0.3711279034614563, 0.7720585465431213, -0.031380392611026764, -0.2213224619626999, -0.3249035179615021, 0.17141322791576385,...
func (is *ImageStoreLocal) CheckBlob(repo string, digest godigest.Digest) (bool, int64, error) { var lockLatency time.Time if err := digest.Validate(); err != nil { return false, -1, err } if is.dedupe && fmt.Sprintf("%v", is.cache) != fmt.Sprintf("%v", nil) { is.Lock(&lockLatency) defer is.Unlock(&lockLate...
[ -0.1978597640991211, 0.22558563947677612, 1.0543303489685059, -0.5585687160491943, -0.23141556978225708, 0.36784109473228455, 0.5326564908027649, 0.2517335116863251, 0.016334695741534233, 1.176118016242981, -0.6719260215759277, -0.3816037178039551, -0.7581628561019897, 0.5133550763130188, ...
func (is *ImageStoreLocal) StatBlob(repo string, digest godigest.Digest) (bool, int64, error) { if err := digest.Validate(); err != nil { return false, -1, err } blobPath := is.BlobPath(repo, digest) binfo, err := os.Stat(blobPath) if err != nil { is.log.Debug().Str("blob path", blobPath).Msg("failed to find...
[ 0.37535446882247925, -0.6926218867301941, 0.8567649126052856, -0.5039697289466858, 0.23848353326320648, 0.2603308856487274, 0.5301231145858765, 0.30285489559173584, 0.05049368739128113, 0.2536368668079376, -1.0077495574951172, -0.346802294254303, -0.38508182764053345, 0.8636741638183594, ...
func (is *ImageStoreLocal) GetBlobPartial(repo string, digest godigest.Digest, mediaType string, from, to int64, ) (io.ReadCloser, int64, int64, error) { var lockLatency time.Time if err := digest.Validate(); err != nil { return nil, -1, -1, err } blobPath := is.BlobPath(repo, digest) is.RLock(&lockLatency) ...
[ 0.1075504720211029, -1.1569467782974243, 0.8665094375610352, -0.255761981010437, -0.5142262578010559, -0.13564911484718323, 0.17008616030216217, -0.5228040218353271, -0.6073548793792725, -0.19551385939121246, -0.11250994354486465, 0.35175371170043945, -1.0711482763290405, 0.565643429756164...
func (is *ImageStoreLocal) GetBlob(repo string, digest godigest.Digest, mediaType string, ) (io.ReadCloser, int64, error) { var lockLatency time.Time if err := digest.Validate(); err != nil { return nil, -1, err } blobPath := is.BlobPath(repo, digest) is.RLock(&lockLatency) defer is.RUnlock(&lockLatency) b...
[ -0.15378737449645996, -0.6921527981758118, 1.004357099533081, -0.005413034465163946, -0.18431130051612854, -0.36548367142677307, 0.6104224324226379, 0.08896126598119736, -0.15528741478919983, 0.05364283546805382, 0.15763160586357117, 0.01181184221059084, -0.7955148220062256, 0.838362872600...
func (is *ImageStoreLocal) GetBlobContent(repo string, digest godigest.Digest) ([]byte, error) { if err := digest.Validate(); err != nil { return []byte{}, err } blobPath := is.BlobPath(repo, digest) blob, err := os.ReadFile(blobPath) if err != nil { if os.IsNotExist(err) { is.log.Debug().Err(err).Str("bl...
[ 0.4188476800918579, -0.8489677906036377, 0.9367147088050842, -0.10716816782951355, -0.6016829013824463, 0.182180255651474, -0.389402836561203, -0.5893768668174744, 0.07427453249692917, 1.0606969594955444, 0.1472463756799698, 0.16760729253292084, -0.5169665813446045, -0.3869514465332031, ...
func (is *ImageStoreLocal) GetIndexContent(repo string) ([]byte, error) { dir := path.Join(is.rootDir, repo) buf, err := os.ReadFile(path.Join(dir, "index.json")) if err != nil { if os.IsNotExist(err) { is.log.Debug().Err(err).Str("dir", dir).Msg("index.json doesn't exist") return []byte{}, zerr.ErrRepoNot...
[ -0.16258439421653748, -0.5534021854400635, 0.6292431950569153, -0.06235330179333687, -0.7692511081695557, -0.33288270235061646, 0.31029582023620605, -0.5074456334114075, 0.14872415363788605, 1.0697636604309082, -0.1111283078789711, 0.4811262786388397, -0.3737582266330719, -0.53829616308212...
func (is *ImageStoreLocal) DeleteBlob(repo string, digest godigest.Digest) error { var lockLatency time.Time if err := digest.Validate(); err != nil { return err } blobPath := is.BlobPath(repo, digest) is.Lock(&lockLatency) defer is.Unlock(&lockLatency) _, err := os.Stat(blobPath) if err != nil { is.log...
[ 0.37106356024742126, -0.5559664368629456, 0.9004553556442261, -0.15117180347442627, -0.04327559471130371, -0.26835429668426514, 0.7143778800964355, -0.07453753054141998, 0.4903850853443146, 0.5500428080558777, 0.2633189558982849, -0.02973215840756893, -0.7944178581237793, 0.966716408729553...
func (l Level) Printable() bool { return lgrCfg.Level.Level().Enabled(zapcore.Level(l)) }
[ 0.05436592921614647, -0.6047661304473877, 0.4003528952598572, 0.11564857512712479, 0.022282332181930542, 0.46551382541656494, -0.014993805438280106, 0.3234332203865051, -1.0891737937927246, 0.9410370588302612, -0.5756720304489136, 0.034227244555950165, -1.3816074132919312, 0.31836536526679...
func InitEventQueue() { mainMessageChannel = messageDispatch() for clientChannel := range AddClientChannel { messageClientChannels = append(messageClientChannels, clientChannel) } }
[ 1.327931523323059, -0.9993389844894409, 0.655290424823761, -0.7505953907966614, 0.7210443019866943, -0.12356865406036377, -0.02157435193657875, -0.19445662200450897, -0.5633963942527771, -0.39154568314552307, 0.08459489047527313, 0.5677013397216797, -0.29001638293266296, 1.5960965156555176...
func (df *DefinedHandler) toHandler() (*Handler, error) { var err error // Create file name patterns filePatterns := make(RuleSet, len(df.FilePatterns)) for i := range df.FilePatterns { if filePatterns[i], err = regexp.Compile(df.FilePatterns[i]); err != nil { return nil, err } } // Create absolute path ...
[ 0.34291568398475647, -0.27445316314697266, 0.4839109182357788, -0.15489384531974792, 0.38420966267585754, 0.04932567477226257, 0.942080020904541, 0.10361175239086151, -0.6464667916297913, -0.34864434599876404, 0.18215562403202057, 0.03755735605955124, 0.007986413314938545, -0.2342254370450...
func LoadConfig(data string) (*Configuration, error) { config := DefinedConfiguration{} err := yaml.Unmarshal([]byte(data), &config) if err != nil { return nil, err } // Create Handlers from DefinedHandlers ecosystems := make([]*Handler, len(config.Ecosystems)) for i := range config.Ecosystems { if ecosyst...
[ 0.5433408617973328, -0.4120258092880249, 0.4550904929637909, -0.18802201747894287, -0.4139111340045929, -0.12711971998214722, -0.12659922242164612, 0.667401909828186, -0.04149289429187775, 0.16299690306186676, -0.5543717741966248, -0.24307328462600708, -0.2903076708316803, 0.82678472995758...
func NewDB(filename string) (*DB, error) { db, err := bbolt.Open(filename, 0600, nil) if err != nil { return nil, err } return &DB{db: db}, nil }
[ 0.36270254850387573, -0.1343228667974472, 0.5397821068763733, 0.1921381652355194, -0.264984667301178, 0.7224236130714417, 0.6526055932044983, 0.04641471058130264, -0.16875547170639038, -0.1874426007270813, 0.3995037376880646, 0.19935715198516846, -0.3981662392616272, -0.05933573469519615, ...
func NewHclFirmware(classId string, objectType string) *HclFirmware { this := HclFirmware{} this.ClassId = classId this.ObjectType = objectType return &this }
[ 0.18647561967372894, -0.8130355477333069, 0.18728846311569214, 0.7136757373809814, 0.34244847297668457, -0.05104989558458328, 0.15299661457538605, 0.012759465724229813, 0.4775242507457733, -0.7341676354408264, -0.27168917655944824, -0.4995576739311218, -0.40398165583610535, 1.4465069770812...
func NewHclFirmwareWithDefaults() *HclFirmware { this := HclFirmware{} var classId string = "hcl.Firmware" this.ClassId = classId var objectType string = "hcl.Firmware" this.ObjectType = objectType return &this }
[ 0.09708024561405182, -0.18696258962154388, -0.1103736013174057, 0.9082524180412292, 0.9355318546295166, -0.785057008266449, -0.03788188099861145, 0.1279522329568863, 0.47346168756484985, -1.2390644550323486, -0.7088428139686584, -1.65034019947052, -0.5833123922348022, 1.4564692974090576, ...
func (o *HclFirmware) GetClassId() string { if o == nil { var ret string return ret } return o.ClassId }
[ 0.6505467295646667, -0.12105811387300491, -0.05552522465586662, 1.0268925428390503, 0.3066057562828064, 0.9231483340263367, 0.5192492604255676, 0.23301619291305542, 1.2932909727096558, -0.7375964522361755, 0.46175506711006165, -0.3822338581085205, -0.754993736743927, 0.6304758787155151, ...
func (o *HclFirmware) GetClassIdOk() (*string, bool) { if o == nil { return nil, false } return &o.ClassId, true }
[ -0.46943071484565735, 0.37868741154670715, 0.6141772866249084, 1.1127849817276, 0.47491076588630676, 0.5916484594345093, 0.7003533840179443, 0.7874799370765686, 0.5471463799476624, -0.17589661478996277, -0.9088882803916931, -0.5804371237754822, -0.12060954421758652, 0.9300311207771301, -...
func (o *HclFirmware) SetClassId(v string) { o.ClassId = v }
[ 0.4700775742530823, -0.2196820080280304, -0.14941787719726562, 0.33490249514579773, -0.09881827235221863, 0.6685571074485779, 0.34169748425483704, 0.6706984639167786, 0.9998806118965149, 0.22398006916046143, -0.06039869412779808, 0.2398272603750229, -0.9223414659500122, 1.0669519901275635,...
func (o *HclFirmware) GetObjectType() string { if o == nil { var ret string return ret } return o.ObjectType }
[ 0.4762018322944641, 0.35867172479629517, -0.1550540179014206, 0.3165507912635803, 0.7232580184936523, 0.4840672016143799, 0.23116452991962433, -0.2766574025154114, 0.24819731712341309, -0.10830169916152954, -0.13218942284584045, -1.1005281209945679, -1.0628241300582886, -0.1437525004148483...
func (o *HclFirmware) GetObjectTypeOk() (*string, bool) { if o == nil { return nil, false } return &o.ObjectType, true }
[ -0.33601102232933044, 0.1510082483291626, 0.6073891520500183, -0.10763968527317047, 0.25735336542129517, 0.35582780838012695, 0.20015113055706024, 0.3507632613182068, -0.2611401081085205, 1.7670793533325195, -1.4795448780059814, -1.6901376247406006, 0.152082160115242, 0.012315459549427032,...
func (o *HclFirmware) SetObjectType(v string) { o.ObjectType = v }
[ 0.38986286520957947, 0.14146919548511505, -0.08013041317462921, -0.3073171079158783, 0.347133994102478, 0.721303403377533, 0.08573249727487564, -0.2531808018684387, -0.07445217669010162, 0.5687883496284485, -0.7469393610954285, -0.6324471235275269, -0.9138206243515015, 0.23846584558486938,...