- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for newCerts (0.15 sec)
-
platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/FakeKeyStore.java
Certificate[] certs = certChains.get(alias); if (certs == null) { Certificate[] newCerts = new Certificate[1]; newCerts[0] = cert; certChains.put(alias, newCerts); } else { Certificate[] updatedCerts = Arrays.copyOf(certs, certs.length + 1); updatedCerts[certs.length] = cert;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 5K bytes - Viewed (0) -
operator/pkg/util/errs.go
return nil } return errors } return append(errors, err) } // AppendErrs appends newErrs to errors and returns the result. // If newErrs is empty, nothing is appended. func AppendErrs(errors []error, newErrs []error) Errors { if len(newErrs) == 0 { return errors } for _, e := range newErrs { errors = AppendErr(errors, e) } if len(errors) == 0 { return nil } return errors
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 3.1K bytes - Viewed (0) -
src/crypto/tls/cache_test.go
if p == nil { t.Fatal("Failed to decode certificate") } certA, err := cc.newCert(p.Bytes) if err != nil { t.Fatalf("newCert failed: %s", err) } certB, err := cc.newCert(p.Bytes) if err != nil { t.Fatalf("newCert failed: %s", err) } if certA.cert != certB.cert { t.Fatal("newCert returned a unique reference for a duplicate certificate") } if entry, ok := cc.Load(string(p.Bytes)); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 07 19:46:27 UTC 2022 - 2.6K 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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy.go
// ratcheting validation of x-kubernetes-list-type value map and set if newErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uNew.Object); len(newErrs) > 0 { if oldErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uOld.Object); len(oldErrs) == 0 { errs = append(errs, newErrs...) } } // validate x-kubernetes-validations rules
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 22:16:10 UTC 2023 - 4.6K bytes - Viewed (0) -
operator/pkg/validate/validate.go
} if !util.IsPtr(structPtr) { metrics.CRValidationErrorTotal.Increment() return util.NewErrs(fmt.Errorf("validate path %s, value: %v, expected ptr, got %T", path, structPtr, structPtr)) } structElems := reflect.ValueOf(structPtr).Elem() if !util.IsStruct(structElems) { metrics.CRValidationErrorTotal.Increment() return util.NewErrs(fmt.Errorf("validate path %s, value: %v, expected struct, got %T", path, structElems, structElems)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 12 16:04:15 UTC 2023 - 7.7K 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) -
operator/pkg/util/errs_test.go
if got, want := ToString(testErrs, defaultSeparator), wantStr; got != want { t.Errorf("got: %s, want: %s", got, want) } } func TestNewErrs(t *testing.T) { errs := NewErrs(nil) if errs != nil { t.Errorf("got: %s, want: nil", errs) } errs = NewErrs(fmt.Errorf("err1")) if got, want := errs.String(), "err1"; got != want { t.Errorf("got: %s, want: %s", got, want) } } func TestAppendErr(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 3K bytes - Viewed (0) -
src/crypto/tls/cache.go
cc.Delete(string(e.cert.Raw)) } // newCert returns a x509.Certificate parsed from der. If there is already a copy // of the certificate in the cache, a reference to the existing certificate will // be returned. Otherwise, a fresh certificate will be added to the cache, and // the reference returned. The returned reference should not be mutated. func (cc *certCache) newCert(der []byte) (*activeCert, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 23:56:41 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/work.go
if d.Path == path { d.Syntax.markRemoved() *d = Use{} } } return nil } func (f *WorkFile) AddReplace(oldPath, oldVers, newPath, newVers string) error { return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers) } func (f *WorkFile) DropReplace(oldPath, oldVers string) error { for _, r := range f.Replace { if r.Old.Path == oldPath && r.Old.Version == oldVers {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 7.7K bytes - Viewed (0)