text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (s *ShellTask) Handler() util.Handler { return util.Handler(func(ctx context.Context) (any, error) { return s.Process(ctx) }) }
[ 0.9588778018951416, -0.45764032006263733, 0.19388824701309204, -0.14478451013565063, -0.17201761901378632, 0.49620604515075684, 0.12967395782470703, 0.4910898208618164, 0.507769763469696, -1.278862714767456, -0.35022127628326416, 0.5219287276268005, 1.1927109956741333, -0.193881556391716, ...
func (s *ShellTask) CurrentTaskStatus() *TaskStatus { v := s.exitCode.Load() if v == nil { return &TaskStatus{ Info: s.stdout, } } return &TaskStatus{ Info: s.stdout, ExitStatus: &ExitStatus{ Code: v.(int), Error: s.stderr, }, } }
[ -0.6006030440330505, -1.349483847618103, 0.5719900727272034, -0.42518413066864014, -0.9096216559410095, 0.17908808588981628, -0.005505397450178862, 0.23379236459732056, -0.3895481526851654, 0.29178643226623535, -0.31221115589141846, 0.946036159992218, 0.7716507911682129, 0.6386469602584839...
func (s *ShellTask) String() string { return s.cmd }
[ 0.5540827512741089, -1.3815301656723022, 0.20618107914924622, 0.30106908082962036, -0.39757975935935974, 0.6665671467781067, 0.7971368432044983, -0.566201388835907, 0.04056936129927635, -0.7104114890098572, -0.4334939122200012, 0.6720622181892395, 0.884937584400177, 0.3919043242931366, 0...
func (s *ShellTask) Result() any { return nil }
[ -0.007965518161654472, 0.22039826214313507, 0.51449054479599, 0.5140865445137024, 0.3407975733280182, 0.15212158858776093, 0.13176007568836212, 0.11683984845876694, 0.09203619509935379, -1.6282832622528076, -1.1192240715026855, 0.1379404217004776, -0.34364810585975647, 0.4732268750667572, ...
func CreatePreflightCheckParam( provider *model.Provider, instanceType *model.NodeInstanceType, accessKey *model.AccessKey) *model.PreflightCheckParam { param := &model.PreflightCheckParam{} param.AirGapInstall = provider.AirGapInstall param.SkipProvisioning = accessKey.KeyInfo.SkipProvisioning param.InstallNode...
[ -0.08065292239189148, -0.29191094636917114, 0.7485838532447815, 0.442869633436203, 0.44617024064064026, 1.3219667673110962, 0.25441011786460876, 0.12396660447120667, -0.25615087151527405, -0.018145639449357986, 0.24025924503803253, 0.4782625138759613, -0.36485156416893005, 1.13901066780090...
func (handler *PreflightCheckHandler) Handler() util.Handler { return handler.Handle }
[ 0.6587920784950256, -0.6956126093864441, 0.09375783801078796, 1.0735937356948853, 0.5016814470291138, 1.8279802799224854, 1.1396788358688354, 0.6926237344741821, 0.48829516768455505, -1.6612821817398071, 0.40635526180267334, -0.24320544302463531, 0.08418556302785873, 0.39323070645332336, ...
func (handler *PreflightCheckHandler) CurrentTaskStatus() *TaskStatus { taskStatus := handler.shellTask.CurrentTaskStatus() taskStatus.Info = util.NewBuffer(1) return taskStatus }
[ -0.1087348684668541, -1.3164353370666504, 0.5831102728843689, -0.14992563426494598, -0.571371853351593, 0.9022012948989868, 0.2831326425075531, 0.12322396039962769, -0.5034032464027405, -0.3302255868911743, -0.9164223074913025, 0.6419247984886169, 0.45034608244895935, 0.8938444256782532, ...
func (handler *PreflightCheckHandler) String() string { return handler.shellTask.String() }
[ 0.8178490400314331, -1.0039377212524414, 0.23504087328910828, 0.5848004817962646, -0.445274293422699, 1.6498135328292847, 0.8884475827217102, -0.4217852056026459, -0.6219366192817688, -0.205325648188591, -0.19299426674842834, -0.04788776859641075, 0.28317055106163025, 0.9404901266098022, ...
func (handler *PreflightCheckHandler) getOptions(preflightScriptPath string) []string { options := []string{preflightScriptPath, "-t"} if handler.param.SkipProvisioning { options = append(options, "configure") } else { options = append(options, "provision") } options = append(options, "--node_agent_mode") opt...
[ -0.07379522919654846, -0.005542384460568428, 1.0077922344207764, 0.2676684558391571, 0.972730278968811, 0.4628578722476959, 0.40182605385780334, -0.5759724974632263, -0.5747051239013672, 0.5205400586128235, -0.025448091328144073, 0.08054003864526749, -0.29668527841567993, 2.068272352218628...
func appendMap(key string, valMap map[string]string, result []model.NodeConfig) []model.NodeConfig { if len(valMap) > 0 { valJSON, err := json.Marshal(valMap) if err != nil { panic("Error while marshaling map") } return append( result, model.NodeConfig{ Type: strings.ToUpper(key), Value: stri...
[ -1.1524240970611572, 0.556286096572876, 0.5355446338653564, 0.2404332309961319, -0.25944414734840393, -0.07842101901769638, -1.449326992034912, 0.15626560151576996, 0.44310230016708374, 0.504919707775116, 0.47234299778938293, -0.5965358018875122, 0.03425384685397148, 0.9739701151847839, ...
func NewMembershipValidator( logger log.StandardLogger, operatorsAddresses []chain.Address, signing chain.Signing, ) *MembershipValidator { members := make(map[string][]int) for position, address := range operatorsAddresses { addressAsString := address.String() positions, ok := members[addressAsString] if ok...
[ -0.6102594137191772, -0.5416731834411621, 0.3708224296569824, -0.5507417321205139, -1.3887394666671753, -0.1987733095884323, -0.38105183839797974, 0.8363579511642456, 0.2737578749656677, -0.01300495769828558, 0.34176158905029297, 0.0465792715549469, -0.6829631328582764, 0.24047629535198212...
func (mv *MembershipValidator) IsInGroup( publicKey *operator.PublicKey, ) bool { address, err := mv.signing.PublicKeyToAddress(publicKey) if err != nil { mv.logger.Errorf("cannot convert public key to chain address: [%v]", err) return false } _, isInGroup := mv.members[address.String()] return isInGroup }
[ -0.747279167175293, 0.38613149523735046, 0.4715595543384552, 0.15229415893554688, -0.6225756406784058, -0.21740621328353882, -0.6075882315635681, 0.33225658535957336, -0.7409456372261047, 0.9064874053001404, -0.024073511362075806, 0.7615633010864258, -1.5451921224594116, 0.662760853767395,...
func (mv *MembershipValidator) IsValidMembership( memberID MemberIndex, publicKey []byte, ) bool { address := mv.signing.PublicKeyBytesToAddress(publicKey).String() positions, isInGroup := mv.members[address] if !isInGroup { return false } index := int(memberID - 1) for _, position := range positions { ...
[ -0.8830099701881409, -0.07892319560050964, 0.463721364736557, 0.5448881983757019, -0.12426725029945374, -0.3927377164363861, -0.5313200950622559, -0.14870673418045044, 0.3708755671977997, 0.556749165058136, 0.191694438457489, 0.3168751895427704, -1.4812884330749512, 0.13487671315670013, ...
func (c *SFTPServer) Run() error { if _, err := os.Stat(c.PrivateKeyPath()); os.IsNotExist(err) { if err := c.generateED25519PrivateKey(); err != nil { return err } } else if err != nil { return errors.Wrap(err, "sftp: could not stat private key file") } pb, err := os.ReadFile(c.PrivateKeyPath()) if err !...
[ -0.8198097944259644, 0.143178790807724, 0.9244665503501892, -0.1631990671157837, -0.3639105260372162, 0.1344628483057022, -0.27701130509376526, 0.12447333335876465, -0.4340950548648834, 0.2563546299934387, -0.8615061044692993, 0.5449604392051697, -0.6188980340957642, 0.8400459289550781, ...
func (c *SFTPServer) AcceptInbound(conn net.Conn, config *ssh.ServerConfig) error { // Before beginning a handshake must be performed on the incoming net.Conn sconn, chans, reqs, err := ssh.NewServerConn(conn, config) if err != nil { return errors.WithStack(err) } defer sconn.Close() go ssh.DiscardRequests(reqs...
[ -0.5488806366920471, -0.18360313773155212, 0.960237443447113, -0.1338874101638794, -0.4628894627094269, 0.07225463539361954, -0.6596968770027161, 0.2045660763978958, 0.39719143509864807, 0.08597025275230408, 0.059968896210193634, 0.9695695042610168, -1.1131600141525269, 0.8337430953979492,...
func (c *SFTPServer) generateED25519PrivateKey() error { _, priv, err := ed25519.GenerateKey(rand.Reader) if err != nil { return errors.Wrap(err, "sftp: failed to generate ED25519 private key") } if err := os.MkdirAll(path.Dir(c.PrivateKeyPath()), 0o755); err != nil { return errors.Wrap(err, "sftp: could not cr...
[ -0.746933102607727, 0.37954920530319214, 0.5759665369987488, -0.8728033304214478, 0.21414797008037567, 0.20929795503616333, 0.32730478048324585, -0.3606068789958954, 0.16206830739974976, 0.22918251156806946, -0.27354100346565247, 0.5844123363494873, -0.7353955507278442, 1.4683576822280884,...
func (c *SFTPServer) PrivateKeyPath() string { return path.Join(c.BasePath, ".sftp/id_ed25519") }
[ -0.5369675755500793, -0.32880935072898865, 0.1858551949262619, 0.2268705517053604, -0.10198855400085449, 0.3673006594181061, 0.7199317812919617, -0.7692570090293884, 0.19426919519901276, 0.7572718262672424, -0.4282885193824768, 0.4943254888057709, -1.8663523197174072, 0.816855788230896, ...
func CreateNew(db *mongo.Database) *DB { return &DB{ conn: db, } }
[ 0.5287773609161377, 0.14511330425739288, 0.1136564165353775, 0.900776207447052, -0.30966463685035706, 0.7239151000976562, -0.9237474799156189, -0.43899303674697876, -0.008954264223575592, -0.3017463684082031, 0.06374114006757736, -0.2170805186033249, -0.44340813159942627, 0.992859303951263...
func (d *decorator) addMonikers(kind string, identifier string, sourceID, packageID string) error { monikerID := uuid.New().String() vertex := protocol.NewMoniker(monikerID, kind, "gomod", identifier) if err := d.encoder.Encode(vertex); err != nil { return err } packageInformationEdge := protocol.NewPackageInfo...
[ -1.6923977136611938, 0.5029684901237488, 0.42417803406715393, -0.030797399580478668, -0.4248162806034088, -0.09629285335540771, -0.6432806849479675, 0.49711352586746216, 0.6410671472549438, 0.4164580702781677, -0.30398836731910706, 0.7713736891746521, -0.8019130229949951, 0.846074700355529...
func (s *stateMachineScheduler) tick(time time.Time) { if time.After(s.Time()) { element := s.scheduledTasks.Front() if element != nil { for element != nil { task := element.Value.(*timeTask) if task.isRunnable(time) { next := element.Next() s.scheduledTasks.Remove(element) s.time.Store(t...
[ -0.2572338581085205, 1.181750774383545, 0.5344780683517456, 0.47473394870758057, -0.45106130838394165, 0.1631416380405426, 0.7242217659950256, 0.294479101896286, 0.1195172518491745, 0.40588781237602234, -0.8023924231529236, 0.1017967164516449, -0.11956136673688889, 1.0591660737991333, 0....
func (v *Verifier) CheckSMTP(domain, username string) (*SMTP, error) { if !v.smtpCheckEnabled { return nil, nil } var ret SMTP // Dial any SMTP server that will accept a connection client, err := newSMTPClient(domain, v.proxyURI) if err != nil { return &ret, ParseSMTPError(err) } // Sets the HELO/EHLO ho...
[ 0.3017159104347229, -0.13398493826389313, 0.7798547744750977, 0.4938491880893707, -0.6731702089309692, -0.06673185527324677, -0.05965358391404152, 0.390165239572525, -0.042974475771188736, 0.7266329526901245, -0.01694278046488762, 0.5463033318519592, -0.8389255404472351, 0.3971665501594543...
func newSMTPClient(domain, proxyURI string) (*smtp.Client, error) { domain = domainToASCII(domain) mxRecords, err := net.LookupMX(domain) if err != nil { return nil, err } if len(mxRecords) == 0 { return nil, errors.New("No MX records found") } // Create a channel for receiving response from ch := make(cha...
[ 0.23041002452373505, -0.2936912775039673, 0.737256646156311, -0.6974719762802124, -0.5533817410469055, -0.56586754322052, -0.20422017574310303, -0.8238060474395752, -0.2302148938179016, 0.35082289576530457, 0.4207049310207367, 0.37448644638061523, -0.8198868632316589, -0.40306195616722107,...
func dialSMTP(addr, proxyURI string) (*smtp.Client, error) { // Channel holding the new smtp.Client or error ch := make(chan interface{}, 1) // Dial the new smtp connection go func() { var conn net.Conn var err error if proxyURI != "" { conn, err = establishProxyConnection(addr, proxyURI) } else { c...
[ 0.31323543190956116, -0.14545917510986328, 0.6541394591331482, -0.4891790747642517, -1.0747545957565308, -0.7004231810569763, -0.6997045278549194, 0.07802672684192657, 0.6562178730964661, 1.005873680114746, 0.41579705476760864, 0.6783064603805542, -0.8607640862464905, -0.30766761302948, ...
func GenerateRandomEmail(domain string) string { r := make([]byte, 32) for i := 0; i < 32; i++ { r[i] = alphanumeric[rand.Intn(len(alphanumeric))] } return fmt.Sprintf("%s@%s", string(r), domain) }
[ -1.1921215057373047, 0.6257758736610413, 0.6184186339378357, -1.292757272720337, -0.6925819516181946, 1.6441749334335327, -0.13529853522777557, -0.3353814482688904, 0.5262028574943542, -0.3105110228061676, -0.2021685093641281, 0.7569270133972168, -0.38436391949653625, -0.31792187690734863,...
func establishConnection(addr string) (net.Conn, error) { return net.Dial("tcp", addr) }
[ 0.016645872965455055, 0.13433939218521118, 0.22945404052734375, 0.09411455690860748, -0.09024336189031601, -0.38449618220329285, 0.2539021968841553, 0.3834535479545593, 0.6695378422737122, 0.4813430607318878, 0.6151836514472961, -0.7031652927398682, 0.21025027334690094, 0.9341397285461426,...
func establishProxyConnection(addr, proxyURI string) (net.Conn, error) { return socks.Dial(proxyURI)("tcp", addr) }
[ -0.2879549562931061, 0.6224905252456665, 0.2804781496524811, -0.12873594462871552, -0.03247800096869469, -1.1963914632797241, -0.07600011676549911, 0.5267690420150757, 0.183379128575325, -0.36995404958724976, 0.59152752161026, 0.40561583638191223, -0.3170633018016815, 1.0470807552337646, ...
func newMirrorChecker(context *clusterd.Context, client client.Client, clusterInfo *cephclient.ClusterInfo, namespacedName types.NamespacedName, fsSpec *cephv1.FilesystemSpec, fsName string) *mirrorChecker { c := &mirrorChecker{ context: context, interval: defaultHealthCheckInterval, clusterInfo: ...
[ -0.14523299038410187, -0.8364985585212708, 0.42385295033454895, 0.0321212038397789, -1.0900394916534424, 0.39082279801368713, -0.19010606408119202, 0.9891344308853149, -0.22190545499324799, -0.5973772406578064, 0.24257421493530273, 0.8685417771339417, -0.04175284877419472, 1.49150145053863...
func (c *mirrorChecker) checkMirroring(context context.Context) { // check the mirroring health immediately before starting the loop err := c.checkMirroringHealth() if err != nil { c.updateStatusMirroring(nil, nil, err.Error()) logger.Debugf("failed to check filesystem mirroring status %q. %v", c.namespacedName....
[ -0.0593123622238636, -0.3690810203552246, 0.568259060382843, 0.10358107835054398, 0.039337869733572006, 0.8703365921974182, -0.19194984436035156, 0.29897424578666687, -0.05041204392910004, 0.2152273803949356, 0.3439845144748688, 0.9345720410346985, -0.20397965610027313, 1.5432428121566772,...
func (client *Client) UpdateQuotas(tenantID string, quotas []types.QuotaDetails) error { if !client.IsPrivileged() { return errors.New("This command is only available to admins") } url, err := client.getCiaoQuotasResource() if err != nil { return errors.Wrap(err, "Error getting quotas resource") } url = fmt...
[ -0.8238913416862488, 0.0987517461180687, 0.18702007830142975, 0.4013018310070038, -0.18075795471668243, 0.6802126169204712, -0.30068376660346985, -0.9919724464416504, -0.4158437252044678, 1.4029942750930786, -0.0330430306494236, 1.268741488456726, -0.6790880560874939, -0.13071143627166748,...
func (client *Client) ListQuotas(tenantID string) ([]types.QuotaDetails, error) { var result types.QuotaListResponse url, err := client.getCiaoQuotasResource() if err != nil { return result.Quotas, errors.Wrap(err, "Error getting quotas resource") } if tenantID != "" { url = fmt.Sprintf("%s/%s/quotas", url, ...
[ -0.24238018691539764, -0.1319066286087036, 0.2240343987941742, 0.1727392077445984, -0.03997129946947098, -0.4449981153011322, -1.0242124795913696, -0.8080524802207947, 0.6448802947998047, 1.0551360845565796, 0.27342653274536133, 0.8985413908958435, -0.029662594199180603, 0.6222997307777405...
func (client *Client) GetTenantConfig(ID string) (types.TenantConfig, error) { var config types.TenantConfig url, err := client.getCiaoTenantRef(ID) if err != nil { return config, err } err = client.getResource(url, api.TenantsV1, nil, &config) return config, err }
[ -0.3009321093559265, 0.0872017964720726, 0.3051411807537079, -0.10075762867927551, -0.7192987203598022, -0.533151388168335, -0.3788631856441498, 0.3259214460849762, -0.2833413779735565, 1.454209327697754, -1.001192569732666, 0.8337152600288391, -0.45165500044822693, 0.46838870644569397, ...
func (client *Client) UpdateTenantConfig(ID string, config types.TenantConfig) error { url, err := client.getCiaoTenantRef(ID) if err != nil { return err } var oldconfig types.TenantConfig err = client.getResource(url, api.TenantsV1, nil, &oldconfig) if err != nil { return err } a, err := json.Marshal(old...
[ -1.0923781394958496, -0.5258200168609619, 0.7043598294258118, -0.2531571090221405, -0.7132848501205444, 0.601525068283081, -0.6162147521972656, 0.15230020880699158, 0.01185718271881342, 1.5410044193267822, -0.9840087294578552, 0.5403193831443787, -0.44975006580352783, 0.49018043279647827, ...
func (client *Client) CreateTenantConfig(tenantID string, config types.TenantConfig) (types.TenantSummary, error) { var req types.TenantRequest var summary types.TenantSummary if !client.IsPrivileged() { return summary, errors.New("This command is only available to admins") } url, err := client.getCiaoTenantsR...
[ -0.3931152820587158, 0.2740418612957001, 0.3834580183029175, -0.36767715215682983, -0.18557891249656677, 0.5607497096061707, -0.8354743123054504, 0.11611784249544144, -0.1967410445213318, 1.4386473894119263, -0.8994357585906982, 0.8545821309089661, -0.5367776155471802, 0.6628004312515259, ...
func (client *Client) DeleteTenant(tenantID string) error { if !client.IsPrivileged() { return errors.New("This command is only available to admins") } url, err := client.getCiaoTenantRef(tenantID) if err != nil { return err } return client.deleteResource(url, api.TenantsV1) }
[ -0.25126171112060547, -0.019591063261032104, 0.19736425578594208, -0.19860558211803436, -0.19551125168800354, 0.5679104924201965, 0.3773164451122284, -0.1627071499824524, 0.5784643888473511, 0.3160209655761719, -0.04741080477833748, 1.305985689163208, -0.6324805021286011, 0.504472434520721...
func (client *Client) ListTenants() (types.TenantsListResponse, error) { var tenants types.TenantsListResponse url, err := client.getCiaoTenantsResource() if err != nil { return tenants, err } err = client.getResource(url, api.TenantsV1, nil, &tenants) return tenants, err }
[ -0.8130332231521606, -0.6659071445465088, 0.181003138422966, -0.369635671377182, -0.0032362409401685, -0.7840667366981506, -0.4212568402290344, 0.21951013803482056, 0.6612008810043335, 0.8143178820610046, -0.3862321078777313, 0.6642332077026367, -0.8471951484680176, 0.2776036262512207, -...
func ReadAll(count int, stream []byte, out []uint32) { if decode.GetMode() == shared.Fast { ReadAllFast(count, stream, out) } else { ReadAllScalar(count, stream, out) } }
[ 0.9651150703430176, 0.06893471628427505, 0.36993396282196045, 1.2027629613876343, -0.46934667229652405, -0.16675780713558197, -0.1846407651901245, -0.16617979109287262, -0.7096877098083496, -0.2969827353954315, 0.7034487128257751, 0.4252956509590149, 0.36764705181121826, 1.1547653675079346...
func ReadAllDelta(count int, stream []byte, out []uint32, prev uint32) { if decode.GetMode() == shared.Fast { ReadAllDeltaFast(count, stream, out, prev) } else { ReadAllDeltaScalar(count, stream, out, prev) } }
[ 0.7978333830833435, -0.0884239450097084, 0.6632169485092163, 1.0924090147018433, -0.7932305932044983, 0.043543945997953415, 0.3016744554042816, -0.15363642573356628, -0.5852298736572266, -0.3746258318424225, 0.18403498828411102, 0.6983809471130371, 0.11022347211837769, 0.9524774551391602, ...
func ReadAllScalar(count int, stream []byte, out []uint32) { var ( ctrlLen = (count + 3) / 4 dataPos = ctrlLen ctrlPos = 0 decoded = 0 lowestJump = count &^ (jump - 1) lowest4 = count &^ 3 ) for ; decoded < lowestJump; decoded += jump { data := stream[dataPos:] ctrls := stream[ctrlPos :...
[ 0.9246670007705688, -0.32482054829597473, 0.7305655479431152, -0.08847687393426895, -0.562159538269043, -0.44237929582595825, -0.10080286115407944, -0.8487663865089417, -0.2970885634422302, -0.6161046028137207, -0.00561002129688859, -0.16890747845172882, -0.23165807127952576, 0.76974546909...
func ReadAllDeltaScalar(count int, stream []byte, out []uint32, prev uint32) { var ( ctrlLen = (count + 3) / 4 dataPos = ctrlLen ctrlPos = 0 decoded = 0 lowestJump = count &^ (jump - 1) lowest4 = count &^ 3 ) for ; decoded < lowestJump; decoded += jump { data := stream[dataPos:] ctrls :...
[ 1.0872502326965332, -0.20568491518497467, 0.7849025726318359, -0.064209945499897, -0.40231046080589294, -0.253048837184906, 0.5762293338775635, -0.9278185963630676, -0.11475426703691483, -0.8646712303161621, -0.3182293176651001, 0.09621455520391464, -0.0789434090256691, 0.7055549621582031,...
func (in *Build) DeepCopyInto(out *Build) { *out = *in if in.Path != nil { in, out := &in.Path, &out.Path if *in == nil { *out = nil } else { *out = new(tree.Path) **out = **in } } if in.Version != nil { in, out := &in.Version, &out.Version if *in == nil { *out = nil } else { *out = new...
[ 0.48094886541366577, -0.7281798124313354, 0.5670855641365051, 0.2080458104610443, -0.4593197703361511, 0.39395877718925476, -0.1958450824022293, 0.9095593690872192, -0.8156141042709351, -0.32245078682899475, -0.9899044036865234, 0.8619290590286255, -0.23675356805324554, -0.1463201493024826...
func (in *Build) DeepCopy() *Build { if in == nil { return nil } out := new(Build) in.DeepCopyInto(out) return out }
[ -0.25624072551727295, -0.5053526759147644, 0.20841288566589355, 1.761118769645691, -0.007956800051033497, 0.7718623876571655, 0.3362319767475128, -0.09028413146734238, -0.06603612005710602, -0.9261618852615356, -0.037658050656318665, 0.5214957594871521, -1.1530026197433472, -1.025104999542...
func (in *BuildStatus) DeepCopyInto(out *BuildStatus) { *out = *in if in.StartTimestamp != nil { in, out := &in.StartTimestamp, &out.StartTimestamp if *in == nil { *out = nil } else { *out = (*in).DeepCopy() } } if in.CompletionTimestamp != nil { in, out := &in.CompletionTimestamp, &out.CompletionTi...
[ 0.32619979977607727, -0.5936899781227112, 0.6770168542861938, 0.02029266580939293, -0.6225461363792419, 0.2218133509159088, -0.06316064298152924, 0.26508188247680664, -0.6616131067276001, -0.39015644788742065, -0.8830615282058716, 0.3332533538341522, -0.2127240002155304, -0.319042384624481...
func (in *BuildStatus) DeepCopy() *BuildStatus { if in == nil { return nil } out := new(BuildStatus) in.DeepCopyInto(out) return out }
[ -0.03371486812829971, -0.1850174516439438, -0.1735685169696808, 0.6082297563552856, -0.10109804570674896, 0.4788825213909149, 0.03491394221782684, 0.2812919020652771, -0.1605205088853836, -0.7694904804229736, -1.1242271661758423, 0.4906831979751587, -0.07881835848093033, -0.742118060588836...
func (in *ContainerBuild) DeepCopyInto(out *ContainerBuild) { *out = *in in.Status.DeepCopyInto(&out.Status) return }
[ 1.2701268196105957, -0.7743050456047058, 0.30314207077026367, 0.80246502161026, -0.7491243481636047, 0.4849226772785187, -0.11458036303520203, 1.1119530200958252, -0.8718744516372681, -1.171797752380371, -0.7288500666618347, 1.069822072982788, -0.17439286410808563, -0.09792305529117584, ...
func (in *ContainerBuild) DeepCopy() *ContainerBuild { if in == nil { return nil } out := new(ContainerBuild) in.DeepCopyInto(out) return out }
[ 0.48530903458595276, -0.6450960636138916, 0.17205238342285156, 1.683214545249939, -0.5895125269889832, 0.20949740707874298, -0.20519620180130005, -0.03919127583503723, 0.10554900765419006, -1.3988776206970215, 0.2216910868883133, 0.03896342217922211, -1.0557962656021118, -0.180276870727539...
func (in *ContainerBuildFailureInfo) DeepCopyInto(out *ContainerBuildFailureInfo) { *out = *in return }
[ 1.1349300146102905, -0.4055842459201813, 0.08228933066129684, 0.16869531571865082, -0.4310503304004669, 0.3386554419994354, 0.3521938920021057, 0.6651632189750671, -1.3302561044692993, -1.7826690673828125, -0.39972275495529175, 0.7825492024421692, -0.10110046714544296, -0.38154327869415283...
func (in *ContainerBuildFailureInfo) DeepCopy() *ContainerBuildFailureInfo { if in == nil { return nil } out := new(ContainerBuildFailureInfo) in.DeepCopyInto(out) return out }
[ 0.28080347180366516, -0.5776477456092834, -0.27425622940063477, 0.32780325412750244, -0.17828021943569183, 0.19527176022529602, 0.2974450886249542, -0.0687623918056488, -0.9783971905708313, -1.6176756620407104, -0.2663930058479309, -0.23655933141708374, -0.19350728392601013, -0.02990422211...
func (in *ContainerBuildStatus) DeepCopyInto(out *ContainerBuildStatus) { *out = *in if in.StartTimestamp != nil { in, out := &in.StartTimestamp, &out.StartTimestamp if *in == nil { *out = nil } else { *out = (*in).DeepCopy() } } if in.CompletionTimestamp != nil { in, out := &in.CompletionTimestamp,...
[ 0.7285676598548889, -0.4098052382469177, 0.5312918424606323, 0.02067258022725582, -0.3710162043571472, 0.16137203574180603, -0.04785367101430893, 0.14844846725463867, -0.651589572429657, -0.47534090280532837, -0.7235957384109497, 0.5325621962547302, -0.49351736903190613, -0.274151682853698...
func (in *ContainerBuildStatus) DeepCopy() *ContainerBuildStatus { if in == nil { return nil } out := new(ContainerBuildStatus) in.DeepCopyInto(out) return out }
[ 0.23785637319087982, -0.08527888357639313, -0.5719611644744873, 0.9648968577384949, -0.11572802811861038, 0.555368959903717, -0.10183023661375046, -0.024729279801249504, 0.15149043500423431, -0.7308493256568909, -0.921492874622345, -0.09287311136722565, -0.24861732125282288, -0.33182302117...
func (in *ContainerLogOptions) DeepCopyInto(out *ContainerLogOptions) { *out = *in if in.Tail != nil { in, out := &in.Tail, &out.Tail if *in == nil { *out = nil } else { *out = new(int64) **out = **in } } return }
[ 0.7074020504951477, 0.3791063725948334, 0.5488262176513672, 0.04413525387644768, -0.4946734607219696, -0.00641619274392724, -0.06280611455440521, -0.19809038937091827, -0.6619223356246948, -0.26489749550819397, -0.7352498769760132, 1.271462321281433, -0.225280299782753, -0.4050684869289398...
func (in *ContainerLogOptions) DeepCopy() *ContainerLogOptions { if in == nil { return nil } out := new(ContainerLogOptions) in.DeepCopyInto(out) return out }
[ -0.05840252339839935, 0.13377360999584198, 0.03637709841132164, 0.926749050617218, -0.10838516801595688, -0.2113860696554184, -0.1167960911989212, -0.7277549505233765, 0.36718055605888367, -0.40915361046791077, -0.25615695118904114, 0.5067110657691956, -0.4241705536842346, -0.7241045236587...
func (in *Deploy) DeepCopyInto(out *Deploy) { *out = *in if in.Build != nil { in, out := &in.Build, &out.Build if *in == nil { *out = nil } else { *out = new(BuildID) **out = **in } } if in.Path != nil { in, out := &in.Path, &out.Path if *in == nil { *out = nil } else { *out = new(tree....
[ 0.30667099356651306, -0.872007429599762, 0.6028817296028137, -0.07513493299484253, -0.6600902676582336, -0.048175785690546036, -0.26398661732673645, 0.7322642803192139, -0.634999692440033, 0.24358056485652924, -0.7238009572029114, 0.5053156614303589, -0.1550590842962265, -0.121484428644180...
func (in *Deploy) DeepCopy() *Deploy { if in == nil { return nil } out := new(Deploy) in.DeepCopyInto(out) return out }
[ -0.2206520438194275, -0.4032735526561737, 0.303026020526886, 1.056810736656189, -0.5654735565185547, -0.0005440660170279443, 0.0338943712413311, 0.03387058526277542, 0.23953069746494293, 0.08781268447637558, 0.0445137545466423, 0.047219764441251755, -0.933436393737793, -0.24405567348003387...
func (in *DeployStatus) DeepCopyInto(out *DeployStatus) { *out = *in if in.Build != nil { in, out := &in.Build, &out.Build if *in == nil { *out = nil } else { *out = new(BuildID) **out = **in } } if in.Path != nil { in, out := &in.Path, &out.Path if *in == nil { *out = nil } else { *out...
[ 0.4190170168876648, -0.6734427809715271, 0.7314010858535767, -0.360370934009552, -0.6568318009376526, -0.166722372174263, -0.29842573404312134, 0.2814003527164459, -0.46490126848220825, 0.01626351848244667, -0.8077998757362366, 0.2597168982028961, -0.17031103372573853, -0.19745300710201263...
func (in *DeployStatus) DeepCopy() *DeployStatus { if in == nil { return nil } out := new(DeployStatus) in.DeepCopyInto(out) return out }
[ -0.027582578361034393, -0.3247731328010559, -0.040404703468084335, -0.39166995882987976, -0.08737476170063019, 0.07893402874469757, -0.10404638200998306, -0.17621847987174988, 0.5030477643013, 0.1306944638490677, -1.0059757232666016, -0.14341509342193604, 0.26173409819602966, -0.0567461512...
func (in *Error) DeepCopyInto(out *Error) { *out = *in return }
[ -0.012926320545375347, -0.25566643476486206, 0.6126551628112793, 0.17824874818325043, -0.6936938166618347, 0.5476085543632507, -0.030910560861229897, 0.9713140726089478, -0.4103727340698242, -0.4242529273033142, -0.7400326132774353, 1.5787272453308105, 0.21005788445472717, -0.4157257676124...
func (in *Job) DeepCopyInto(out *Job) { *out = *in in.Status.DeepCopyInto(&out.Status) return }
[ 0.9263299107551575, -0.22383861243724823, 0.3999245762825012, 0.3420366942882538, -1.4640964269638062, 0.5171641707420349, -0.4876658618450165, 1.060328722000122, -1.1204630136489868, -0.5828918218612671, -0.798289954662323, 1.0922998189926147, -0.18378667533397675, -0.0876724049448967, ...
func (in *Job) DeepCopy() *Job { if in == nil { return nil } out := new(Job) in.DeepCopyInto(out) return out }
[ 0.26650270819664, 0.3416050374507904, 0.3054322898387909, 1.4511061906814575, -0.837496817111969, 0.4090270698070526, -0.056729868054389954, 0.3808387219905853, -0.05367232486605644, -0.9750967025756836, -0.10876758396625519, 0.08371037244796753, -1.2188812494277954, -0.7408162951469421, ...
func (in *JobStatus) DeepCopyInto(out *JobStatus) { *out = *in if in.StartTimestamp != nil { in, out := &in.StartTimestamp, &out.StartTimestamp if *in == nil { *out = nil } else { *out = (*in).DeepCopy() } } if in.CompletionTimestamp != nil { in, out := &in.CompletionTimestamp, &out.CompletionTimest...
[ 0.5379355549812317, -0.1074519231915474, 0.696017324924469, -0.1895148903131485, -0.8717814683914185, 0.09158625453710556, -0.6152350902557373, 0.2993714213371277, -1.0237070322036743, -0.3967587947845459, -0.7802409529685974, 0.7386627197265625, 0.15167111158370972, -0.4627690315246582, ...
func (in *JobStatus) DeepCopy() *JobStatus { if in == nil { return nil } out := new(JobStatus) in.DeepCopyInto(out) return out }
[ 0.03968363627791405, 0.12393904477357864, 0.04384030029177666, 0.1194966584444046, -0.8354288339614868, 0.05169869214296341, -0.6639996767044067, -0.06433381140232086, -0.5129919052124023, -1.1587437391281128, -0.8728087544441223, 0.20759278535842896, 0.12447451800107956, -0.62648856639862...
func (in *NodePool) DeepCopyInto(out *NodePool) { *out = *in in.Status.DeepCopyInto(&out.Status) return }
[ 0.17592176795005798, 0.0711006373167038, 0.3055650591850281, 0.00399158988147974, -0.9606388807296753, 0.6727178692817688, 0.26361051201820374, 0.1274886131286621, -1.2113523483276367, 0.024061083793640137, -0.5611840486526489, 1.3576725721359253, 0.0039983876049518585, -0.2214971780776977...
func (in *NodePool) DeepCopy() *NodePool { if in == nil { return nil } out := new(NodePool) in.DeepCopyInto(out) return out }
[ -1.050283432006836, 0.4335092604160309, 0.13746297359466553, 0.6325746774673462, -0.9183152318000793, 0.3675718307495117, 0.6498751640319824, -1.170946478843689, -0.29535534977912903, -0.07109937071800232, -0.22311186790466309, 0.6209887862205505, -0.8411090970039368, -0.3787696659564972, ...
func (in *NodePoolFailureInfo) DeepCopyInto(out *NodePoolFailureInfo) { *out = *in in.Time.DeepCopyInto(&out.Time) return }
[ 0.3994215726852417, 0.297519713640213, 0.13303633034229279, -0.34977254271507263, -0.9788186550140381, 0.2278948873281479, 0.040665581822395325, -0.4480120837688446, -1.7328298091888428, -0.8795931935310364, -0.37223106622695923, 0.6970138549804688, 0.3735789656639099, 0.174970343708992, ...
func (in *NodePoolFailureInfo) DeepCopy() *NodePoolFailureInfo { if in == nil { return nil } out := new(NodePoolFailureInfo) in.DeepCopyInto(out) return out }
[ -0.3037554621696472, -0.2664695084095001, -0.42412179708480835, -0.19352462887763977, -0.7777490615844727, 0.14772826433181763, 0.010416612029075623, -1.059495449066162, -1.328061580657959, -1.492447853088379, -0.3300670385360718, -0.49052315950393677, 0.10323624312877655, 0.18003493547439...
func (in *NodePoolStatus) DeepCopyInto(out *NodePoolStatus) { *out = *in if in.FailureInfo != nil { in, out := &in.FailureInfo, &out.FailureInfo if *in == nil { *out = nil } else { *out = new(NodePoolFailureInfo) (*in).DeepCopyInto(*out) } } return }
[ 0.19572420418262482, 0.06228660047054291, 0.12878648936748505, -0.5689812302589417, -0.7600826621055603, 0.4609157145023346, -0.17085891962051392, -0.31549426913261414, -1.2456246614456177, -0.8217836022377014, -0.6972449421882629, 0.5609216094017029, 0.18554644286632538, -0.19084005057811...
func (in *NodePoolStatus) DeepCopy() *NodePoolStatus { if in == nil { return nil } out := new(NodePoolStatus) in.DeepCopyInto(out) return out }
[ -0.681358814239502, 0.09322325885295868, -0.5963839888572693, -0.27259543538093567, -0.760416567325592, 0.34896329045295715, 0.03016958013176918, -1.3372880220413208, -0.4269188344478607, -0.1251935362815857, -1.032160758972168, 0.17483671009540558, 0.1135493665933609, -0.05260325595736503...
func (in *Secret) DeepCopyInto(out *Secret) { *out = *in return }
[ 0.6598631143569946, -0.41316068172454834, 0.5597413778305054, 0.7009451389312744, -0.940365731716156, 0.7239649891853333, -0.5217017531394958, 0.880666196346283, -1.1468056440353394, -0.377781480550766, -1.5280299186706543, 1.4108444452285767, 0.13103555142879486, -0.26110824942588806, 0...
func (in *Secret) DeepCopy() *Secret { if in == nil { return nil } out := new(Secret) in.DeepCopyInto(out) return out }
[ 0.4570990800857544, -0.23592011630535126, 0.37129899859428406, 1.6546294689178467, -0.31118232011795044, -0.06339208781719208, -0.2147555649280548, -0.1569410264492035, -0.029118217527866364, -0.2798880338668823, -1.209144949913025, 0.3975171744823456, -0.6964794993400574, -0.5300726294517...
func (in *Service) DeepCopyInto(out *Service) { *out = *in in.Status.DeepCopyInto(&out.Status) return }
[ 0.39086246490478516, -0.33371779322624207, 0.41120433807373047, 0.16377811133861542, -1.341650366783142, 0.4849259555339813, -0.39241960644721985, 0.7798026204109192, -0.6326646208763123, -0.4519668221473694, -0.5576936602592468, 1.6002349853515625, 0.002795398235321045, -0.146902307868003...
func (in *Service) DeepCopy() *Service { if in == nil { return nil } out := new(Service) in.DeepCopyInto(out) return out }
[ -0.45013511180877686, -0.2803586423397064, 0.2770407199859619, 1.040784478187561, -0.47692403197288513, 0.3081625998020172, 0.23418490588665009, -0.37187129259109497, 0.3860190510749817, -0.7111013531684875, -0.35846441984176636, 0.7935816049575806, -1.0394338369369507, -0.5209700465202332...
func (in *ServiceFailureInfo) DeepCopyInto(out *ServiceFailureInfo) { *out = *in in.Time.DeepCopyInto(&out.Time) return }
[ 0.9095091223716736, 0.1575838178396225, 0.33227843046188354, 0.00639386149123311, -1.5182915925979614, 0.2712913155555725, -0.10590261220932007, 0.23078185319900513, -1.5364071130752563, -1.0598026514053345, -0.5812764763832092, 0.8659898042678833, 0.40358617901802063, 0.12987063825130463,...
func (in *ServiceFailureInfo) DeepCopy() *ServiceFailureInfo { if in == nil { return nil } out := new(ServiceFailureInfo) in.DeepCopyInto(out) return out }
[ 0.15988996624946594, -0.37780308723449707, -0.16041703522205353, 0.2524758577346802, -0.9676132798194885, 0.15571840107440948, 0.24050480127334595, -0.17871715128421783, -1.0179860591888428, -1.2435811758041382, -0.7202669382095337, 0.038003966212272644, -0.12633705139160156, 0.27389082312...
func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus) { *out = *in if in.Message != nil { in, out := &in.Message, &out.Message if *in == nil { *out = nil } else { *out = new(string) **out = **in } } if in.FailureInfo != nil { in, out := &in.FailureInfo, &out.FailureInfo if *in == nil { *...
[ 0.3241787254810333, -0.13041584193706512, 0.5629631280899048, -0.4494286775588989, -1.0810519456863403, 0.3302019238471985, -0.26766037940979004, 0.15169218182563782, -1.105123519897461, -0.47451555728912354, -0.5499674677848816, 0.8496125936508179, -0.2521211504936218, -0.3400958776473999...
func (in *ServiceStatus) DeepCopy() *ServiceStatus { if in == nil { return nil } out := new(ServiceStatus) in.DeepCopyInto(out) return out }
[ -0.04640109837055206, 0.0815703496336937, -0.054542627185583115, 0.13231293857097626, -0.9580822587013245, 0.24391289055347443, 0.01792021095752716, -0.4939703345298767, -0.43009474873542786, -0.6416624784469604, -0.5596737861633301, 0.3257831633090973, -0.7121797800064087, -0.198858052492...
func (in *System) DeepCopyInto(out *System) { *out = *in in.Status.DeepCopyInto(&out.Status) return }
[ 0.3359855115413666, -0.3917616903781891, 0.3354700803756714, 0.3497066795825958, -0.9007091522216797, 0.7226945757865906, -0.1936628371477127, 0.5744713544845581, -0.5177303552627563, -0.7985042929649353, -0.5585746765136719, 1.2323344945907593, 0.1621515303850174, 0.32463738322257996, -...
func (in *System) DeepCopy() *System { if in == nil { return nil } out := new(System) in.DeepCopyInto(out) return out }
[ -0.684593141078949, -0.03504834324121475, 0.3207556903362274, 1.1652143001556396, -0.19346852600574493, 0.3000711500644684, 0.08236073702573776, -0.6865829825401306, 0.6842334866523743, -1.151410460472107, -0.09142918139696121, 0.5413404703140259, -0.5079934597015381, -0.32717591524124146,...
func (in *SystemStatus) DeepCopyInto(out *SystemStatus) { *out = *in if in.Version != nil { in, out := &in.Version, &out.Version if *in == nil { *out = nil } else { *out = new(Version) **out = **in } } in.CreationTimestamp.DeepCopyInto(&out.CreationTimestamp) if in.DeletionTimestamp != nil { in,...
[ 0.7715288400650024, -0.2590447664260864, 0.40663930773735046, 0.26737314462661743, -0.7320406436920166, 0.11780443042516708, -0.6274194717407227, 0.564647376537323, -0.5046364068984985, -0.5104487538337708, -1.2479515075683594, 0.7019193768501282, -0.07672000676393509, 0.05707550421357155,...
func (in *SystemStatus) DeepCopy() *SystemStatus { if in == nil { return nil } out := new(SystemStatus) in.DeepCopyInto(out) return out }
[ -0.0030186614021658897, -0.3925796151161194, -0.07441192120313644, 0.6179434061050415, -0.5595244765281677, -0.23196545243263245, -0.4162679612636566, 0.20606361329555511, 0.13621221482753754, -0.8580921292304993, -1.5062133073806763, 0.24125324189662933, -0.192709818482399, 0.181464716792...
func (in *Teardown) DeepCopyInto(out *Teardown) { *out = *in in.Status.DeepCopyInto(&out.Status) return }
[ 0.7011779546737671, -0.3665958046913147, 0.4589921832084656, 0.16446438431739807, -0.9139333367347717, 0.35865142941474915, 0.38707101345062256, 1.1633045673370361, -0.4231184124946594, -0.21719788014888763, -0.6544203162193298, 0.6882209181785583, 0.0018420134438201785, -0.401630669832229...
func (in *Teardown) DeepCopy() *Teardown { if in == nil { return nil } out := new(Teardown) in.DeepCopyInto(out) return out }
[ 0.10566823929548264, -0.1678924560546875, 0.356355220079422, 0.9538959264755249, -0.21209341287612915, 0.2837114930152893, 1.2266950607299805, 0.20777183771133423, 0.7524416446685791, -0.37193796038627625, -0.0967642143368721, -0.23804594576358795, -0.7403529286384583, -0.4948456287384033,...
func (in *TeardownStatus) DeepCopyInto(out *TeardownStatus) { *out = *in if in.StartTimestamp != nil { in, out := &in.StartTimestamp, &out.StartTimestamp if *in == nil { *out = nil } else { *out = (*in).DeepCopy() } } if in.CompletionTimestamp != nil { in, out := &in.CompletionTimestamp, &out.Comple...
[ 0.3906101882457733, -0.22007118165493011, 0.6964120864868164, -0.16040121018886566, -0.7785816788673401, 0.11112862080335617, 0.2761320471763611, 0.4996822476387024, -0.5726180672645569, -0.13349047303199768, -0.46574169397354126, 0.2874549925327301, -0.09263252466917038, -0.52679699659347...
func (in *TeardownStatus) DeepCopy() *TeardownStatus { if in == nil { return nil } out := new(TeardownStatus) in.DeepCopyInto(out) return out }
[ -0.12920868396759033, -0.2658604681491852, -0.16004815697669983, 0.08970212936401367, -0.37029534578323364, 0.4462505578994751, 1.0016288757324219, -0.28329262137413025, 0.18792450428009033, -0.5818169713020325, -0.47058576345443726, -0.506816029548645, -0.16907280683517456, -0.67852634191...
func (in *WorkloadBuild) DeepCopyInto(out *WorkloadBuild) { *out = *in in.ContainerBuild.DeepCopyInto(&out.ContainerBuild) if in.Sidecars != nil { in, out := &in.Sidecars, &out.Sidecars *out = make(map[string]ContainerBuild, len(*in)) for key, val := range *in { newVal := new(ContainerBuild) val.DeepCopy...
[ 0.6410802602767944, -0.1876562535762787, 0.5723181366920471, -0.08705127984285355, -0.690624475479126, 0.4722684621810913, -0.10698739439249039, 0.3909834325313568, -1.038214921951294, -0.6074886918067932, -0.4575815498828888, 0.47902777791023254, -0.5922021269798279, -0.12586022913455963,...
func (in *WorkloadBuild) DeepCopy() *WorkloadBuild { if in == nil { return nil } out := new(WorkloadBuild) in.DeepCopyInto(out) return out }
[ 0.4738013744354248, -0.20559601485729218, 0.1496611386537552, 0.6099104285240173, -0.3795526623725891, 0.6866980195045471, 0.10752660036087036, -0.29201528429985046, 0.0023858773056417704, -0.3911018967628479, -0.03176553174853325, 0.6247317790985107, -1.7190704345703125, -0.26618781685829...
func UserInit(handler user.Handler) user.Route { return &userHandlers{ handler: handler, } }
[ 0.27032458782196045, -0.501420259475708, 0.15936174988746643, -0.15225373208522797, -0.5176430940628052, 0.699528157711029, 0.15725861489772797, -0.018515244126319885, 0.22505980730056763, -0.8410152196884155, -1.4951791763305664, 0.9541637301445007, 0.6766548156738281, -0.0674645081162452...
func (uh *userHandlers) Routers() []*routers.Router { return []*routers.Router{ &routers.Router{ Method: http.MethodGet, URL: "/test", Handler: uh.handler.Test, }, &routers.Router{ Method: http.MethodGet, URL: "/account/profile", Handler: uh.handler.ShowProfile, }, &routers.Route...
[ -0.6680171489715576, 0.18458518385887146, 0.2827734351158142, 0.6844120621681213, 0.2260589748620987, 0.4269063472747803, 0.14244668185710907, -0.3279871940612793, 0.6030194759368896, -1.0004323720932007, -0.18485304713249207, 0.7697498798370361, 0.3169589638710022, 0.11186309158802032, ...
func Verify(packet *types.Packet) error { if packet.Type == types.PacketTypeConnect { return nil // ignore connect } mechine := &models.Mechine{Code: packet.Auth.Code} if err := mechine.Read("Code"); err != nil { return err } if mechine.Code == packet.Auth.Code && mechine.Secret == packet.Auth.Secret { retu...
[ -0.2784677743911743, 0.3794153034687042, 0.5132744908332825, 0.32634294033050537, 0.6526357531547546, -0.0612163320183754, -0.9756051898002625, -1.0111143589019775, 0.14082303643226624, -0.20806388556957245, -1.2330420017242432, 0.9047548770904541, -0.047825124114751816, 0.4532753825187683...
func printListNode(l *ListNode) { work := l for work != nil { fmt.Print(work.Val) if work.Next != nil { fmt.Print(" -> ") } work = work.Next } fmt.Println() }
[ -0.26531141996383667, -0.38223862648010254, 0.8336694240570068, -0.09681938588619232, -0.3065483570098877, 0.3769276738166809, -0.6707081198692322, 0.22306139767169952, 0.4842168688774109, -0.37929460406303406, -1.0419139862060547, 0.8230008482933044, -0.1983279585838318, 1.740329265594482...
func encodeRequest(ctx context.Context, r *http.Request, request interface{}) error { var buf bytes.Buffer err := json.NewEncoder(&buf).Encode(request) if err != nil { log.Print(err) return err } r.Body = ioutil.NopCloser(&buf) return nil }
[ -0.9903910756111145, -0.12031342089176178, 0.567101240158081, -0.4909927248954773, 0.09989823400974274, 0.746040940284729, -0.41566896438598633, -0.7232226133346558, 0.4197118878364563, 0.09858682751655579, 0.18834710121154785, 1.3135275840759277, -0.21111147105693817, 0.6297553777694702, ...
func Constructor() MinStack { return MinStack{Stack: make([]int, 0)} }
[ 0.15165968239307404, 0.2640673816204071, 0.19922271370887756, 1.1115882396697998, -0.7391144037246704, -0.5663639307022095, 0.717791736125946, -0.12166384607553482, 0.4916212260723114, -0.5509065985679626, -0.9727905988693237, -0.4366806149482727, -0.30912110209465027, 0.5231385231018066, ...
func GreetingExtendedASCII() string { return "Salut, ça va °-) Ça coute €50" + "Salut, ça va °-) Κοστίζει €50" }
[ 0.30156761407852173, 0.1715438812971115, 0.38814643025398254, -0.0389644019305706, -2.0096592903137207, 1.2230464220046997, -1.5768598318099976, 0.2553735673427582, -0.04844103381037712, 0.2679855525493622, -0.8094436526298523, 0.7683190107345581, 0.25543543696403503, 0.4256944954395294, ...
func WithForcedWriter(w io.Writer) LoggersOption { return func(l *Loggers) { l.writer = w } }
[ -0.12011570483446121, -0.578900158405304, 0.18795515596866608, 0.18976150453090668, 0.12693217396736145, -0.5583488345146179, 0.005645660683512688, -0.34904664754867554, 0.38754966855049133, 0.07613760232925415, -0.42107731103897095, -0.7262980937957764, -0.11147652566432953, 1.39517486095...
func NewLoggers(opts ...LoggersOption) *Loggers { l := &Loggers{} for _, opt := range opts { opt(l) } return l }
[ -0.7311818599700928, -0.1628197729587555, 0.30739647150039673, 0.6708948612213135, 0.21791282296180725, -0.9441171884536743, -1.270141363143921, -0.22387509047985077, 0.27452555298805237, 0.046877261251211166, -0.18869024515151978, 0.7181756496429443, -1.3138507604599, 0.4650474190711975, ...
func (l Loggers) NewLogger(name string, level logging.Level, handlers ...logging.Handler) *logging.Logger { hs := []logging.Handler{} if l.writer != nil { hs = append(hs, &logging.WriteHandler{ Formatter: &logging.StandardFormatter{TimeFormat: logging.StandardTimeFormat}, Writer: l.writer, Level: lo...
[ -0.6271007061004639, -0.5369731187820435, 0.5631273984909058, 0.36406269669532776, -0.6676188707351685, -0.3337082266807556, -0.7989234328269958, 0.306172639131546, -0.24232497811317444, -0.35906365513801575, -0.1943053901195526, -0.34613046050071716, -0.674443781375885, 1.0914695262908936...
func NewSyslogHandler(facility logging.SyslogFacility, tag, network, address string) logging.Handler { if facility != "" { return &logging.SyslogHandler{ Formatter: &logging.MessageFormatter{}, Tag: tag, Facility: facility.Priority(), Severity: syslog.Priority(logging.DEBUG), Network: networ...
[ 1.0945073366165161, -0.35062962770462036, 0.09371040761470795, 0.3155669867992401, -0.5598423480987549, -1.1731215715408325, -0.8754498958587646, 0.7542187571525574, 0.3531027138233185, -0.5297790765762329, -0.8469198346138, -0.001097611733712256, -0.25137102603912354, 0.5917353630065918, ...
func NewTimedFileHandler(dir, tag string) logging.Handler { if dir != "" { return &logging.TimedFileHandler{ Formatter: &logging.StandardFormatter{TimeFormat: logging.StandardTimeFormat}, Directory: dir, FilenameLayout: "2006/01/02", FileExtension: "/" + tag + ".log", Level: loggin...
[ 0.3669215738773346, -0.9434672594070435, 0.3719627261161804, -0.38398417830467224, -0.651141881942749, 0.3703562319278717, -0.5891017913818359, -0.006636517588049173, -0.6051187515258789, -0.05854428559541702, -0.30381378531455994, -0.41724106669425964, -0.5019214153289795, 0.7431766390800...
func SetStdLogger() { logger, _ := logging.GetLogger("default") log.SetOutput(logging.NewInfoLogWriter(logger)) log.SetFlags(0) }
[ 0.8172457814216614, -0.1569226086139679, 0.5240125060081482, 0.028269605711102486, 0.45382359623908997, 0.12387955188751221, -0.03730589523911476, 0.5821972489356995, -0.8126036524772644, -0.41625359654426575, -1.0047948360443115, -0.540868878364563, -0.18841977417469025, 1.816766142845153...
func (r *TenantWebhookHandler) Handle(ctx context.Context, req admission.Request) admission.Response { obj := &catalogv1alpha1.Tenant{} if err := r.decoder.Decode(req, obj); err != nil { return admission.Errored(http.StatusBadRequest, err) } if req.Operation == adminv1beta1.Create { if err := r.validateCreate(...
[ -0.2827589213848114, 0.32888245582580566, 0.8455819487571716, 0.24542884528636932, 0.17058098316192627, 0.7086827158927917, 0.2712637484073639, -0.19809652864933014, -0.1478375494480133, 0.386062890291214, 0.8390466570854187, 0.28646036982536316, -0.7705008387565613, 0.12275167554616928, ...
func (r *TenantWebhookHandler) InjectDecoder(d *admission.Decoder) error { r.decoder = d return nil }
[ -0.036705438047647476, 0.03521690145134926, 0.3586800694465637, -0.19486118853092194, -0.5921408534049988, 0.7029972672462463, 0.034893229603767395, 0.45787811279296875, -0.09608013927936554, -0.41565659642219543, 0.059702422469854355, -0.18580324947834015, 0.12293939292430878, 1.928619384...
func (p PuppetParse) WriteModules(w io.Writer, modules []*Module) error { writer := bufio.NewWriter(w) for _, mod := range modules { if _, err := writer.WriteString(mod.String()); err != nil { return err } } return writer.Flush() }
[ -1.3526068925857544, -0.05909137800335884, 0.18565621972084045, -0.6744682788848877, 1.2646201848983765, 0.2840177118778229, -0.5602211952209473, -0.5076639652252197, -0.361917108297348, 0.2754671275615692, 0.2744489312171936, -0.4112982749938965, -1.307891607284546, 0.16648904979228973, ...