text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (*ProvisioningPolicyChange) Descriptor() ([]byte, []int) { return edgelq_devices_proto_v1alpha_provisioning_policy_change_proto_rawDescGZIP(), []int{0} }
[ -0.8947481513023376, -0.16536945104599, 0.270447313785553, 0.4104803204536438, -0.027601880952715874, 1.3786906003952026, -0.13011924922466278, -0.06196695566177368, -0.5933720469474792, 0.0152894901111722, -0.4048740565776825, -0.06552210450172424, 0.15108664333820343, 1.212459683418274, ...
func (*ProvisioningPolicyChange_Added) Descriptor() ([]byte, []int) { return edgelq_devices_proto_v1alpha_provisioning_policy_change_proto_rawDescGZIP(), []int{0, 0} }
[ -0.6078687906265259, -0.6743868589401245, 0.5523420572280884, 0.09244232624769211, -0.07670468837022781, 1.4974992275238037, -0.6322397589683533, -0.05139471963047981, -0.2022092640399933, -0.7173163294792175, -0.34932804107666016, -0.07858414202928543, 0.6043002605438232, 1.11240386962890...
func (*ProvisioningPolicyChange_Modified) Descriptor() ([]byte, []int) { return edgelq_devices_proto_v1alpha_provisioning_policy_change_proto_rawDescGZIP(), []int{0, 1} }
[ -1.425822377204895, -0.5107536911964417, 0.21429549157619476, 0.3015304207801819, -0.08553177118301392, 1.3407782316207886, -0.613061785697937, -0.028437357395887375, -0.49318912625312805, -0.33131128549575806, -0.5529121160507202, -0.4236193299293518, 0.055768150836229324, 0.8000851273536...
func (*ProvisioningPolicyChange_Current) Descriptor() ([]byte, []int) { return edgelq_devices_proto_v1alpha_provisioning_policy_change_proto_rawDescGZIP(), []int{0, 2} }
[ -1.4181321859359741, -0.7349616885185242, 0.41374433040618896, -0.22087401151657104, -0.24898993968963623, 1.482328176498413, 0.16129018366336823, 0.3839513957500458, -1.2457923889160156, -0.35606664419174194, -0.003636422334238887, 0.13722828030586243, 0.8740491271018982, 0.74495142698287...
func (*ProvisioningPolicyChange_Removed) Descriptor() ([]byte, []int) { return edgelq_devices_proto_v1alpha_provisioning_policy_change_proto_rawDescGZIP(), []int{0, 3} }
[ -0.5730642080307007, -0.5840045213699341, 0.40842318534851074, 0.08242277055978775, -0.4109196364879608, 1.3577237129211426, -0.5395184755325317, 0.264316201210022, -0.07924588769674301, -0.9399241805076599, -1.3391749858856201, -0.45415201783180237, -0.29136577248573303, 1.019771933555603...
func (pq *ParticipantQuery) Where(ps ...predicate.Participant) *ParticipantQuery { pq.predicates = append(pq.predicates, ps...) return pq }
[ 0.19657428562641144, -0.8678105473518372, 0.29062318801879883, -0.4222291111946106, -0.23119224607944489, 1.0131479501724243, -0.22685113549232483, 0.36215394735336304, -0.43133094906806946, -0.07861991971731186, 0.6628047823905945, 0.27329641580581665, -0.8150846362113953, -0.580836057662...
func (pq *ParticipantQuery) Limit(limit int) *ParticipantQuery { pq.limit = &limit return pq }
[ -0.12536504864692688, -0.22615456581115723, 0.37829384207725525, -0.37255221605300903, -0.14710453152656555, 1.1214317083358765, 0.17531177401542664, 0.8373095393180847, 1.007859706878662, -0.18260210752487183, 0.46383586525917053, -0.2189076989889145, -1.558640480041504, -1.07842910289764...
func (pq *ParticipantQuery) Offset(offset int) *ParticipantQuery { pq.offset = &offset return pq }
[ 0.08137816190719604, -0.763619065284729, 0.21728743612766266, -0.6791514158248901, -1.043364405632019, 2.2204742431640625, 0.5578569769859314, 1.196530818939209, 0.9204456806182861, -0.024712124839425087, 0.25768983364105225, -0.04923509433865547, -0.9514436721801758, -0.38442307710647583,...
func (pq *ParticipantQuery) Order(o ...OrderFunc) *ParticipantQuery { pq.order = append(pq.order, o...) return pq }
[ -0.31692010164260864, -0.34765490889549255, 0.40550440549850464, 0.7941977977752686, 0.5448972582817078, 0.6786384582519531, -0.5298025012016296, 0.19005794823169708, 0.23168674111366272, -0.03300285339355469, 0.011767605319619179, -0.2540448307991028, 0.09114005416631699, -0.0576698854565...
func (pq *ParticipantQuery) QueryData() *DatumQuery { query := &DatumQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err(); err != nil { return n...
[ 0.028577541932463646, -0.46780988574028015, 0.4413427710533142, -0.1893196851015091, -0.15424053370952606, 0.19763988256454468, 0.5736791491508484, 0.6404053568840027, 0.4403391182422638, -0.6066073179244995, 0.7233363389968872, -0.05216251313686371, 0.23086242377758026, -0.322882503271102...
func (pq *ParticipantQuery) QueryProviderIDs() *ProviderIDQuery { query := &ProviderIDQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err(); err != ...
[ -0.5426846742630005, -0.5620811581611633, 0.4353245198726654, -0.40893226861953735, -0.26754024624824524, -0.3532065749168396, 0.20361360907554626, 0.4092223048210144, 0.693976879119873, 0.6561412215232849, 0.810122549533844, 0.49588483572006226, -0.6717320680618286, -0.4548017680644989, ...
func (pq *ParticipantQuery) QueryParticipations() *ParticipationQuery { query := &ParticipationQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err()...
[ -0.07598959654569626, 0.008728917688131332, 0.5424668788909912, -0.07828272879123688, 0.13735900819301605, -0.7322953939437866, 0.7392942309379578, 0.059566840529441833, 0.29559770226478577, 0.13494840264320374, 0.6133562922477722, -0.951644241809845, -0.6875884532928467, -0.50388348102569...
func (pq *ParticipantQuery) QueryCreatedBy() *StepRunQuery { query := &StepRunQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err(); err != nil { ...
[ 0.699361264705658, -0.3773455023765564, 0.42916053533554077, 0.5223022699356079, -0.012460434809327126, -0.2995607256889343, 0.5039985775947571, 0.5517422556877136, -0.10838472098112106, -0.1923934668302536, 0.7739565968513489, -0.5352144241333008, -0.030276328325271606, -0.058777160942554...
func (pq *ParticipantQuery) QuerySteps() *StepRunQuery { query := &StepRunQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err(); err != nil { ret...
[ 0.26465746760368347, -0.09649278223514557, 0.39785516262054443, 0.3586127758026123, 0.10678450018167496, 0.1084086075425148, -0.12260448187589645, 0.04772971197962761, -0.04257204383611679, -0.5542727112770081, 0.6542515754699707, -0.8303450345993042, -0.23795585334300995, -0.3077538609504...
func (pq *ParticipantQuery) QueryProjects() *ProjectQuery { query := &ProjectQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err(); err != nil { ...
[ -0.31642621755599976, 0.0729774534702301, 0.36973974108695984, -0.030331706628203392, -0.11669885367155075, 0.18070879578590393, -0.0038329327944666147, -0.07490935176610947, 0.27634385228157043, 0.03747877478599548, 0.5569790005683899, -0.5450493097305298, -0.8580936193466187, -0.87015688...
func (pq *ParticipantQuery) QueryImportedBy() *AdminQuery { query := &AdminQuery{config: pq.config} query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } selector := pq.sqlQuery() if err := selector.Err(); err != nil { re...
[ 0.3127985894680023, 0.13513605296611786, 0.5187482833862305, -0.18634019792079926, -0.3779281675815582, -0.20825929939746857, 0.48871132731437683, -0.28358036279678345, 0.46950581669807434, 0.9580507278442383, 0.326438307762146, -0.015367208980023861, -0.48588380217552185, -0.2522852122783...
func (pq *ParticipantQuery) FirstX(ctx context.Context) *Participant { node, err := pq.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } return node }
[ 0.5936996936798096, 0.20149889588356018, 0.359632670879364, -0.27564537525177, 0.0866638794541359, 0.3157448470592499, -0.9664334058761597, 0.04441124200820923, 1.0951488018035889, -0.040519677102565765, 0.9430259466171265, -0.130318284034729, -0.7522673606872559, -0.25869861245155334, -...
func (pq *ParticipantQuery) FirstXID(ctx context.Context) string { id, err := pq.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } return id }
[ 1.5019372701644897, -0.5635184645652771, 0.4228832423686981, -0.2753412127494812, 0.11886733025312424, 0.29443785548210144, -0.8087262511253357, 0.2421512007713318, 0.6781837344169617, -0.15270604193210602, 1.2121877670288086, -0.20904214680194855, -0.8099458813667297, 0.2861689031124115, ...
func (pq *ParticipantQuery) Only(ctx context.Context) (*Participant, error) { nodes, err := pq.Limit(2).All(ctx) if err != nil { return nil, err } switch len(nodes) { case 1: return nodes[0], nil case 0: return nil, &NotFoundError{participant.Label} default: return nil, &NotSingularError{participant.Labe...
[ -0.25436073541641235, -0.3066340684890747, 0.5185965895652771, 0.012089763768017292, 0.4205407500267029, 0.3836158514022827, -0.35056671500205994, 0.4961845874786377, 0.29918569326400757, 0.40324708819389343, 0.9017093181610107, 0.4913914203643799, -0.6195427179336548, -0.3803401589393616,...
func (pq *ParticipantQuery) OnlyX(ctx context.Context) *Participant { node, err := pq.Only(ctx) if err != nil { panic(err) } return node }
[ -0.10182838141918182, 0.6093481183052063, 0.38133567571640015, 0.21500679850578308, -0.688495934009552, 0.9606932401657104, -0.6931859850883484, 0.7483090162277222, 1.3076008558273315, 0.19178171455860138, 1.0353676080703735, 0.3727758824825287, -0.9218224883079529, -0.42554527521133423, ...
func (pq *ParticipantQuery) OnlyID(ctx context.Context) (id string, err error) { var ids []string if ids, err = pq.Limit(2).IDs(ctx); err != nil { return } switch len(ids) { case 1: id = ids[0] case 0: err = &NotFoundError{participant.Label} default: err = &NotSingularError{participant.Label} } return ...
[ -0.09335377812385559, -0.8908134698867798, 0.6226942539215088, 0.04117070510983467, 0.24530209600925446, 0.7759779095649719, -0.1947554349899292, 0.707261860370636, 1.3417322635650635, 0.5848674178123474, 1.4465632438659668, 0.22384968400001526, -1.162095069885254, -0.24008698761463165, ...
func (pq *ParticipantQuery) OnlyIDX(ctx context.Context) string { id, err := pq.OnlyID(ctx) if err != nil { panic(err) } return id }
[ -0.1505337655544281, -0.47434690594673157, 0.31666818261146545, -0.17547790706157684, -0.8440910577774048, 0.83354252576828, -0.7666792869567871, 0.6161004304885864, 1.4513297080993652, -0.03465941175818443, 0.9337905645370483, 0.37187066674232483, -1.3048924207687378, -0.694140613079071, ...
func (pq *ParticipantQuery) All(ctx context.Context) ([]*Participant, error) { if err := pq.prepareQuery(ctx); err != nil { return nil, err } return pq.sqlAll(ctx) }
[ 0.1500987410545349, -1.290867567062378, 0.30748602747917175, 0.28543344140052795, 0.5265458226203918, 0.9250484108924866, -0.8582442402839661, 0.9584445953369141, 0.1343921422958374, 0.36152219772338867, 0.5426197648048401, 0.5601300597190857, -0.5862592458724976, 0.14149321615695953, -0...
func (pq *ParticipantQuery) AllX(ctx context.Context) []*Participant { nodes, err := pq.All(ctx) if err != nil { panic(err) } return nodes }
[ -0.02243940532207489, 0.14530879259109497, 0.2665003538131714, 0.3708204925060272, -0.3667597770690918, 0.8526893854141235, -1.289628505706787, 0.6966692805290222, 1.3267805576324463, 0.5284996628761292, 0.8695594072341919, 0.4546121656894684, -0.44630879163742065, -0.8223037719726562, -...
func (pq *ParticipantQuery) IDs(ctx context.Context) ([]string, error) { var ids []string if err := pq.Select(participant.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil }
[ -0.3986956477165222, -0.3694199323654175, 0.07894705981016159, -0.4892891049385071, -0.027070987969636917, -0.10346484184265137, -0.9163976907730103, 0.012915960513055325, 0.5434245467185974, 0.5336186289787292, 0.6149209141731262, -0.3260989189147949, -1.10114324092865, -1.080525517463684...
func (pq *ParticipantQuery) IDsX(ctx context.Context) []string { ids, err := pq.IDs(ctx) if err != nil { panic(err) } return ids }
[ -0.566344678401947, 0.018759485334157944, 0.19274547696113586, 0.08984898030757904, -0.40164071321487427, 0.36500510573387146, -1.5346506834030151, 0.2180030792951584, 1.226007103919983, 0.7962588667869568, 0.1311318278312683, -0.19786344468593597, -0.6212857961654663, -1.384234070777893, ...
func (pq *ParticipantQuery) Count(ctx context.Context) (int, error) { if err := pq.prepareQuery(ctx); err != nil { return 0, err } return pq.sqlCount(ctx) }
[ 0.21739356219768524, -0.4465419054031372, 0.638282060623169, -0.10121855139732361, -0.36506617069244385, -0.013665461912751198, -0.09269211441278458, 0.32638227939605713, -0.26734936237335205, 0.47303417325019836, 0.39800989627838135, -0.640134871006012, -0.6619214415550232, 0.130039468407...
func (pq *ParticipantQuery) CountX(ctx context.Context) int { count, err := pq.Count(ctx) if err != nil { panic(err) } return count }
[ -0.06449204683303833, 0.13405390083789825, 0.5359359979629517, 0.013127285987138748, -0.3683567941188812, 1.0970022678375244, -0.6276218891143799, 0.4790295362472534, 0.4529331922531128, 0.2958035171031952, -0.016782183200120926, -0.25277671217918396, -0.33364009857177734, -0.5278383493423...
func (pq *ParticipantQuery) Exist(ctx context.Context) (bool, error) { if err := pq.prepareQuery(ctx); err != nil { return false, err } return pq.sqlExist(ctx) }
[ -0.29754871129989624, -0.6720370650291443, 0.7757641077041626, -0.13759790360927582, 0.21241764724254608, 0.6489284634590149, -0.3568309545516968, 0.427346408367157, -0.36854442954063416, 1.3957690000534058, 0.9123526811599731, -1.3078091144561768, -1.1120859384536743, 0.22847869992256165,...
func (pq *ParticipantQuery) ExistX(ctx context.Context) bool { exist, err := pq.Exist(ctx) if err != nil { panic(err) } return exist }
[ -0.5336130857467651, 0.08435988426208496, 0.8207587003707886, -0.2871493995189667, 0.07051536440849304, 1.5623974800109863, -0.8401525616645813, 0.39640042185783386, 0.2390819936990738, 1.3684169054031372, 0.1454187035560608, -0.7396699786186218, -0.9391705393791199, -0.47656476497650146, ...
func (pq *ParticipantQuery) Clone() *ParticipantQuery { return &ParticipantQuery{ config: pq.config, limit: pq.limit, offset: pq.offset, order: append([]OrderFunc{}, pq.order...), unique: append([]string{}, pq.unique...), predicates: append([]predicate.Participant{}, pq.predicates...)...
[ 0.2601856291294098, -1.1118817329406738, 0.6490302085876465, 0.055140040814876556, -1.0574147701263428, 0.8261330127716064, -0.03550281003117561, 0.17116425931453705, 0.01696709729731083, 0.4988211691379547, 0.692908525466919, 0.3311748802661896, -0.700678825378418, -0.9212325215339661, ...
func (pq *ParticipantQuery) WithData(opts ...func(*DatumQuery)) *ParticipantQuery { query := &DatumQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withData = query return pq }
[ -0.01257129106670618, -0.5090299844741821, 0.3758842945098877, -0.4354817569255829, -0.1524270921945572, 0.7219372987747192, 0.10027609765529633, 0.5566019415855408, 0.6612449288368225, -0.6976938247680664, 0.682447612285614, -0.022898342460393906, -0.11033650487661362, -0.5611991286277771...
func (pq *ParticipantQuery) WithProviderIDs(opts ...func(*ProviderIDQuery)) *ParticipantQuery { query := &ProviderIDQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withProviderIDs = query return pq }
[ -0.41915661096572876, -0.6069470643997192, 0.15716202557086945, -0.3883110582828522, -0.5184015035629272, -0.013469446450471878, -0.36012694239616394, 0.5183528065681458, 0.8497872948646545, 0.5046663880348206, 1.3077595233917236, 0.22321082651615143, -0.9414507746696472, -0.05509887263178...
func (pq *ParticipantQuery) WithParticipations(opts ...func(*ParticipationQuery)) *ParticipantQuery { query := &ParticipationQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withParticipations = query return pq }
[ 0.3289966583251953, 0.3441420793533325, 0.5271385312080383, -0.16209350526332855, -0.022719603031873703, -0.4644722044467926, 0.1961567997932434, -0.23841410875320435, 0.7776354551315308, -0.12616343796253204, 0.5716847777366638, -1.208786964416504, -0.5944928526878357, -0.1931166052818298...
func (pq *ParticipantQuery) WithCreatedBy(opts ...func(*StepRunQuery)) *ParticipantQuery { query := &StepRunQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withCreatedBy = query return pq }
[ 0.5867899656295776, -0.44767409563064575, 0.3438315689563751, 0.841217577457428, -0.041581202298402786, -0.003274170681834221, 0.2475418597459793, 0.35054561495780945, -0.41561949253082275, -0.345601350069046, 0.5053542256355286, -0.8732495307922363, -0.21519368886947632, 0.174972534179687...
func (pq *ParticipantQuery) WithSteps(opts ...func(*StepRunQuery)) *ParticipantQuery { query := &StepRunQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withSteps = query return pq }
[ 0.3173352777957916, 0.19294114410877228, 0.37437042593955994, 0.04988563805818558, -0.4195312261581421, 0.03935873135924339, -0.5484596490859985, -0.022462304681539536, 0.2632911503314972, -0.8802592754364014, 1.0074577331542969, -1.0370306968688965, -0.3128332793712616, -0.289645314216613...
func (pq *ParticipantQuery) WithProjects(opts ...func(*ProjectQuery)) *ParticipantQuery { query := &ProjectQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withProjects = query return pq }
[ -0.09036390483379364, 0.6069638133049011, 0.47829729318618774, -0.3684605360031128, -0.5154820680618286, 0.3866541385650635, -0.36882874369621277, -0.378772109746933, 0.719120979309082, -0.3216010332107544, 0.8010886907577515, -0.5124208331108093, -0.9804352521896362, -0.7888674736022949, ...
func (pq *ParticipantQuery) WithImportedBy(opts ...func(*AdminQuery)) *ParticipantQuery { query := &AdminQuery{config: pq.config} for _, opt := range opts { opt(query) } pq.withImportedBy = query return pq }
[ 0.5546194911003113, 0.1327064037322998, 0.4447753131389618, 0.0403655581176281, -0.6014912128448486, 0.18386825919151306, -0.05949483811855316, -0.4133197069168091, 0.7627504467964172, 0.833066463470459, 0.1597190797328949, -0.65422123670578, -0.791214108467102, 0.0670580118894577, -0.35...
func (pgb *ParticipantGroupBy) Aggregate(fns ...AggregateFunc) *ParticipantGroupBy { pgb.fns = append(pgb.fns, fns...) return pgb }
[ -0.6444603800773621, 0.5631117820739746, 0.5302839875221252, 0.591929018497467, 0.7023937106132507, 0.04478488489985466, -0.015174174681305885, -0.004374269396066666, -0.7117517590522766, -0.5838840007781982, -0.030501188710331917, -0.055023062974214554, -1.445328950881958, -0.285254687070...
func (pgb *ParticipantGroupBy) Scan(ctx context.Context, v interface{}) error { query, err := pgb.path(ctx) if err != nil { return err } pgb.sql = query return pgb.sqlScan(ctx, v) }
[ -0.8016859292984009, 0.15920697152614594, 0.31345194578170776, 0.6841936707496643, -0.8448508977890015, -0.02270953357219696, 0.47163766622543335, -0.4152282476425171, -0.8384461998939514, -0.05559377372264862, 0.6626994609832764, -0.040603119879961014, -1.0110294818878174, -0.590434908866...
func (pgb *ParticipantGroupBy) ScanX(ctx context.Context, v interface{}) { if err := pgb.Scan(ctx, v); err != nil { panic(err) } }
[ -1.0548450946807861, 0.7495261430740356, 0.3650897443294525, 0.9403824806213379, -1.2832785844802856, 0.6528732180595398, -0.7342680096626282, -0.618951141834259, 0.5348283648490906, 0.35407713055610657, -0.03254551440477371, 0.4060419797897339, -1.0192068815231323, -0.3308470547199249, ...
func (pgb *ParticipantGroupBy) Strings(ctx context.Context) ([]string, error) { if len(pgb.fields) > 1 { return nil, errors.New("ent: ParticipantGroupBy.Strings is not achievable when grouping more than 1 field") } var v []string if err := pgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.5175557732582092, -0.02932337298989296, 0.23438158631324768, -0.28749099373817444, 0.12757079303264618, 0.5055463910102844, 0.3670012056827545, -1.1030844449996948, -0.28272417187690735, 0.2991951107978821, 0.803804337978363, 0.18972136080265045, -1.6804983615875244, -0.3763353824615478...
func (pgb *ParticipantGroupBy) StringsX(ctx context.Context) []string { v, err := pgb.Strings(ctx) if err != nil { panic(err) } return v }
[ -0.23604926466941833, -0.169534370303154, 0.43302175402641296, 0.3578738570213318, -0.723664402961731, 1.0247479677200317, -0.7940958142280579, -1.1049538850784302, 0.27023711800575256, 0.9424669742584229, 0.7836099863052368, 0.9645183682441711, -1.362108826637268, -0.6969600319862366, -...
func (pgb *ParticipantGroupBy) String(ctx context.Context) (_ string, err error) { var v []string if v, err = pgb.Strings(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantGroupBy.Strings returne...
[ 0.007058151066303253, -0.7043220400810242, 0.3185756802558899, -0.3124205768108368, 0.08497381210327148, 0.26732492446899414, 0.9879390001296997, -1.126652479171753, -0.44127529859542847, 0.691768229007721, 1.017194390296936, 0.11739170551300049, -1.218466877937317, -0.9008252620697021, ...
func (pgb *ParticipantGroupBy) StringX(ctx context.Context) string { v, err := pgb.String(ctx) if err != nil { panic(err) } return v }
[ -0.23325121402740479, -0.2690296471118927, 0.3805578052997589, 0.47632747888565063, -1.2157140970230103, 1.1430691480636597, -0.4594882130622864, -0.9774588346481323, -0.039311546832323074, 0.8333253264427185, 0.6055893898010254, 0.639172375202179, -1.3263705968856812, -1.1655497550964355,...
func (pgb *ParticipantGroupBy) Ints(ctx context.Context) ([]int, error) { if len(pgb.fields) > 1 { return nil, errors.New("ent: ParticipantGroupBy.Ints is not achievable when grouping more than 1 field") } var v []int if err := pgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.8394812941551208, 0.3163723647594452, 0.5179610848426819, -0.12914808094501495, -0.3141527473926544, -0.14977119863033295, 0.05115119367837906, -0.4719436764717102, -0.4751928746700287, 0.20402468740940094, 0.5830938816070557, 0.4066075086593628, -1.470947504043579, -0.7672114968299866,...
func (pgb *ParticipantGroupBy) IntsX(ctx context.Context) []int { v, err := pgb.Ints(ctx) if err != nil { panic(err) } return v }
[ -0.646874725818634, 0.6992312073707581, 0.4193709194660187, 0.4547930657863617, -0.7141806483268738, 0.16950227320194244, -0.7405973672866821, -0.09372422099113464, 0.09377667307853699, 0.5155141353607178, 0.0427396222949028, 0.20233164727687836, -1.3500629663467407, -1.083060622215271, ...
func (pgb *ParticipantGroupBy) Int(ctx context.Context) (_ int, err error) { var v []int if v, err = pgb.Ints(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantGroupBy.Ints returned %d results wh...
[ -0.32174551486968994, -0.04357166588306427, 0.5001709461212158, -0.7395626902580261, 0.0005941751296631992, 0.1334478110074997, 0.4667588770389557, -0.4141555428504944, -1.0994079113006592, 0.4605800211429596, 0.9390527009963989, -0.03532686084508896, -0.9401818513870239, -0.45736628770828...
func (pgb *ParticipantGroupBy) IntX(ctx context.Context) int { v, err := pgb.Int(ctx) if err != nil { panic(err) } return v }
[ -0.1056022047996521, 0.5652386546134949, 0.4738348722457886, 0.0573296844959259, -0.9622626900672913, 0.8475862145423889, -0.26696595549583435, -0.09999236464500427, -0.39053913950920105, 0.17200464010238647, 0.544364333152771, 0.19252879917621613, -1.3307135105133057, -1.037941336631775, ...
func (pgb *ParticipantGroupBy) Float64s(ctx context.Context) ([]float64, error) { if len(pgb.fields) > 1 { return nil, errors.New("ent: ParticipantGroupBy.Float64s is not achievable when grouping more than 1 field") } var v []float64 if err := pgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.638704776763916, 0.33243778347969055, 0.36360135674476624, 0.2545095980167389, 0.08654908090829849, -0.44067972898483276, -0.11854255199432373, -0.7146813869476318, -0.04054825380444527, 0.17920848727226257, 0.47121113538742065, 0.2292391061782837, -1.2973251342773438, 0.043128777295351...
func (pgb *ParticipantGroupBy) Float64sX(ctx context.Context) []float64 { v, err := pgb.Float64s(ctx) if err != nil { panic(err) } return v }
[ -0.3271140456199646, 0.3383115231990814, 0.1688402146100998, 0.9323866367340088, -0.3227299153804779, -0.31401482224464417, -1.0338751077651978, -0.19432659447193146, 0.29244667291641235, 0.34272828698158264, 0.2087557166814804, -0.06814883649349213, -0.9409241080284119, -0.258563965559005...
func (pgb *ParticipantGroupBy) Float64(ctx context.Context) (_ float64, err error) { var v []float64 if v, err = pgb.Float64s(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantGroupBy.Float64s re...
[ -0.552638053894043, -0.004823407158255577, 0.4428134560585022, 0.5565922856330872, 0.7949315309524536, -0.5123258829116821, 0.41315901279449463, -0.4988422691822052, -0.253244549036026, 0.1669011116027832, 1.0823314189910889, -0.43835094571113586, -1.2653495073318481, 0.08055851608514786, ...
func (pgb *ParticipantGroupBy) Float64X(ctx context.Context) float64 { v, err := pgb.Float64(ctx) if err != nil { panic(err) } return v }
[ -0.2366103231906891, 0.4094984531402588, 0.2478329837322235, 0.6343122124671936, -0.6461455225944519, 0.09965547919273376, -0.44029131531715393, -0.4977351725101471, -0.09984355419874191, -0.04908991605043411, 0.4113592505455017, -0.39367446303367615, -1.000470757484436, -0.191818565130233...
func (pgb *ParticipantGroupBy) Bools(ctx context.Context) ([]bool, error) { if len(pgb.fields) > 1 { return nil, errors.New("ent: ParticipantGroupBy.Bools is not achievable when grouping more than 1 field") } var v []bool if err := pgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.7942731380462646, 0.5079261064529419, 0.5181859731674194, -0.18001602590084076, 0.15686966478824615, 0.3864046633243561, -0.12224966287612915, -0.13324666023254395, -0.6631587743759155, 0.14886826276779175, 0.7226491570472717, 0.10591486841440201, -0.9037124514579773, -0.826774597167968...
func (pgb *ParticipantGroupBy) BoolsX(ctx context.Context) []bool { v, err := pgb.Bools(ctx) if err != nil { panic(err) } return v }
[ -0.2969152629375458, 0.18766570091247559, 0.5993794202804565, 0.558339536190033, -0.9643968343734741, 0.5610678195953369, -1.007020354270935, -0.0863933339715004, -0.2316754311323166, 0.6967860460281372, 0.07448369264602661, 0.19686511158943176, -0.5028932690620422, -0.8885125517845154, ...
func (pgb *ParticipantGroupBy) Bool(ctx context.Context) (_ bool, err error) { var v []bool if v, err = pgb.Bools(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantGroupBy.Bools returned %d resul...
[ -0.2538701891899109, -0.148121640086174, 0.5718632936477661, 0.10484696924686432, 0.5162621140480042, 0.5115821361541748, 0.6635653376579285, 0.39836424589157104, -0.6429269313812256, 0.557425320148468, 0.7068939805030823, -0.12033894658088684, -0.7309772372245789, -0.9132938981056213, 0...
func (pgb *ParticipantGroupBy) BoolX(ctx context.Context) bool { v, err := pgb.Bool(ctx) if err != nil { panic(err) } return v }
[ 0.12747453153133392, 0.11065483838319778, 0.6081381440162659, 0.10592453181743622, -0.8824986815452576, 1.3090049028396606, -0.5052644610404968, 0.18583758175373077, -0.26156726479530334, 0.5189085006713867, 0.003336377441883087, -0.0021631999406963587, -0.8041768670082092, -1.263241171836...
func (ps *ParticipantSelect) Scan(ctx context.Context, v interface{}) error { query, err := ps.path(ctx) if err != nil { return err } ps.sql = query return ps.sqlScan(ctx, v) }
[ -0.6252247095108032, -0.3381252884864807, 0.1577865481376648, 0.3353956937789917, -0.5301557779312134, -0.11421459168195724, -0.10924042016267776, -0.07680117338895798, 0.34920263290405273, -0.33148515224456787, 0.5806971192359924, 0.34704238176345825, -0.6135956645011902, -0.8635504841804...
func (ps *ParticipantSelect) ScanX(ctx context.Context, v interface{}) { if err := ps.Scan(ctx, v); err != nil { panic(err) } }
[ -0.9883810877799988, 0.27964678406715393, 0.21629592776298523, 0.6994059681892395, -0.9193770885467529, 0.549869954586029, -1.0117309093475342, -0.43771642446517944, 1.4947057962417603, 0.24849341809749603, -0.21222072839736938, 0.575185239315033, -0.669536828994751, -0.6161068081855774, ...
func (ps *ParticipantSelect) Strings(ctx context.Context) ([]string, error) { if len(ps.fields) > 1 { return nil, errors.New("ent: ParticipantSelect.Strings is not achievable when selecting more than 1 field") } var v []string if err := ps.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.725997805595398, -0.3938056230545044, 0.17269037663936615, -0.4026448428630829, 0.401134729385376, 0.3289537727832794, -0.06920246034860611, -0.8671175241470337, 0.5067455768585205, 0.1892140507698059, 0.47395601868629456, 0.16920731961727142, -1.480053186416626, -0.5788829922676086, ...
func (ps *ParticipantSelect) StringsX(ctx context.Context) []string { v, err := ps.Strings(ctx) if err != nil { panic(err) } return v }
[ -0.3390212655067444, -0.5668228268623352, 0.3167608380317688, 0.22583161294460297, -0.3355708718299866, 0.8384328484535217, -1.1008952856063843, -1.1890264749526978, 1.2782834768295288, 0.9805120825767517, 0.5996350049972534, 1.0143896341323853, -1.1139521598815918, -0.8621205687522888, ...
func (ps *ParticipantSelect) String(ctx context.Context) (_ string, err error) { var v []string if v, err = ps.Strings(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantSelect.Strings returned %d...
[ -0.22173649072647095, -1.0670565366744995, 0.19879090785980225, -0.7010056972503662, 0.4853810667991638, 0.11635417491197586, 0.5802024006843567, -0.9488934874534607, 0.49054470658302307, 0.5086104273796082, 0.7845381498336792, 0.2990128993988037, -0.9509615302085876, -1.201672077178955, ...
func (ps *ParticipantSelect) StringX(ctx context.Context) string { v, err := ps.String(ctx) if err != nil { panic(err) } return v }
[ -0.3793191909790039, -0.7779160737991333, 0.22936661541461945, 0.26075300574302673, -0.8190072178840637, 0.9951575994491577, -0.8452318906784058, -0.9962881207466125, 1.1619118452072144, 0.70241379737854, 0.4802064895629883, 0.8686591982841492, -0.9067028760910034, -1.559326171875, 0.450...
func (ps *ParticipantSelect) Ints(ctx context.Context) ([]int, error) { if len(ps.fields) > 1 { return nil, errors.New("ent: ParticipantSelect.Ints is not achievable when selecting more than 1 field") } var v []int if err := ps.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.9981985092163086, -0.20894871652126312, 0.39662423729896545, -0.29378458857536316, -0.06922782957553864, -0.4647923409938812, -0.42606228590011597, -0.4544855058193207, 0.2574027478694916, 0.12566469609737396, 0.1847538948059082, 0.5125846266746521, -1.2722684144973755, -1.0303518772125...
func (ps *ParticipantSelect) IntsX(ctx context.Context) []int { v, err := ps.Ints(ctx) if err != nil { panic(err) } return v }
[ -0.7207274436950684, 0.1665148288011551, 0.3238722085952759, 0.23882651329040527, -0.5436049103736877, 0.0298604816198349, -1.19590425491333, -0.29885950684547424, 0.9678486585617065, 0.617577075958252, -0.22266508638858795, 0.4059804081916809, -1.1683316230773926, -1.3724098205566406, 0...
func (ps *ParticipantSelect) Int(ctx context.Context) (_ int, err error) { var v []int if v, err = ps.Ints(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantSelect.Ints returned %d results when o...
[ -0.672873318195343, -0.4919152557849884, 0.3259677588939667, -1.0209921598434448, 0.2365555316209793, -0.18959477543830872, 0.04639342054724693, -0.364459753036499, -0.11448244005441666, 0.44455960392951965, 0.6799488663673401, 0.1461079865694046, -0.6724900603294373, -0.8012943863868713, ...
func (ps *ParticipantSelect) IntX(ctx context.Context) int { v, err := ps.Int(ctx) if err != nil { panic(err) } return v }
[ -0.13644756376743317, -0.18584322929382324, 0.34424224495887756, -0.17181433737277985, -0.7041733860969543, 0.6683174967765808, -0.6277956962585449, -0.07579595595598221, 0.701456606388092, 0.13620179891586304, 0.34407997131347656, 0.3580855429172516, -1.0256959199905396, -1.50528073310852...
func (ps *ParticipantSelect) Float64s(ctx context.Context) ([]float64, error) { if len(ps.fields) > 1 { return nil, errors.New("ent: ParticipantSelect.Float64s is not achievable when selecting more than 1 field") } var v []float64 if err := ps.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.7792221903800964, -0.031901050359010696, 0.40769290924072266, 0.14791281521320343, 0.2793494164943695, -0.6515616774559021, -0.4408673346042633, -0.7352350354194641, 0.5382269024848938, 0.1250557154417038, 0.030454987660050392, 0.41617825627326965, -1.144465684890747, -0.290462911128997...
func (ps *ParticipantSelect) Float64sX(ctx context.Context) []float64 { v, err := ps.Float64s(ctx) if err != nil { panic(err) } return v }
[ -0.28850722312927246, -0.0063483756966888905, 0.14605799317359924, 0.8840569853782654, -0.06356720626354218, -0.47187209129333496, -1.227845311164856, -0.26018810272216797, 0.9393563866615295, 0.3616226613521576, -0.0543559305369854, 0.1553225815296173, -0.8965104222297668, -0.526620626449...
func (ps *ParticipantSelect) Float64(ctx context.Context) (_ float64, err error) { var v []float64 if v, err = ps.Float64s(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantSelect.Float64s return...
[ -0.7948855757713318, -0.2865511476993561, 0.4301745891571045, 0.3373992145061493, 1.1113536357879639, -0.8432807922363281, 0.22992940247058868, -0.46794450283050537, 0.5287572741508484, 0.10078387707471848, 0.8096708059310913, -0.17149744927883148, -1.040319800376892, -0.31898221373558044,...
func (ps *ParticipantSelect) Float64X(ctx context.Context) float64 { v, err := ps.Float64(ctx) if err != nil { panic(err) } return v }
[ -0.2526336908340454, -0.002605833113193512, 0.196029394865036, 0.5516409873962402, -0.2327452450990677, -0.056275270879268646, -0.559352457523346, -0.5745919942855835, 0.7345699071884155, -0.11563794314861298, 0.1862512081861496, -0.13023580610752106, -0.9456404447555542, -0.66633290052413...
func (ps *ParticipantSelect) Bools(ctx context.Context) ([]bool, error) { if len(ps.fields) > 1 { return nil, errors.New("ent: ParticipantSelect.Bools is not achievable when selecting more than 1 field") } var v []bool if err := ps.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.9627208709716797, 0.03297986835241318, 0.38707175850868225, -0.2945330739021301, 0.42046263813972473, 0.0502750463783741, -0.5538772344589233, -0.14045444130897522, 0.19631479680538177, 0.045276325196027756, 0.38284894824028015, 0.1625634729862213, -0.7004832029342651, -1.12887048721313...
func (ps *ParticipantSelect) BoolsX(ctx context.Context) []bool { v, err := ps.Bools(ctx) if err != nil { panic(err) } return v }
[ -0.20917893946170807, -0.2101040929555893, 0.42027148604393005, 0.41508033871650696, -0.7111927270889282, 0.3875519037246704, -1.4085736274719238, -0.16374340653419495, 0.6085047721862793, 0.8080989718437195, -0.15885525941848755, 0.338870644569397, -0.38097211718559265, -1.178066253662109...
func (ps *ParticipantSelect) Bool(ctx context.Context) (_ bool, err error) { var v []bool if v, err = ps.Bools(ctx); err != nil { return } switch len(v) { case 1: return v[0], nil case 0: err = &NotFoundError{participant.Label} default: err = fmt.Errorf("ent: ParticipantSelect.Bools returned %d results w...
[ -0.47246503829956055, -0.5172317028045654, 0.3370856046676636, -0.17208948731422424, 0.9192739725112915, 0.24148471653461456, 0.2048025280237198, 0.39029261469841003, 0.33891189098358154, 0.5693579912185669, 0.5331854820251465, 0.07354684919118881, -0.46758151054382324, -1.2781777381896973...
func (ps *ParticipantSelect) BoolX(ctx context.Context) bool { v, err := ps.Bool(ctx) if err != nil { panic(err) } return v }
[ 0.1435718983411789, -0.36141982674598694, 0.4184139370918274, -0.046212825924158096, -0.4817456305027008, 1.2150747776031494, -0.9398232102394104, 0.1753513067960739, 0.7412059307098389, 0.523815393447876, -0.14382247626781464, 0.18449445068836212, -0.5984839200973511, -1.7135899066925049,...
func GetVolumeSize(log *base.LogObject, name string) (uint64, uint64, string, bool, error) { info, err := os.Stat(name) if err != nil { errStr := fmt.Sprintf("GetVolumeSize failed for %s: %v", name, err) return 0, 0, "", false, errors.New(errStr) } if info.IsDir() { // Assume this is a container size, er...
[ -0.7058212757110596, -0.5452088713645935, 0.9064544439315796, 0.012969672679901123, -0.07000501453876495, -0.8557220101356506, 0.05070558562874794, -0.573188304901123, -0.2410135120153427, 0.5461056232452393, -0.41338446736335754, -0.35427916049957275, 0.0749906599521637, 1.151660561561584...
func (s *HTTPStatus) Status(w http.ResponseWriter, r *http.Request) { if err := json.NewEncoder(w).Encode(s); err != nil { log.Error("Failed to encode status", zap.Error(err), zap.Any("status", *s)) } }
[ -0.5112143158912659, -1.5191419124603271, 0.24603687226772308, 0.3700568377971649, -0.4418700337409973, -0.10300841182470322, -0.29724302887916565, -0.03305874392390251, 0.11973052471876144, 0.03931284695863724, -0.5812240242958069, 0.5961237549781799, 0.16168531775474548, 0.77538043260574...
func (_m *ArticleUsecase) Create(_a0 context.Context, _a1 *domain.Article) error { ret := _m.Called(_a0, _a1) var r0 error if rf, ok := ret.Get(0).(func(context.Context, *domain.Article) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) } return r0 }
[ 0.0089808264747262, -0.22393447160720825, 0.07698693126440048, -0.5673943161964417, 0.45528075098991394, 0.08172810822725296, 0.5411072373390198, 0.03785187751054764, -0.7998447418212891, 0.4552805721759796, 0.3466537296772003, -0.49405530095100403, 0.2553226053714752, 0.4465925693511963, ...
func (_m *ArticleUsecase) GetArticles(ctx context.Context, author string, query string) ([]domain.Article, error) { ret := _m.Called(ctx, author, query) var r0 []domain.Article if rf, ok := ret.Get(0).(func(context.Context, string, string) []domain.Article); ok { r0 = rf(ctx, author, query) } else { if ret.Get...
[ -0.3603650629520416, -0.10083035379648209, 0.5600711107254028, 0.3908631503582001, 0.24147512018680573, -0.010077468119561672, 0.6534208059310913, 0.09020423889160156, 0.7188882231712341, -0.2541574239730835, 0.3908032774925232, -0.2273329347372055, 0.12943166494369507, -0.2161824107170105...
func Diff(opts *CommandOptions, diffOpts DiffOptions) (int, error) { configPath := filepath.Join(opts.ConfigDir, opts.ConfigFile) if _, err := os.Stat(configPath); err != nil { return 0, err } cli := mdlib.NewClient( mdlib.WithBaseURL(opts.BaseURL), mdlib.WithHTTPClient(opts.HTTPClient), ) mdProcessor := ...
[ -0.10955993086099625, -0.13429638743400574, 1.0117281675338745, -0.7341774702072144, -0.1935340315103531, 0.03904924541711807, 0.7595705986022949, -0.34605857729911804, -0.4123213589191437, 0.2904786467552185, 0.07644727826118469, 0.6312757730484009, 0.389904648065567, 1.2936606407165527, ...
func CommandClone(oldAppName string, newAppName string, skipDeploy bool, ignoreExisting bool) error { if oldAppName == "" { return errors.New("Please specify an app to run the command on") } if newAppName == "" { return errors.New("Please specify an new app name") } if err := common.VerifyAppName(oldAppName)...
[ 0.16275052726268768, -0.5294936895370483, 1.1143001317977905, 1.0307228565216064, 0.3703842759132385, 0.38485226035118103, -0.11500823497772217, -0.31533318758010864, 0.26738762855529785, 1.2189538478851318, 0.2240733802318573, -0.0921705886721611, -0.33309686183929443, 0.306112676858902, ...
func CommandCreate(appName string) error { if err := common.IsValidAppName(appName); err != nil { return err } return createApp(appName) }
[ 0.5259324908256531, -0.08107084780931473, 0.7192662954330444, 1.270664930343628, 0.8161113262176514, 1.4849932193756104, -0.8113216161727905, -0.766193151473999, 0.23906008899211884, 0.4610888361930847, 0.7380051612854004, -0.29785239696502686, -0.1731070578098297, 0.42135149240493774, -...
func CommandDestroy(appName string, force bool) error { if err := common.VerifyAppName(appName); err != nil { return err } if force { os.Setenv("DOKKU_APPS_FORCE_DELETE", "1") } return destroyApp(appName) }
[ -0.12230172753334045, 0.4986511766910553, 0.5671225190162659, 1.0305753946304321, 1.136749505996704, 0.5999137759208679, -0.4436398148536682, 0.17883040010929108, 0.40573129057884216, 0.8117911219596863, 0.6066113114356995, 0.2755378484725952, -0.38922712206840515, 1.0633025169372559, -0...
func CommandExists(appName string) error { return appExists(appName) }
[ -0.20810864865779877, -0.8699815273284912, 0.46696218848228455, 1.044421672821045, 1.3960978984832764, 0.6804531812667847, -1.1642251014709473, -0.022609315812587738, 0.6137912273406982, 0.57982337474823, 0.019951412454247475, 0.13901303708553314, 0.2932274341583252, 0.7415774464607239, ...
func CommandList() error { common.LogInfo2Quiet("My Apps") apps, err := common.DokkuApps() if err != nil { common.LogWarn(err.Error()) return nil } for _, appName := range apps { common.Log(appName) } return nil }
[ 0.0342460535466671, -0.6204157471656799, 0.5609679222106934, 1.2627146244049072, 0.7063599228858948, 0.05502602830529213, -0.0411219522356987, 0.19635790586471558, 0.0063881585374474525, 0.3604235351085663, -0.2737307548522949, -0.09939740598201752, 0.24240070581436157, 1.0167508125305176,...
func CommandLock(appName string) error { if err := common.VerifyAppName(appName); err != nil { return err } lockfilePath := fmt.Sprintf("%v/.deploy.lock", common.AppRoot(appName)) if _, err := os.Create(lockfilePath); err != nil { return errors.New("Unable to create deploy lock") } common.LogInfo1("Deploy l...
[ 0.313449889421463, 0.10963277518749237, 0.9104874730110168, 0.2782711088657379, 1.449265480041504, 1.6209014654159546, 0.299341082572937, -0.44551506638526917, -0.033733174204826355, 0.12412337213754654, 0.9563870429992676, 0.3474327623844147, -0.1607769876718521, 0.2954351007938385, -0....
func CommandLocked(appName string) error { if err := common.VerifyAppName(appName); err != nil { return err } if appIsLocked(appName) { common.LogQuiet("Deploy lock exists") return nil } return errors.New("Deploy lock does not exist") }
[ 0.07296443730592728, -0.19151388108730316, 0.7006857395172119, 0.5578386187553406, 1.3372312784194946, 0.5636601448059082, 0.029437260702252388, -0.6853266358375549, 0.6248083710670471, 0.6222426891326904, 0.36154523491859436, 0.49385663866996765, -0.12673060595989227, 0.6911131739616394, ...
func CommandRename(oldAppName string, newAppName string, skipDeploy bool) error { if oldAppName == "" { return errors.New("Please specify an app to run the command on") } if newAppName == "" { return errors.New("Please specify an new app name") } if err := common.VerifyAppName(oldAppName); err != nil { ret...
[ -0.08890803903341293, -0.4722103774547577, 1.055185079574585, 0.6560834050178528, 0.429382860660553, -0.3793993592262268, -0.04517859220504761, -0.046058278530836105, 0.3967417776584625, 1.0885157585144043, 0.14246682822704315, -0.08730323612689972, -0.21895742416381836, 0.4734451770782470...
func CommandReport(appName string, format string, infoFlag string) error { if len(appName) == 0 { apps, err := common.DokkuApps() if err != nil { return err } for _, appName := range apps { if err := ReportSingleApp(appName, format, infoFlag); err != nil { return err } } return nil } return...
[ 0.22784309089183807, -0.057212378829717636, 0.6661936044692993, 1.1433162689208984, 1.2379521131515503, 0.5102019309997559, -0.2000843584537506, 0.49637144804000854, 0.35734105110168457, 0.01821710355579853, 0.8849714994430542, -0.37682217359542847, -0.8828133344650269, 1.0030940771102905,...
func CommandUnlock(appName string) error { if err := common.VerifyAppName(appName); err != nil { return err } lockfilePath := fmt.Sprintf("%v/.deploy.lock", common.AppRoot(appName)) if _, err := os.Stat(lockfilePath); !os.IsNotExist(err) { common.LogWarn("A deploy may be in progress.") common.LogWarn("Removi...
[ 0.09995399415493011, 0.14356441795825958, 0.8549178838729858, -0.145086869597435, 0.7889518737792969, 0.2924596071243286, 0.5288259387016296, 0.7561173439025879, -0.16159678995609283, 0.6955302357673645, 0.8799771070480347, 0.1455920785665512, -0.5537015795707703, -0.01087100151926279, 0...
func (s *Server) GetLeader() string { id := s.getLeaderID() if id == 0 { return "" } leader := s.rpcPeers[id-1] go s.BGsInfo[s.BGID].UpdateLeader(leader) logger.Debugf("server %v get leader %v, raft id %v", s.addr, leader, id) return leader }
[ -0.2385585904121399, -0.07359907031059265, 0.7491152882575989, 0.2516706883907318, 0.3286319971084595, -0.24980904161930084, -0.3160794973373413, -0.8947102427482605, 0.15123428404331207, 0.3081026077270508, -0.13106580078601837, 1.1125394105911255, -1.8940825462341309, 0.5209055542945862,...
func (s *Server) GetBGMembers() []string { leaders := make([]string, 0) for i := 0; i < s.BGsInfo[s.BGID].GetSuperLeafNum(); i++ { l := s.BGsInfo[s.BGID].GetLeader(i) if l == s.GetServerAddr() { continue } leaders = append(leaders, l) } return leaders }
[ -0.028575021773576736, -0.36575767397880554, 0.7685266733169556, 0.4469573199748993, 0.8184908032417297, -0.20682157576084137, -0.90323406457901, 0.24068163335323334, -0.1976224184036255, 0.16025693714618683, -0.5029449462890625, 1.6722776889801025, -2.0338058471679688, 1.5696823596954346,...
func (s *Server) GetConsensusStateByCycleId(cycleId int) *ConsensusState { s.logLock.Lock() defer s.logLock.Unlock() common.AssertTrue(cycleId >= 0, "cycleID cannot be negative!", logger) common.AssertTrue(cycleId > s.round2LastFinishedCycle-common.MaxCycleNumberInStorage, "Cannot access stale cycles!", logger) ...
[ -0.24307343363761902, -0.2524075210094452, 0.4559769332408905, -0.5599238276481628, -0.9539970755577087, -0.04629454389214516, 0.6461597084999084, -0.9850751757621765, 0.5046473741531372, 1.1264840364456177, 0.1692766398191452, 0.3068152070045471, -0.9809003472328186, 0.04628099501132965, ...
func (s *Server) CheckBGState(cycleId int, bgId int) bool { logger.Debugf("check bg state response for cycle %v bgId %v", cycleId, bgId) cs := s.GetConsensusStateByCycleId(cycleId) op := NewCheckBGStateOp(bgId, cs) if !cs.AddOPandWait(op) { logger.Fatal("Error: should return true") } logger.Debugf("state respo...
[ -0.19274818897247314, 0.1180926188826561, 0.6650146245956421, 0.10691338032484055, 0.00867711752653122, -0.14606502652168274, -0.008120791986584663, -0.73844313621521, -0.09308987855911255, 1.0716137886047363, -0.24949876964092255, 0.5137712955474854, -1.5375361442565918, 0.203922867774963...
func (s *Server) GetOrWaitBGStateResponse(stateRequest *pb.StateRequestMessage) *pb.StateResponseMessage { logger.Debugf("Get state response for cycle %v from server %v", stateRequest.CycleId, stateRequest.SenderId) cs := s.GetConsensusStateByCycleId(int(stateRequest.CycleId)) op := NewGetOrWaitBGStateResponseOp(...
[ -0.6894975900650024, 0.021239442750811577, 0.5015724897384644, -0.25571441650390625, 0.1285773515701294, -0.23160170018672943, 0.40484461188316345, -0.7937963604927063, 0.29669320583343506, 0.5823978781700134, 0.1599401980638504, 0.11295311897993088, -1.389655351638794, 0.28433653712272644...
func (s *Server) GetSelfBGInfo() *byzantineGroup.ByzantineGroup { return s.BGsInfo[s.BGID] }
[ 0.2543942332267761, 0.06521785259246826, 0.24952435493469238, 0.07536397874355316, -0.6519041061401367, -0.9652078747749329, 0.3311902582645416, -0.8665469288825989, -0.47354820370674133, -0.28972679376602173, -1.2930279970169067, 1.7857710123062134, -1.342899203300476, 1.0664253234863281,...
func (s *Server) AddBGState(sp *pb.StateResponseMessage) { logger.Debugf("Add state response for bg %v cycleId %v", sp.BgId, sp.CycleId) cs := s.GetConsensusStateByCycleId(int(sp.CycleId)) op := NewAddStateResponseOp(sp, cs) cs.AddOPandWait(op) for cycleID := s.round3LastFinishedCycle + 1; ; cycleID++ { if s....
[ 0.017474686726927757, 0.10161291062831879, 0.7087898850440979, -0.46692097187042236, 0.13952334225177765, 0.11265977472066879, 1.0483671426773071, -0.48744165897369385, 0.5007767677307129, 0.7107710838317871, -0.26216286420822144, 0.0743643045425415, -1.495242953300476, 0.6081283092498779,...
func (s *Server) CheckCycleComplete(cycleId int) bool { logger.Debugf("Check cycle complete cycleId %v", cycleId) cs := s.GetConsensusStateByCycleId(cycleId) op := NewCheckCycleCompleteOp(cs) if !cs.AddOPandWait(op) { logger.Fatal("Should return true check cycle complete") } return op.GetResult() }
[ -0.6532010436058044, 0.013192937709391117, 0.6768954396247864, 0.27002498507499695, -0.2112889140844345, -0.1299576461315155, 0.28718623518943787, -0.4406946897506714, 0.011808128096163273, 1.3902864456176758, -0.5557698607444763, -0.7254434823989868, -0.9674052000045776, 0.718906521797180...
func (s *Server) GetBGStateResponseForCycle(cycleId int) *pb.StateResponseMessage { logger.Debugf("get bg state response for cycle %v", cycleId) cs := s.GetConsensusStateByCycleId(cycleId) op := NewGetBGStateResponseOp(s.BGID, cs) if !cs.AddOPandWait(op) { logger.Fatal("should return true get bg state response"...
[ -0.19397549331188202, 0.11943641304969788, 0.4002469480037689, -0.4999907314777374, 0.3245047628879547, -0.5375913381576538, 0.7926903963088989, -1.1872527599334717, 0.21570105850696564, 0.524015486240387, -0.4268770217895508, -0.059732623398303986, -1.5839905738830566, 0.26607900857925415...
func (s *Server) GetCycleResult(cycleId int) []*pb.StateResponseMessage { logger.Debugf("Get cycle result for cycle %v", cycleId) if cycleId <= s.round2LastFinishedCycle-common.MaxCycleNumberInStorage { panic("name-removed: this cycle has been overwritten!") } cs := s.GetConsensusStateByCycleId(cycleId) common....
[ -0.4963701665401459, 0.5594168305397034, 0.8081510066986084, -0.2597203850746155, -0.07409895211458206, -0.4826817214488983, 0.8736233115196228, -1.0510426759719849, 0.32705870270729065, 0.13244196772575378, -0.6237545609474182, -0.5393757820129395, -0.7982460856437683, 0.39979851245880127...