text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (mr *MockOptionsMockRecorder) SetBlockDataExpiryAfterNotAccessedPeriod(period interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockDataExpiryAfterNotAccessedPeriod", reflect.TypeOf((*MockOptions)(nil).SetBlockDataExpiryAfterNotAccessedPeriod), period)...
[ 1.0418205261230469, 0.5473477840423584, 0.1161833181977272, -0.11434625834226608, -0.3226684629917145, 0.6973767280578613, -0.38679632544517517, -0.6468393802642822, 0.013167061842978, 0.2725355327129364, 0.20030584931373596, 0.7552880048751831, -0.7748764157295227, 0.7775510549545288, 0...
func (m *MockOptions) SetBlockSize(value time.Duration) Options { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetBlockSize", value) ret0, _ := ret[0].(Options) return ret0 }
[ -0.18574713170528412, 0.1969475895166397, 0.7743741273880005, 0.6457229852676392, 0.49093714356422424, -0.06325867027044296, 1.2097487449645996, -0.3218291699886322, -0.8823868036270142, 0.19821082055568695, -0.6870657801628113, -0.503681480884552, -0.9317685961723328, 1.5503556728363037, ...
func (mr *MockOptionsMockRecorder) SetBlockSize(value interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockSize", reflect.TypeOf((*MockOptions)(nil).SetBlockSize), value) }
[ -0.1867469698190689, 0.8673449158668518, 0.3238011598587036, 0.45826342701911926, -0.5409325361251831, -0.10850689560174942, 0.2588711082935333, -0.8256892561912537, 0.4930250346660614, 0.8523851633071899, 0.24516795575618744, 0.1410045623779297, -0.927552342414856, 1.6540606021881104, 0...
func (m *MockOptions) SetBufferFuture(value time.Duration) Options { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetBufferFuture", value) ret0, _ := ret[0].(Options) return ret0 }
[ 0.6722524762153625, -0.17317935824394226, 0.29650402069091797, -0.005376766435801983, 0.38697391748428345, 0.21262934803962708, 0.7858796119689941, -0.1655336618423462, -0.9423303008079529, -0.1835816353559494, -1.5990687608718872, -0.19249680638313293, -0.7324632406234741, 1.5948959589004...
func (mr *MockOptionsMockRecorder) SetBufferFuture(value interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBufferFuture", reflect.TypeOf((*MockOptions)(nil).SetBufferFuture), value) }
[ 0.5712923407554626, 0.8152782917022705, -0.16709060966968536, -0.03200720250606537, -0.24637103080749512, 0.06452641636133194, -0.31307628750801086, -0.6112866401672363, 0.2634269893169403, 0.2990565001964569, -0.9389289021492004, 0.4906449019908905, -0.5941309928894043, 1.592719554901123,...
func (m *MockOptions) SetBufferPast(value time.Duration) Options { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetBufferPast", value) ret0, _ := ret[0].(Options) return ret0 }
[ 0.15960802137851715, -0.524619460105896, 0.7018464803695679, -0.642147958278656, 0.2696908116340637, 0.6846257448196411, 0.9375685453414917, -1.1681349277496338, -0.6740601658821106, -0.018799398094415665, -0.7465522289276123, -0.7343232035636902, -1.0352388620376587, 1.1898373365402222, ...
func (mr *MockOptionsMockRecorder) SetBufferPast(value interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBufferPast", reflect.TypeOf((*MockOptions)(nil).SetBufferPast), value) }
[ 0.32488498091697693, 0.407906711101532, 0.2761804759502411, -0.6816665530204773, -0.4988821744918823, 0.7022340297698975, -0.22897426784038544, -1.6221261024475098, 0.3225674629211426, 0.2731647491455078, -0.3873268663883209, -0.055064842104911804, -1.2567713260650635, 1.2978498935699463, ...
func (m *MockOptions) SetFutureRetentionPeriod(value time.Duration) Options { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetFutureRetentionPeriod", value) ret0, _ := ret[0].(Options) return ret0 }
[ -0.170354425907135, 0.51833575963974, 0.33308765292167664, -0.5528364181518555, 0.7994171380996704, 0.39618149399757385, 0.973696768283844, -0.25164109468460083, -0.3909720182418823, 0.31106168031692505, -0.24851155281066895, -0.956066370010376, -0.8640862107276917, 0.5200710892677307, 1...
func (mr *MockOptionsMockRecorder) SetFutureRetentionPeriod(value interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFutureRetentionPeriod", reflect.TypeOf((*MockOptions)(nil).SetFutureRetentionPeriod), value) }
[ 0.24085000157356262, 0.9257588386535645, 0.05086922273039818, -0.04940284416079521, 0.18416835367679596, 0.2976396679878235, -0.13891679048538208, -0.31277093291282654, 0.2686091363430023, 0.47800832986831665, 0.5841473340988159, -0.14691908657550812, -0.9670147895812988, 0.485858917236328...
func (m *MockOptions) SetRetentionPeriod(value time.Duration) Options { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetRetentionPeriod", value) ret0, _ := ret[0].(Options) return ret0 }
[ 0.5637924671173096, -0.25635406374931335, 0.38839057087898254, -0.42372357845306396, 0.6823387145996094, 0.6013939380645752, 0.9533070921897888, -0.536374032497406, -0.556169867515564, 0.42163845896720886, -0.5275624394416809, -0.6986671090126038, -1.4496066570281982, 0.41277533769607544, ...
func (mr *MockOptionsMockRecorder) SetRetentionPeriod(value interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRetentionPeriod", reflect.TypeOf((*MockOptions)(nil).SetRetentionPeriod), value) }
[ 0.8147002458572388, 0.2999570369720459, 0.10188907384872437, 0.1653778851032257, -0.028185443952679634, 0.6199051141738892, 0.045562174171209335, -0.5697531700134277, 0.1963256448507309, 0.6524076461791992, 0.322171151638031, 0.13679581880569458, -1.516929268836975, 0.5802401304244995, 0...
func (m *MockOptions) Validate() error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Validate") ret0, _ := ret[0].(error) return ret0 }
[ -0.18607118725776672, 0.4262678325176239, 0.4688528776168823, 1.1618785858154297, 1.6059608459472656, -0.1819358617067337, 0.4355688691139221, -1.0199435949325562, -0.21281355619430542, -0.5317522287368774, 0.22074884176254272, -0.7619115710258484, -0.9419389367103577, 1.1004981994628906, ...
func (mr *MockOptionsMockRecorder) Validate() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate)) }
[ 0.3055143654346466, 0.9886752963066101, 0.5246348977088928, 0.959892749786377, 0.24672888219356537, 0.06111089140176773, -0.3668261468410492, -1.4958000183105469, 0.7731439471244812, 0.14710301160812378, 0.9837928414344788, 0.28009310364723206, -1.3486697673797607, 1.6308895349502563, -0...
func TotalBirdCount(birdsPerDay []int) int { total := 0 for _, n := range birdsPerDay { total += n } return total }
[ -0.10858853906393051, -0.14887571334838867, 0.4086640775203705, -0.18876893818378448, 0.7421130537986755, 0.7096439599990845, 0.5007415413856506, -0.06212441250681877, -0.33362752199172974, -0.19225895404815674, -0.01019796822220087, 0.8107993602752686, -0.5563029050827026, 0.2632543146610...
func BirdsInWeek(birdsPerDay []int, week int) int { index := (week - 1) * 7 days := birdsPerDay[index : index+7] return TotalBirdCount(days) }
[ -0.4009423851966858, 0.20132304728031158, 0.4289565980434418, -1.2199760675430298, -0.1048407331109047, -0.12869809567928314, 0.5141293406486511, 0.06639564037322998, -0.0462394617497921, -0.13905224204063416, -0.16500861942768097, 1.19343900680542, -0.7889273762702942, 0.21588127315044403...
func FixBirdCountLog(birdsPerDay []int) []int { for i, n := range birdsPerDay { if i%2 == 0 { birdsPerDay[i] = n + 1 } } return birdsPerDay }
[ -0.6865003108978271, -0.18200930953025818, 0.5063577890396118, 0.04475158452987671, 0.411423921585083, 0.7887851595878601, 0.026639973744750023, -0.20037375390529633, -0.8157365918159485, -0.2528717517852783, -0.23579485714435577, 0.9240115880966187, -0.30952370166778564, 1.153543710708618...
func (mdp mongoDeviceProfile) GetBSON() (interface{}, error) { // Get the commands from the device profile and turn them into DBRef objects var dbRefs []mgo.DBRef for _, command := range mdp.Commands { dbRefs = append(dbRefs, mgo.DBRef{Collection: db.Command, Id: command.Id}) } return struct { models.Describe...
[ -0.6532456278800964, 0.4884395897388458, 0.793877124786377, -0.2001287341117859, 0.3205276429653168, -0.17904065549373627, -0.009308049455285072, -0.9056874513626099, 0.5065189003944397, -0.5094225406646729, -0.16438160836696625, 0.17898166179656982, -0.8488655686378479, 0.4913584291934967...
func (mdp *mongoDeviceProfile) SetBSON(raw bson.Raw) error { decoded := new(struct { models.DescribedObject `bson:",inline"` Id bson.ObjectId `bson:"_id,omitempty"` Name string `bson:"name"` // Non-database identifier (must be unique) M...
[ -0.458013117313385, 0.4542466700077057, 0.8494897484779358, 0.047369226813316345, 0.2672922611236572, -0.32501912117004395, 0.4060312509536743, -0.20026376843452454, 0.4899778366088867, -0.3106885254383087, -0.11095327883958817, 0.671127438545227, -1.1419681310653687, 0.3856990337371826, ...
func (s Semaphore) P() { timer := time.NewTimer(semTimeout) defer timer.Stop() select { case s <- 1: case <-timer.C: panic(fmt.Sprintf("Timeout in Semaphore.P() after %v of waiting", semTimeout)) } }
[ 0.8826886415481567, 0.3103443682193756, 0.3974769413471222, 0.48316138982772827, -0.7043370008468628, 0.5898280739784241, -0.22456516325473785, 0.5236349701881409, 0.5597661137580872, 0.9210414290428162, 0.31503260135650635, -0.7278004288673401, -0.3555785119533539, 0.3564704656600952, 0...
func (s Semaphore) V() { timer := time.NewTimer(semTimeout) defer timer.Stop() select { case <-s: case <-timer.C: panic(fmt.Sprintf("Timeout in Semaphore.V() after %v of waiting", semTimeout)) } }
[ 0.8285884261131287, 0.04008357599377632, 0.0754442885518074, -0.07925475388765335, -0.5173750519752502, -0.0756056159734726, 0.16500316560268402, 0.5402175784111023, 0.6835384964942932, 1.0926204919815063, -0.34180691838264465, 0.5154320597648621, 0.36171531677246094, -0.15496547520160675,...
func HumanizeBytes(size uint64) string { suffix := []string{"B", "KB", "MB", "GB"} f := float64(size) var i int for i = 0; f >= 1024 && i < len(suffix); i++ { f = f / 1024 } if i == len(suffix) { i = i - 1 } return fmt.Sprintf("%.1f %s", f, suffix[i]) }
[ 0.248465895652771, 0.6925660967826843, 0.7889962792396545, -0.6638808846473694, -0.21486341953277588, -0.7558817267417908, -0.24668967723846436, 0.36908072233200073, -0.2055264413356781, 0.5475560426712036, 0.005860989913344383, 0.21931761503219604, -0.26132550835609436, 0.2024577409029007...
func RegisterHealthcheck(group *gin.RouterGroup) { healthcheckGroup := group.Group("/healthcheck") { healthcheckGroup.GET("/result/:operation_id", healthcheck.GetResultByOperationID) healthcheckGroup.POST("/check", healthcheck.Check) healthcheckGroup.POST("/check/host-info", healthcheck.CheckByHostInfo) healt...
[ -0.3094331622123718, 0.9544849395751953, 0.6128130555152893, 1.066664695739746, 1.6163957118988037, 0.19521260261535645, 0.2707573473453522, -0.2475905865430832, -1.088423728942871, -0.8071051836013794, 0.07957631349563599, 0.7411950826644897, 0.0012044302420690656, 1.1943106651306152, -...
func TestPrimarySQL_Process_AllNewData_Success(t *testing.T) { ctx := context.Background() db := sqltest.NewCockroachDBForTestsWithProductionSchema(ctx, t) validCommits := dks.Build().GitCommits require.NoError(t, sqltest.BulkInsertDataTables(ctx, db, schema.Tables{ GitCommits: validCommits, })) // This file h...
[ 1.3584468364715576, 0.239284485578537, 0.7193393111228943, -0.5164791345596313, 0.5488490462303162, 0.447418749332428, 0.3277587592601776, -0.13244399428367615, -0.5045197606086731, 0.024495795369148254, -1.0772954225540161, 0.2354319989681244, -0.3748968243598938, 0.49896422028541565, -...
func TestPrimarySQL_Process_MoreRecentData_ValuesAtHeadUpdated(t *testing.T) { ctx := context.Background() db := sqltest.NewCockroachDBForTestsWithProductionSchema(ctx, t) require.NoError(t, sqltest.BulkInsertDataTables(ctx, db, dks.Build())) const circleTraceKeys = `{"color mode":"RGB","device":"taimen","name":"c...
[ 0.5903489589691162, -0.012398348189890385, 0.6920933723449707, -0.5851688981056213, 0.01610417477786541, 0.3102821111679077, 0.07213177531957626, -0.8290181756019592, -0.4546045958995819, 0.06151442602276802, -0.16976870596408844, 0.3902475833892822, 0.23084738850593567, 0.6008666157722473...
func h(s string) []byte { hash := md5.Sum([]byte(s)) return hash[:] }
[ 0.0758008062839508, 0.23043197393417358, 0.34121575951576233, -0.10488058626651764, -0.759624719619751, 0.8780880570411682, -0.013685502111911774, 0.29778629541397095, 0.21708492934703827, 0.05215520039200783, -1.2591180801391602, 0.46865373849868774, -0.24947583675384521, -1.1151189804077...
func d(digest types.Digest) []byte { if len(digest) != 2*md5.Size { panic("digest wrong length " + string(digest)) } b, err := hex.DecodeString(string(digest)) if err != nil { panic(err) } return b }
[ -0.4874257743358612, 0.09339216351509094, 0.56546950340271, -0.04009950906038284, -1.0321223735809326, 0.3199102580547333, -0.27723515033721924, 0.23712757229804993, 0.11254235357046127, -0.975043535232544, 0.012807991355657578, 0.5160058736801147, 0.5897092819213867, 0.2601633071899414, ...
func makeDataForTileTests() schema.Tables { b := databuilder.TablesBuilder{TileWidth: 4} b.CommitsWithData(). Insert("0000000098", "user", "commit 98, expected tile 0", "2020-12-01T00:00:00Z"). Insert("0000000099", "user", "commit 99, expected tile 0", "2020-12-02T00:00:00Z"). Insert("0000000100", "user", "comm...
[ 0.5035637617111206, 0.1889067143201828, 0.9536177515983582, -0.7324050068855286, -0.09083253890275955, 0.4817601144313812, 1.2790031433105469, -0.04001838341355324, -0.15011782944202423, -0.6178158521652222, -0.5317326188087463, 0.34400424361228943, -0.3091467320919037, -0.0894859135150909...
func New(databaseConfig *Config, logger pgx.Logger) (*Repository, error) { postgresDataSource := fmt.Sprintf("postgres://%s:%s@%s/%s?sslmode=%s", databaseConfig.Username, databaseConfig.Password, databaseConfig.Hostname, databaseConfig.Name, databaseConfig.SSLMode) poolConfig, err := pgxpool.ParseConfig(pos...
[ -0.49824294447898865, -0.4654605984687805, 0.5210660696029663, -0.8614367842674255, -0.532917320728302, -0.1363581269979477, -0.4065570831298828, 0.37419670820236206, -0.600145161151886, 0.36627593636512756, -0.30021581053733826, 0.005449378862977028, -0.032608889043331146, 0.0212504398077...
func TestGetBIOSStat(t *testing.T) { // setup the faking of readAndTrimFile oldReadAndTrimFile := readAndTrimFile readAndTrimFile = func(path string) (ret string, err error) { return "abc", nil } // test expected := biosStat{ boardName: "abc", boardVendor: "abc", biosVendor: "abc", biosVersion: "abc...
[ 1.036635398864746, 0.15712082386016846, 0.40200281143188477, -0.1544080376625061, -0.4483031630516052, 0.5218435525894165, 0.6517751812934875, -0.2903124690055847, 0.01638737879693508, -0.6462461352348328, 0.30407023429870605, 0.7417091727256775, -0.9212625622749329, -0.4003857374191284, ...
func TestGetBIOSStatType(t *testing.T) { expected := biosStat{ boardName: "", // the result values of the fields are not tested boardVendor: "", biosVendor: "", biosVersion: "", biosDate: "", } actual, _ := getBIOSStat() assert.IsType(t, expected, actual, "`getBIOSStat()` should return a `biosStat` ...
[ 0.7065264582633972, 0.6828509569168091, 0.35097116231918335, 0.21429941058158875, 0.13725730776786804, 0.015082149766385555, 0.42209237813949585, -1.1413153409957886, 0.44942063093185425, -0.47092244029045105, -0.2777519226074219, 0.6107627749443054, -0.835547149181366, 0.00249734916724264...
func run(ctx context.Context, kubeClient kubernetes.Interface, er record.EventRecorder, edgelbManager manager.EdgeLBManager, kubeInformerFactory kubeinformers.SharedInformerFactory, kubeCache dklbcache.KubernetesResourceCache, dcosClient *dcos.APIClient, saConfig dcos.ServiceAccountOptions) { ingressInformer := kubeIn...
[ -0.0801633968949318, 0.44506141543388367, 0.7421559691429138, 0.0014522348064929247, 0.4363674521446228, -0.005065217148512602, 0.2873571813106537, 0.24409456551074982, -0.08821994066238403, -0.03777642548084259, -0.07286975532770157, 0.3759221136569977, -0.5883278250694275, 0.096939109265...
func dcosLogin(saConfig dcos.ServiceAccountOptions) (*dcos.APIClient, error) { // Empty config, without auth token config := dcos.NewConfig(nil) config.SetURL("https://master.mesos") // Empty client client, err := dcos.NewClientWithConfig(config) if err != nil { return nil, fmt.Errorf("error creating DC/OS cli...
[ -0.21535107493400574, 0.24023857712745667, 0.5678232312202454, -0.5425199866294861, -0.4347638487815857, -0.2573866844177246, -0.20188261568546295, -0.24963846802711487, 0.3864021599292755, -0.8282090425491333, -0.439725399017334, 0.4920642077922821, 0.14703497290611267, -0.772368729114532...
func deleteBucket(ctx context.Context, t *testing.T, bucket *storage.BucketHandle) { bucketAttrs, err := bucket.Attrs(ctx) if err != nil { t.Errorf("bucket.Attrs: %v", err) } bucketName := bucketAttrs.Name it := bucket.Objects(ctx, nil) for { attrs, err := it.Next() if err == iterator.Done { break } ...
[ 0.3826597034931183, -0.009835530072450638, 0.7147203683853149, -0.1779439002275467, 0.65995854139328, 0.28028473258018494, 1.011786937713623, -0.6200046539306641, 0.34719982743263245, -0.791419267654419, 0.0025223970878869295, 0.6603670120239258, 0.5367421507835388, 0.46295294165611267, ...
func NewCdcCommand(p *pkg.AdminParams) *cobra.Command { var cdcCmd = &cobra.Command{ Use: "cdc", Short: "Manage cluster domain claim", } cdcCmd.AddCommand(NewCdcCreateCommand(p)) cdcCmd.AddCommand(NewCdcListCommand(p)) cdcCmd.AddCommand(NewCdcDeleteCommand(p)) return cdcCmd }
[ 0.15156255662441254, -0.25849470496177673, 0.6160983443260193, -0.20129239559173584, 0.26897376775741577, -0.00016441736079286784, -0.11017404496669769, 0.21113720536231995, 0.6054323315620422, -0.7082504630088806, 0.0630151629447937, 1.2673509120941162, 0.32630980014801025, 0.597153902053...
func (fh *FieldHandlers) ResolveEventTime(ev *model.Event) time.Time { if ev.Timestamp.IsZero() { ev.Timestamp = time.Now() } return ev.Timestamp }
[ 0.3984212279319763, -0.23905587196350098, 0.641936182975769, 0.08602229505777359, 0.9142816066741943, -0.25499770045280457, -0.09461633116006851, 0.8164515495300293, -0.015344814397394657, 0.22094334661960602, -0.13720263540744781, -1.5349141359329224, -0.30859535932540894, 0.7758743762969...
func (fh *FieldHandlers) ResolveContainerContext(ev *model.Event) (*model.ContainerContext, bool) { return ev.ContainerContext, ev.ContainerContext != nil }
[ -0.6080647110939026, -0.6790108680725098, 0.7309550642967224, 0.4452471137046814, 0.37425556778907776, -0.600080132484436, 0.0019132174784317613, -0.16966965794563293, 0.13135623931884766, -0.5908474326133728, -1.0932856798171997, -1.3140745162963867, 0.2239346206188202, 0.8006036281585693...
func (fh *FieldHandlers) ResolveProcessArgv(ev *model.Event, process *model.Process) []string { return process.Argv }
[ -0.6825133562088013, -0.7340327501296997, 0.5725601315498352, 0.030483428388834, 1.0955803394317627, 0.10456472635269165, -0.6826784014701843, 0.22156086564064026, -0.8506374359130859, -0.09767395257949829, -0.28036126494407654, -0.010111299343407154, 0.17780505120754242, 1.069520950317382...
func (o *GetCharactersCharacterIDCalendarEventIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetCharactersCharacterIDCalendarEventIDOK() if err := result.readResponse(response, consumer, o.formats); err != ...
[ 0.2460438460111618, -1.2327455282211304, 1.0241941213607788, -0.10375408828258514, -0.22969968616962433, -0.675548791885376, -0.05689908191561699, -0.19028306007385254, 0.7194203734397888, -0.260873019695282, 0.36593303084373474, -0.08607001602649689, -0.8960117101669312, -0.39154672622680...
func NewGetCharactersCharacterIDCalendarEventIDOK() *GetCharactersCharacterIDCalendarEventIDOK { return &GetCharactersCharacterIDCalendarEventIDOK{} }
[ 0.25607848167419434, -0.6083630323410034, 0.5431506037712097, 0.49667254090309143, 0.027014050632715225, -0.014974072575569153, -0.2061118185520172, 0.5623146295547485, -0.24680669605731964, -0.815392017364502, -0.5961949229240417, 0.5586643815040588, -0.6812233328819275, -1.16496944427490...
func NewGetCharactersCharacterIDCalendarEventIDNotModified() *GetCharactersCharacterIDCalendarEventIDNotModified { return &GetCharactersCharacterIDCalendarEventIDNotModified{} }
[ -0.2783232033252716, -0.9157164692878723, 0.14434728026390076, -0.31165382266044617, 0.400797575712204, 0.41818997263908386, -0.6624179482460022, 0.7637292146682739, 0.01778898574411869, -0.9715786576271057, -0.3884703516960144, 0.8373748660087585, -0.4018614888191223, -0.7615504860877991,...
func NewGetCharactersCharacterIDCalendarEventIDBadRequest() *GetCharactersCharacterIDCalendarEventIDBadRequest { return &GetCharactersCharacterIDCalendarEventIDBadRequest{} }
[ -0.23983438313007355, -0.5713551044464111, 0.4367889165878296, 0.0636567771434784, 0.17192330956459045, -0.15469442307949066, -1.1208332777023315, 0.2861466109752655, -0.23475025594234467, -1.3210246562957764, -0.08136258274316788, 1.1775891780853271, -0.8764235377311707, -0.90688669681549...
func NewGetCharactersCharacterIDCalendarEventIDUnauthorized() *GetCharactersCharacterIDCalendarEventIDUnauthorized { return &GetCharactersCharacterIDCalendarEventIDUnauthorized{} }
[ -0.22528450191020966, -0.8926674127578735, 0.5180984735488892, -0.01929784007370472, -0.6312163472175598, 0.2856767475605011, -0.5375123023986816, 0.9938616752624512, 0.04670223593711853, -1.5215961933135986, -0.4263092577457428, 1.572965145111084, -0.4169318377971649, -1.3941017389297485,...
func NewGetCharactersCharacterIDCalendarEventIDForbidden() *GetCharactersCharacterIDCalendarEventIDForbidden { return &GetCharactersCharacterIDCalendarEventIDForbidden{} }
[ 0.5018393993377686, -0.3461300730705261, 0.33916884660720825, 0.14479221403598785, -0.5864613056182861, 0.6191373467445374, -0.16783113777637482, -0.13878969848155975, -0.3036462962627411, -1.0401148796081543, -0.0564984492957592, 1.235640525817871, -0.7064869403839111, -1.7631193399429321...
func NewGetCharactersCharacterIDCalendarEventIDNotFound() *GetCharactersCharacterIDCalendarEventIDNotFound { return &GetCharactersCharacterIDCalendarEventIDNotFound{} }
[ 0.23701515793800354, -1.2951616048812866, 0.24164824187755585, -0.36132580041885376, 0.3850788176059723, 0.6446700096130371, -0.2999885678291321, 0.4317338466644287, -0.32170042395591736, -0.9544258713722229, -0.2292972356081009, 0.9538764357566833, -0.30044010281562805, -1.034421682357788...
func NewGetCharactersCharacterIDCalendarEventIDEnhanceYourCalm() *GetCharactersCharacterIDCalendarEventIDEnhanceYourCalm { return &GetCharactersCharacterIDCalendarEventIDEnhanceYourCalm{} }
[ 0.9699624180793762, -1.051357388496399, 0.5987196564674377, 0.28464624285697937, 0.31386908888816833, 0.16671809554100037, 0.23735706508159637, 0.5111642479896545, -0.3865436017513275, -0.3955760598182678, -0.46893972158432007, 0.6222983002662659, -0.6451142430305481, -0.640685498714447, ...
func NewGetCharactersCharacterIDCalendarEventIDServiceUnavailable() *GetCharactersCharacterIDCalendarEventIDServiceUnavailable { return &GetCharactersCharacterIDCalendarEventIDServiceUnavailable{} }
[ -0.8253859281539917, -0.8987757563591003, 0.5506578683853149, -0.4392608106136322, -0.1284162998199463, 0.1302368938922882, -0.5213354229927063, 0.4926057457923889, -0.08708740025758743, -0.8820341229438782, -0.4224345088005066, 0.9106925129890442, -0.3247370719909668, -1.0478054285049438,...
func NewGetCharactersCharacterIDCalendarEventIDGatewayTimeout() *GetCharactersCharacterIDCalendarEventIDGatewayTimeout { return &GetCharactersCharacterIDCalendarEventIDGatewayTimeout{} }
[ 1.0741198062896729, -0.5344552397727966, 0.2638523280620575, -0.5460063815116882, -0.24176481366157532, 0.012631810270249844, -0.493400901556015, 0.4268874526023865, -0.2858131527900696, -0.04267213121056557, 0.0587751679122448, 0.5774165391921997, -0.8522447347640991, -0.4390897750854492,...
func NewMockUi() *MockUi { m := new(MockUi) m.once.Do(m.init) return m }
[ -0.7042291760444641, 0.05553789809346199, 0.1894497275352478, 0.7395060062408447, -0.0853915885090828, -0.27964043617248535, 0.011048365384340286, -0.3575056493282318, 0.07811517268419266, -0.7648972272872925, -0.6855376362800598, -0.2169467657804489, -1.7359740734100342, 1.194505572319030...
func (wl *WatchList) Add(item WatchItem) error { _, err := dao.DefaultDatabaseWatchItemDAO.Add( &models.WatchItem{ PolicyID: item.PolicyID, Namespace: item.Namespace, OnPush: item.OnPush, OnDeletion: item.OnDeletion, }) return err }
[ -0.3628651201725006, 0.06346919387578964, 0.16852694749832153, 0.5469934940338135, 0.8004711270332336, 1.324392318725586, -0.6342844367027283, 0.4151279330253601, 0.473812073469162, 0.487799733877182, -0.8668050169944763, 0.15242043137550354, -0.3407330811023712, 0.776634931564331, -0.48...
func (wl *WatchList) Remove(policyID int64) error { return dao.DefaultDatabaseWatchItemDAO.DeleteByPolicyID(policyID) }
[ -0.31938523054122925, 0.328283429145813, -0.014558553695678711, 0.38896799087524414, -0.04843239486217499, 0.7982892990112305, -0.044457558542490005, 1.0500587224960327, 0.49173301458358765, 1.071284294128418, -1.0231318473815918, -0.20940053462982178, -1.275132656097412, 0.704384446144104...
func (wl *WatchList) Get(namespace, operation string) ([]WatchItem, error) { items, err := dao.DefaultDatabaseWatchItemDAO.Get(namespace, operation) if err != nil { return nil, err } watchItems := []WatchItem{} for _, item := range items { watchItems = append(watchItems, WatchItem{ PolicyID: item.PolicyI...
[ -0.39743274450302124, 0.5550626516342163, 0.621436357498169, 0.5288982391357422, 0.4751158356666565, 0.09261371195316315, -1.002732276916504, 0.15903040766716003, 0.015737032517790794, 1.0225293636322021, -0.6335132718086243, 0.6882614493370056, -0.123860664665699, 0.26418015360832214, -...
func initContext() *router.MyContext { return &router.MyContext{ AppContext: newTestGlobals(), } }
[ 0.8042382597923279, -0.2137618213891983, 0.46824783086776733, 0.4459838569164276, -0.23284220695495605, 0.13511791825294495, 0.3315826654434204, -0.19373251497745514, 0.9846983551979065, -0.05726594105362892, -0.3356015682220459, 0.5527048707008362, -0.8212217688560486, 0.7390919923782349,...
func newTestGlobals() *router.ApplicationGlobals { return &router.ApplicationGlobals{ Storage: newTestModel(), Fetcher: newTestFetcher(), Writer: newResponseWriter(), } }
[ 0.21773207187652588, 0.2969434857368469, 0.19241562485694885, -0.04790325090289116, -0.5967707633972168, 0.7492549419403076, 0.29806849360466003, -1.380252480506897, -0.12527160346508026, 0.22348257899284363, -0.05142911523580551, 0.15332089364528656, -0.9435895085334778, 0.487156331539154...
func newTestFetcher() *FetcherTest { return &FetcherTest{} }
[ 0.14099624752998352, -0.457451194524765, 0.03296450525522232, 0.006683617830276489, -0.8457719683647156, -0.1364808976650238, -0.6815508008003235, -1.1101551055908203, -0.07159608602523804, -1.382375717163086, -0.580129861831665, -0.7576495409011841, -0.4436500072479248, 0.8348903059959412...
func newTestModel() *Storage { return &Storage{} }
[ 0.2989461123943329, -0.34832826256752014, 0.1481567621231079, 1.0122416019439697, -0.12072332948446274, 0.20663385093212128, 0.47884121537208557, -1.1198463439941406, -0.22467225790023804, -0.4395667314529419, -0.6039813756942749, -0.6215693950653076, -0.5267971158027649, -0.47467046976089...
func TestEventController_PushData(t *testing.T) { assert.New(t) request = []byte(`{"eventType":"Usual","sessionStart":1476628565,"sessionEnd":1476628965,"linkClicked":"https://blog.golang.org/c-go-cgo","timestamp":12039109203,"params":{"C":"c++","D":"D++","R":"R is not a real language"}}`) err := controller.PushData...
[ 0.2118082046508789, 0.6768395304679871, 0.9076197743415833, -0.23815596103668213, 0.5240349173545837, 0.6454102993011475, 0.2408629208803177, -0.16366472840309143, 0.30525726079940796, -0.5137377977371216, -0.6963908076286316, 0.38987964391708374, -0.4278988242149353, 0.5400097370147705, ...
func (mock *EtcdBackupListerMock) GetCalls() []struct { Namespace string Name string } { var calls []struct { Namespace string Name string } lockEtcdBackupListerMockGet.RLock() calls = mock.calls.Get lockEtcdBackupListerMockGet.RUnlock() return calls }
[ -0.37368154525756836, 0.9172844290733337, 0.6260988116264343, -0.013396368362009525, 0.36564862728118896, -0.38107654452323914, -1.1299188137054443, -1.207077145576477, 0.4457431137561798, 0.13448800146579742, -0.3522243797779083, -0.6630229949951172, -0.631375253200531, 0.6601940989494324...
func (mock *EtcdBackupListerMock) ListCalls() []struct { Namespace string Selector labels.Selector } { var calls []struct { Namespace string Selector labels.Selector } lockEtcdBackupListerMockList.RLock() calls = mock.calls.List lockEtcdBackupListerMockList.RUnlock() return calls }
[ -0.3783973753452301, 0.08975274115800858, 0.38413509726524353, -0.04430240020155907, 0.12319032847881317, -0.2962438762187958, -1.162818431854248, -1.0943961143493652, 0.3145498037338257, 0.13901779055595398, 0.026385191828012466, -0.9412415027618408, -0.4017094075679779, 0.718604385852813...
func (mock *EtcdBackupControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name stri...
[ -0.5357133746147156, 0.7678712606430054, 0.47212350368499756, -0.18922264873981476, 0.7608148455619812, 0.16810375452041626, 0.5247328877449036, -0.3526599705219269, -0.0541585236787796, -0.09757031500339508, 0.006440785247832537, -0.4583733081817627, 0.025801079347729683, 0.20694220066070...
func (mock *EtcdBackupControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string Handler v31.EtcdBackupHandle...
[ -0.3289344608783722, 0.5359790325164795, 0.38362690806388855, -0.5551169514656067, 0.8077442049980164, 0.5144596695899963, 0.12578752636909485, -0.11188971996307373, 0.4316909909248352, -0.016321877017617226, 0.240656316280365, -0.4429546594619751, -0.13014639914035797, 0.04462203755974769...
func (mock *EtcdBackupControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string Sync v31.EtcdBackupHandlerFunc } lockEtcdBackupCont...
[ -0.23151569068431854, 1.0412338972091675, 0.4002756178379059, 0.28241637349128723, 0.4568004608154297, 0.689166784286499, -0.040714871138334274, -0.45930925011634827, -0.2763530910015106, -0.28493183851242065, -0.06055593863129616, -0.8287298679351807, -0.1672479659318924, 0.36295709013938...
func (mock *EtcdBackupControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Name string Handler v31.EtcdBackupHandlerFunc } lockEtcdBackupControllerMockAddHandler.RLock() calls = mock.calls.A...
[ -0.032441068440675735, 0.9008285403251648, 0.4786413013935089, -0.18833240866661072, 0.5880938768386841, 0.7597300410270691, -0.174269437789917, -0.28710824251174927, -0.09855359047651291, -0.6070870161056519, 0.42841866612434387, -1.0906590223312378, -0.18763308227062225, 0.33111399412155...
func (mock *EtcdBackupControllerMock) EnqueueCalls() []struct { Namespace string Name string } { var calls []struct { Namespace string Name string } lockEtcdBackupControllerMockEnqueue.RLock() calls = mock.calls.Enqueue lockEtcdBackupControllerMockEnqueue.RUnlock() return calls }
[ 0.18800964951515198, 1.1351220607757568, 0.4442873001098633, -0.1720733940601349, 0.7943419814109802, -0.09982024133205414, -0.7984259128570557, -1.1665233373641968, -0.05112762004137039, 0.25049543380737305, 0.0611952468752861, -0.7544926404953003, -0.4086276888847351, 0.7587200403213501,...
func (mock *EtcdBackupControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration } { var calls []struct { Namespace string Name string After time.Duration } lockEtcdBackupControllerMockEnqueueAfter.RLock() calls = mock.calls.EnqueueAfter lockEtcdBacku...
[ 0.5149489641189575, 0.6989060044288635, 0.4129720628261566, 0.0304440725594759, -0.09859990328550339, 0.1633632779121399, -0.6317883729934692, -0.8519798517227173, 0.14486196637153625, -0.10176662355661392, -0.5093566179275513, -1.0163015127182007, -0.041905783116817474, 0.9057192802429199...
func (mock *EtcdBackupControllerMock) GenericCalls() []struct { } { var calls []struct { } lockEtcdBackupControllerMockGeneric.RLock() calls = mock.calls.Generic lockEtcdBackupControllerMockGeneric.RUnlock() return calls }
[ -0.4202708601951599, 0.6230090260505676, 0.5082410573959351, -0.43659552931785583, 0.5855587720870972, 0.3387703597545624, -1.046302318572998, -1.0203487873077393, -0.4390981197357178, 0.40795329213142395, 0.1707795113325119, -0.786776065826416, -0.1386025995016098, 0.14338266849517822, ...
func (mock *EtcdBackupControllerMock) InformerCalls() []struct { } { var calls []struct { } lockEtcdBackupControllerMockInformer.RLock() calls = mock.calls.Informer lockEtcdBackupControllerMockInformer.RUnlock() return calls }
[ 0.1702582687139511, 0.8130814433097839, 0.4069765508174896, -0.34354284405708313, 0.4282069504261017, 0.15762704610824585, 0.1722593605518341, -0.3587714433670044, -0.45199981331825256, -0.00680247787386179, 0.13428501784801483, -1.0407378673553467, -0.5678446292877197, 0.6227676868438721,...
func (mock *EtcdBackupControllerMock) ListerCalls() []struct { } { var calls []struct { } lockEtcdBackupControllerMockLister.RLock() calls = mock.calls.Lister lockEtcdBackupControllerMockLister.RUnlock() return calls }
[ 0.09349632263183594, 0.4171222150325775, 0.5226659178733826, -0.22700868546962738, 0.6254986524581909, -0.22800356149673462, -0.8747397661209106, -0.7065450549125671, 0.29540854692459106, -0.12318069487810135, -0.20953063666820526, -0.739584743976593, -0.40661561489105225, 0.54457592964172...
func (mock *EtcdBackupInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name strin...
[ -0.6796941161155701, 0.8116719722747803, 0.5172110199928284, -0.07329358160495758, 0.4470784664154053, 0.11013585329055786, 0.7551674842834473, -0.4527691900730133, -0.21529549360275269, 0.23998312652111053, 0.08755313605070114, -0.6027050018310547, -0.3832627236843109, 0.16915757954120636...
func (mock *EtcdBackupInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v31.EtcdBackupLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name strin...
[ -0.3742445707321167, 0.7665371298789978, 0.4364676773548126, 0.04201268404722214, 0.35700803995132446, -0.11071842163801193, 0.3871920108795166, -0.4094383418560028, 0.26385927200317383, 0.44736459851264954, -0.006521927658468485, -0.645068883895874, -0.0800086110830307, 0.2728259563446045...
func (mock *EtcdBackupInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string Sync v31.EtcdBackupHandler...
[ -0.425725519657135, 0.7172272801399231, 0.4340676963329315, -0.45926347374916077, 0.4898865520954132, 0.4986351430416107, 0.3926094174385071, -0.25777825713157654, 0.16929183900356293, 0.3846680521965027, 0.3498323857784271, -0.679832935333252, -0.5185122489929199, 0.07090418040752411, 1...
func (mock *EtcdBackupInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v31.EtcdBackupLifecycle } { var calls []struct { Ctx context.Context Name string ClusterName string Lifecycle v31.EtcdBackupLifecyc...
[ -0.24890992045402527, 0.8077133297920227, 0.5601642727851868, -0.29909083247184753, 0.470501184463501, 0.24730242788791656, 0.2658848762512207, -0.7277060151100159, 0.17639288306236267, 0.6142190098762512, 0.08016961067914963, -0.5601144433021545, -0.572668731212616, 0.13096296787261963, ...
func (mock *EtcdBackupInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string Sync v31.EtcdBackupHandlerFunc } lockEtcdBackupInter...
[ -0.3844974935054779, 1.0458251237869263, 0.44571244716644287, 0.28434136509895325, 0.19930346310138702, 0.6537879109382629, 0.1137612834572792, -0.5404257774353027, -0.44695624709129333, -0.026347260922193527, 0.026710813865065575, -1.0549380779266357, -0.5329374074935913, 0.30567708611488...
func (mock *EtcdBackupInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v31.EtcdBackupLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v31.EtcdBackupLifecycle } lockE...
[ -0.11611909419298172, 0.9178908467292786, 0.44367673993110657, 0.3855813145637512, 0.26157620549201965, 0.21889621019363403, -0.10848937928676605, -0.7299512028694153, 0.1223309263586998, 0.13155946135520935, -0.1488257795572281, -1.1744650602340698, -0.1713602989912033, 0.2642803192138672...
func (mock *EtcdBackupInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v31.EtcdBackupHandlerFunc } { var calls []struct { Ctx context.Context Name string Sync v31.EtcdBackupHandlerFunc } lockEtcdBackupInterfaceMockAddHandler.RLock() calls = mock.calls.AddHandler lockEtcdB...
[ -0.22401553392410278, 1.0307029485702515, 0.521425724029541, -0.10794969648122787, 0.3006807863712311, 0.8180940747261047, -0.0068266503512859344, -0.5622785687446594, -0.31007513403892517, -0.22729331254959106, 0.5911129117012024, -1.3215686082839966, -0.6266466975212097, 0.34689277410507...
func (mock *EtcdBackupInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v31.EtcdBackupLifecycle } { var calls []struct { Ctx context.Context Name string Lifecycle v31.EtcdBackupLifecycle } lockEtcdBackupInterfaceMockAddLifecycle.RLock() calls = mo...
[ 0.11256489902734756, 0.8154606819152832, 0.5268958210945129, -0.34828877449035645, 0.33251288533210754, 0.4840637445449829, -0.40445008873939514, -1.0030940771102905, 0.5189938545227051, 0.33100625872612, 0.18660521507263184, -1.3521493673324585, -0.7511783838272095, 0.5072069764137268, ...
func (mock *EtcdBackupInterfaceMock) ControllerCalls() []struct { } { var calls []struct { } lockEtcdBackupInterfaceMockController.RLock() calls = mock.calls.Controller lockEtcdBackupInterfaceMockController.RUnlock() return calls }
[ 0.011441261507570744, 0.8884431719779968, 0.3641713559627533, 0.0280898604542017, 0.5671513676643372, -0.008253278210759163, 0.6936739683151245, -1.3004757165908813, 0.03944376856088638, 0.7629160284996033, 0.15854743123054504, -1.302850604057312, -1.1127727031707764, -0.14066900312900543,...
func (mock *EtcdBackupInterfaceMock) CreateCalls() []struct { In1 *v3.EtcdBackup } { var calls []struct { In1 *v3.EtcdBackup } lockEtcdBackupInterfaceMockCreate.RLock() calls = mock.calls.Create lockEtcdBackupInterfaceMockCreate.RUnlock() return calls }
[ 0.11572583019733429, 1.0735352039337158, 0.38959577679634094, -0.11164768040180206, 0.7638030052185059, 0.2763128876686096, -0.3765862286090851, -1.2840452194213867, -0.1649373322725296, 0.5327905416488647, 0.4420507252216339, -1.9996920824050903, -1.1747838258743286, 0.37356454133987427, ...
func (mock *EtcdBackupInterfaceMock) DeleteCalls() []struct { Name string Options *metav1.DeleteOptions } { var calls []struct { Name string Options *metav1.DeleteOptions } lockEtcdBackupInterfaceMockDelete.RLock() calls = mock.calls.Delete lockEtcdBackupInterfaceMockDelete.RUnlock() return calls }
[ 0.45059922337532043, 1.0043522119522095, 0.44724249839782715, -0.05707400292158127, 0.34230732917785645, -0.019814958795905113, 0.1533704549074173, -1.045326590538025, 0.5315424203872681, 0.21137061715126038, 0.9062733054161072, -1.227596640586853, -1.210040807723999, 0.5239351987838745, ...
func (mock *EtcdBackupInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *metav1.DeleteOptions ListOpts metav1.ListOptions } { var calls []struct { DeleteOpts *metav1.DeleteOptions ListOpts metav1.ListOptions } lockEtcdBackupInterfaceMockDeleteCollection.RLock() calls = mock.calls.DeleteCollecti...
[ 0.15690959990024567, 0.45185190439224243, 0.6962026357650757, 0.20624086260795593, 0.20358967781066895, -0.18158535659313202, 0.3386372923851013, -1.039983868598938, 0.3335030972957611, 0.33712562918663025, 0.453681081533432, -0.8155754804611206, -0.5950349569320679, 0.7367832660675049, ...
func (mock *EtcdBackupInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *metav1.DeleteOptions } { var calls []struct { Namespace string Name string Options *metav1.DeleteOptions } lockEtcdBackupInterfaceMockDeleteNamespaced.RLock() calls = mock.calls.Delet...
[ 0.2346218377351761, 0.7073111534118652, 0.5586292743682861, -0.6295357942581177, -0.5451866984367371, 0.14609821140766144, -0.8891618847846985, -1.555985450744629, 0.4620699882507324, 0.2260032445192337, 0.13139614462852478, -0.9936814308166504, -0.9342327117919922, 0.9537287950515747, 0...
func (mock *EtcdBackupInterfaceMock) GetCalls() []struct { Name string Opts metav1.GetOptions } { var calls []struct { Name string Opts metav1.GetOptions } lockEtcdBackupInterfaceMockGet.RLock() calls = mock.calls.Get lockEtcdBackupInterfaceMockGet.RUnlock() return calls }
[ 0.03736632317304611, 1.5017145872116089, 0.6401886940002441, -0.3167915344238281, 0.8820436596870422, -0.2149927020072937, -0.1885237693786621, -1.4336535930633545, 0.2200479358434677, 0.2881731688976288, 0.5951504111289978, -0.9530426263809204, -1.0671216249465942, 0.13687416911125183, ...
func (mock *EtcdBackupInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts metav1.GetOptions } { var calls []struct { Namespace string Name string Opts metav1.GetOptions } lockEtcdBackupInterfaceMockGetNamespaced.RLock() calls = mock.calls.GetNamespaced lock...
[ 0.06281676143407822, 0.9757974147796631, 0.843949556350708, -0.6425941586494446, -0.20010556280612946, 0.06812330335378647, -0.9544998407363892, -1.7434252500534058, 0.14781491458415985, 0.38028740882873535, 0.14358729124069214, -0.47867876291275024, -0.9600294828414917, 0.6271961331367493...
func (mock *EtcdBackupInterfaceMock) ListCalls() []struct { Opts metav1.ListOptions } { var calls []struct { Opts metav1.ListOptions } lockEtcdBackupInterfaceMockList.RLock() calls = mock.calls.List lockEtcdBackupInterfaceMockList.RUnlock() return calls }
[ 0.16434171795845032, 0.6714025735855103, 0.3894229233264923, -0.07046101242303848, 0.21117891371250153, -0.10401536524295807, -0.5078459978103638, -1.240448236465454, 0.3319694697856903, 0.42020633816719055, 0.5450443029403687, -1.1202679872512817, -0.9451767206192017, 0.33735978603363037,...
func (mock *EtcdBackupInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts metav1.ListOptions } { var calls []struct { Namespace string Opts metav1.ListOptions } lockEtcdBackupInterfaceMockListNamespaced.RLock() calls = mock.calls.ListNamespaced lockEtcdBackupInterfaceMockListNames...
[ 0.22109314799308777, 0.43310102820396423, 0.5248187184333801, -0.8435156941413879, -0.5724915862083435, -0.007129009813070297, -1.159758448600769, -1.4042497873306274, 0.48186609148979187, 0.5088648200035095, -0.2733690142631531, -0.8080976009368896, -0.7430784702301025, 1.0699653625488281...
func (mock *EtcdBackupInterfaceMock) ObjectClientCalls() []struct { } { var calls []struct { } lockEtcdBackupInterfaceMockObjectClient.RLock() calls = mock.calls.ObjectClient lockEtcdBackupInterfaceMockObjectClient.RUnlock() return calls }
[ -0.16306814551353455, 0.5091222524642944, 0.5827731490135193, -0.5202053189277649, -0.2620896100997925, 0.20010878145694733, 0.26400426030158997, -1.393833041191101, -0.42069321870803833, 1.0391005277633667, -0.23446625471115112, -0.745711624622345, -0.8216542601585388, -0.5942491888999939...
func (mock *EtcdBackupInterfaceMock) UpdateCalls() []struct { In1 *v3.EtcdBackup } { var calls []struct { In1 *v3.EtcdBackup } lockEtcdBackupInterfaceMockUpdate.RLock() calls = mock.calls.Update lockEtcdBackupInterfaceMockUpdate.RUnlock() return calls }
[ -0.4866231679916382, 0.5920348763465881, 0.5307844281196594, 0.006597481202334166, -0.20725850760936737, 0.15678612887859344, -0.44891929626464844, -1.142033338546753, 0.0002796874032355845, 0.985007643699646, 0.33131763339042664, -1.4062609672546387, -1.3074449300765991, 0.158698827028274...
func (mock *EtcdBackupInterfaceMock) WatchCalls() []struct { Opts metav1.ListOptions } { var calls []struct { Opts metav1.ListOptions } lockEtcdBackupInterfaceMockWatch.RLock() calls = mock.calls.Watch lockEtcdBackupInterfaceMockWatch.RUnlock() return calls }
[ 0.6471405625343323, 1.0024582147598267, 0.28825142979621887, -0.28161880373954773, 0.053165286779403687, 0.03446849808096886, 0.17640972137451172, -1.3284912109375, -0.21367308497428894, 0.41100427508354187, 0.37838664650917053, -0.6155508756637573, -0.7906917333602905, 0.2827361226081848,...
func (mock *EtcdBackupsGetterMock) EtcdBackupsCalls() []struct { Namespace string } { var calls []struct { Namespace string } lockEtcdBackupsGetterMockEtcdBackups.RLock() calls = mock.calls.EtcdBackups lockEtcdBackupsGetterMockEtcdBackups.RUnlock() return calls }
[ -0.4108783006668091, 1.140094518661499, 0.5785759091377258, 0.5577006936073303, -0.19897659122943878, -0.2135435938835144, -0.9929401278495789, -0.932365894317627, -0.03710821643471718, 0.13328319787979126, -0.12246755510568619, -1.3515214920043945, -0.15899242460727692, 0.3229923248291015...
func NewHTTPHandler(endpoints endpoints.Endpoints, otTracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer, logger log.Logger) http.Handler { // Zipkin HTTP Server Trace can either be instantiated per endpoint with a // provided operation name or a global tracing service can be instantiated // without an opera...
[ 0.3340352773666382, 0.053430382162332535, 0.7590458393096924, 0.3289541006088257, -0.10658074170351028, 0.3451074957847595, 0.4408992826938629, -0.23285286128520966, 0.06631308794021606, 0.09004032611846924, 0.08861812949180603, -0.41385653614997864, 0.5911234021186829, 0.20424650609493256...
func decodeHTTPSumRequest(_ context.Context, r *http.Request) (interface{}, error) { var req endpoints.SumRequest err := json.NewDecoder(r.Body).Decode(&req) return req, err }
[ -0.7878994941711426, -0.7114264369010925, 0.7544096112251282, 0.14681792259216309, -0.19246169924736023, 0.04229163005948067, -0.18210621178150177, -0.41541045904159546, 0.7698607444763184, -0.054907046258449554, -0.42387229204177856, 0.06546569615602493, -0.058106597512960434, -0.12858289...
func decodeHTTPConcatRequest(_ context.Context, r *http.Request) (interface{}, error) { var req endpoints.ConcatRequest err := json.NewDecoder(r.Body).Decode(&req) return req, err }
[ -0.5123358964920044, -0.728148341178894, 0.6291532516479492, -0.1475837528705597, -0.41790154576301575, -0.09720400720834732, -1.0688989162445068, -0.3556608259677887, -0.45696213841438293, 0.33272820711135864, 0.2617848813533783, 0.16236326098442078, -0.33305391669273376, 0.78834247589111...
func NewHTTPClient(instance string, otTracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer, logger log.Logger) (service.AddsvcService, error) { // Quickly sanitize the instance string. if !strings.HasPrefix(instance, "http") { instance = "http://" + instance } u, err := url.Parse(instance) if err != nil {...
[ 0.05835825577378273, 0.14456312358379364, 0.8928471207618713, 0.022913912311196327, -0.25381699204444885, -0.08167227357625961, 0.6507745385169983, -0.6024880409240723, 0.1919628381729126, -0.07627180218696594, -0.49370813369750977, 0.41178107261657715, 0.05679726600646973, -0.366525679826...
func encodeHTTPSumRequest(_ context.Context, r *http.Request, request interface{}) (err error) { var buf bytes.Buffer if err := json.NewEncoder(&buf).Encode(request); err != nil { return err } r.Body = ioutil.NopCloser(&buf) return nil }
[ -0.9684866666793823, -0.36197611689567566, 0.8532454967498779, 0.038805022835731506, -0.19251224398612976, 0.708837628364563, -0.07000907510519028, -0.7655285000801086, 0.5533673763275146, 0.5238611102104187, -0.5436810851097107, 0.8073684573173523, -0.16919445991516113, 0.3170293271541595...
func decodeHTTPSumResponse(_ context.Context, r *http.Response) (interface{}, error) { if r.StatusCode != http.StatusOK { return nil, JSONErrorDecoder(r) } var resp endpoints.SumResponse err := json.NewDecoder(r.Body).Decode(&resp) return resp, err }
[ 0.03396512195467949, -1.1538543701171875, 0.7296946048736572, -0.13335703313350677, 0.3353780508041382, -0.10047402232885361, 0.2207210212945938, -0.23196342587471008, 1.3832820653915405, 0.1342896670103073, -1.346051812171936, -0.8072105050086975, -0.2503887116909027, -0.8752397894859314,...
func encodeHTTPConcatRequest(_ context.Context, r *http.Request, request interface{}) (err error) { var buf bytes.Buffer if err := json.NewEncoder(&buf).Encode(request); err != nil { return err } r.Body = ioutil.NopCloser(&buf) return nil }
[ -0.9414781928062439, -0.27504047751426697, 0.7652480602264404, -0.20742477476596832, -0.2978249192237854, 0.5001500248908997, -0.7584312558174133, -0.9557673931121826, -0.22887979447841644, 0.8134910464286804, 0.04780837148427963, 0.5466748476028442, -0.1745937019586563, 1.315420150756836,...
func decodeHTTPConcatResponse(_ context.Context, r *http.Response) (interface{}, error) { if r.StatusCode != http.StatusOK { return nil, JSONErrorDecoder(r) } var resp endpoints.ConcatResponse err := json.NewDecoder(r.Body).Decode(&resp) return resp, err }
[ 0.3796738386154175, -0.9532687067985535, 0.51323002576828, -0.26044654846191406, -0.1781451404094696, -0.24254420399665833, -0.7512444853782654, -0.3650457561016083, 0.17768020927906036, 0.42917102575302124, -0.43474340438842773, -0.6803682446479797, -0.5049834847450256, 0.2054064124822616...
func Asset(name string) ([]byte, error) { cannonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[cannonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) } return a.bytes, nil } return nil, fmt.Errorf("Asset %s not foun...
[ -0.7961483001708984, -1.2313168048858643, 0.633165180683136, -0.6093899011611938, -1.546921730041504, -0.11101024597883224, 0.12971386313438416, -1.3390334844589233, -1.1358720064163208, 0.4855233430862427, 0.3090141713619232, 0.32495471835136414, -0.6009681224822998, -0.44264674186706543,...
func MustAsset(name string) []byte { a, err := Asset(name) if (err != nil) { panic("asset: Asset(" + name + "): " + err.Error()) } return a }
[ -0.007740291301161051, 0.10098768770694733, 0.437966912984848, -0.523969292640686, -0.8036118149757385, 0.46165767312049866, -0.8747084736824036, -1.594231367111206, 0.13969546556472778, 0.6354658007621765, -0.5115860104560852, 0.3287637233734131, -0.023273920640349388, -0.0659526288509368...
func AssetInfo(name string) (os.FileInfo, error) { cannonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[cannonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) } return a.info, nil } return nil, fmt.Errorf("Asset...
[ 0.371969997882843, -1.1052993535995483, 0.5630446076393127, -0.922572672367096, -1.356387734413147, 0.0033556853886693716, 0.6777529716491699, -0.8006685972213745, -1.2748286724090576, 0.3115358352661133, 0.2636086046695709, 0.26388120651245117, 0.0635773167014122, -0.3988074064254761, 0...
func AssetNames() []string { names := make([]string, 0, len(_bindata)) for name := range _bindata { names = append(names, name) } return names }
[ -0.7293784618377686, -0.8460342288017273, 0.7321816682815552, -0.39323121309280396, -0.48951536417007446, 0.7661203145980835, -0.5028699636459351, -0.8655748963356018, -0.4145073890686035, 0.8099913597106934, 0.16903363168239594, 1.163049578666687, -0.028152840211987495, 0.0342608317732811...