- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for newSel (0.08 sec)
-
pkg/controller/disruption/disruption_test.go
informerFactory, }, ps } func fooBar() map[string]string { return map[string]string{"foo": "bar"} } func newSel(labels map[string]string) *metav1.LabelSelector { return &metav1.LabelSelector{MatchLabels: labels} } func newSelFooBar() *metav1.LabelSelector { return newSel(map[string]string{"foo": "bar"}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
src/runtime/slice.go
// // A new backing store is allocated with space for at least newLen elements. // Existing entries [0, oldLen) are copied over to the new backing store. // Added entries [oldLen, newLen) are not initialized by growslice // (although for pointer-containing element types, they are zeroed). They // must be initialized by the caller. // Trailing entries [newLen, newCap) are zeroed. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
Cells: make([]table.Cell, 0), } row.Cells = append(row.Cells, table.NewCell(wa.Name), table.NewCell(wa.Revision)) if wa.Injected { row.Cells = append(row.Cells, table.NewCell("✔", color.FgGreen)) } else { row.Cells = append(row.Cells, table.NewCell("✘", color.FgRed)) } row.Cells = append(row.Cells, table.NewCell(wa.Reason)) return row }) w.AddHeader("WEBHOOK", "REVISION", "INJECTED", "REASON")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
num := ir.NewUnaryExpr(base.Pos, ir.OLEN, l2) // newLen := oldLen + num newLen := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT]) nodes.Append(ir.NewAssignStmt(base.Pos, newLen, ir.NewBinaryExpr(base.Pos, ir.OADD, oldLen, num))) // if uint(newLen) <= uint(oldCap) nif := ir.NewIfStmt(base.Pos, nil, nil, nil) nuint := typecheck.Conv(newLen, types.Types[types.TUINT])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
internal/grid/handlers.go
// Use Call to initiate a clientside call. func NewSingleHandler[Req, Resp RoundTripper](h HandlerID, newReq func() Req, newResp func() Resp) *SingleHandler[Req, Resp] { s := SingleHandler[Req, Resp]{id: h} s.newReq, s.recycleReq = recycleFunc[Req](newReq) s.newResp, s.recycleResp = recycleFunc[Resp](newResp) if _, ok := any(newReq()).(Recycler); ok { s.callReuseReq = true } return &s }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 27.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
t.Errorf("read cert does not match with expected cert") } // Create a new cert newCert, newkey, err := pkiutil.NewCertAndKey(testCACert, testCAKey, testCertCfg) if err != nil { t.Fatalf("couldn't generate certificate: %v", err) } // Writes the new certificate err = pkiReadWriter.Write(newCert, newkey) if err != nil { t.Fatalf("couldn't write new certificate: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho_combine_dwarf.go
if err != nil { return nil, nil, err } newSec := *sect newSec.Offset = uint32(dwarfseg.Offset) + uint32(buf.Len()) newSec.Addr = dwarfseg.Addr + uint64(buf.Len()) if compressed { newSec.Name = "__z" + sect.Name[2:] newSec.Size = uint64(len(contents)) } sects = append(sects, &newSec) buf.Write(contents) } return sects, buf.Bytes(), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 13.3K bytes - Viewed (0) -
tests/helper_test.go
func doCheckPet(t *testing.T, pet Pet, expect Pet, unscoped bool) { if pet.ID != 0 { var newPet Pet if err := db(unscoped).Where("id = ?", pet.ID).First(&newPet).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else { AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") AssertObjEqual(t, newPet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") } }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt
fun generateKey(keyStoreFile: File, alias: String): SecretKey { val newKey = KeyGenerator.getInstance(encryptionAlgorithm).generateKey() require(newKey != null) { "Failed to generate encryption key using $encryptionAlgorithm." } logger.debug("Generated key") val entry = KeyStore.SecretKeyEntry(newKey) keyStore.setEntry(alias, entry, keyProtection)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 11.9K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter.go
return certs[0], nil } // Write a certificate to files in the K8s pki managed by kubeadm func (rw *pkiCertificateReadWriter) Write(newCert *x509.Certificate, newKey crypto.Signer) error { if err := pkiutil.WriteCertAndKey(rw.certificateDir, rw.baseName, newCert, newKey); err != nil { return errors.Wrapf(err, "failed to write new certificate %s", rw.baseName) } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 01 03:09:53 UTC 2024 - 8.4K bytes - Viewed (0)