- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 2,734 for tmpl (1.77 sec)
-
src/crypto/tls/tls_test.go
if err != nil { t.Fatal(err) } keyPEM := pem.EncodeToMemory(&pem.Block{Type: "PRIVATE KEY", Bytes: keyDER}) tmpl := &x509.Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{CommonName: "test"}, } certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, key.Public(), key) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/pki_helpers.go
NotAfter: notAfter, KeyUsage: keyUsage, BasicConstraintsValid: true, IsCA: true, } certDERBytes, err := x509.CreateCertificate(cryptorand.Reader, &tmpl, &tmpl, key.Public(), key) if err != nil { return nil, err } return x509.ParseCertificate(certDERBytes) } // RemoveDuplicateAltNames removes duplicate items in altNames.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 25.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go
if err != nil { return err } p := tempfile.Name() defer os.Remove(p) tmpl, err := template.New("test").Parse(tt.configTmpl) if err != nil { return fmt.Errorf("failed to parse test template: %v", err) } if err := tmpl.Execute(tempfile, data); err != nil { return fmt.Errorf("failed to execute test template: %v", err) } // Create a new authorizer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 22:41:27 UTC 2024 - 19.9K bytes - Viewed (0) -
pilot/pkg/xds/bench_test.go
return cached, k8sConfigCache[input] } configName := input.ConfigName if configName == "" { configName = input.Name } tmpl := template.Must(template.New("").Funcs(sprig.TxtFuncMap()).ParseFiles(path.Join("testdata", "benchmarks", configName+".yaml"))) var buf bytes.Buffer if err := tmpl.ExecuteTemplate(&buf, configName+".yaml", input); err != nil { t.Fatalf("failed to execute template: %v", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
kubectl -n istio-system get cm istio -o jsonpath="{.data.mesh}" > /tmp/mesh.yaml kubectl -n istio-system get cm istio-sidecar-injector -o jsonpath="{.data.values}" > /tmp/values.json # Use kube-inject based on captured configuration istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml \ --injectConfigFile /tmp/inj-template.tmpl \
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 29 02:29:02 UTC 2024 - 21.6K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
} // formatTestmain returns the content of the _testmain.go file for t. func formatTestmain(t *testFuncs) ([]byte, error) { var buf bytes.Buffer tmpl := testmainTmpl if cfg.Experiment.CoverageRedesign { tmpl = testmainTmplNewCoverage } if err := tmpl.Execute(&buf, t); err != nil { return nil, err } return buf.Bytes(), nil } type testFuncs struct { Tests []testFunc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/sort/gen_sort_variants.go
// Parse templateCode anew for each variant because Parse requires Funcs to be // registered, and it helps type-check the funcs. tmpl, err := template.New("gen").Funcs(v.Funcs).Parse(templateCode) if err != nil { log.Fatal("template Parse:", err) } var out bytes.Buffer err = tmpl.Execute(&out, v) if err != nil { log.Fatal("template Execute:", err) } formatted, err := format.Source(out.Bytes())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 19.6K bytes - Viewed (0) -
src/html/template/error.go
// disallowed. Avoid using "html" and "urlquery" entirely in new templates. ErrPredefinedEscaper // ErrJSTemplate: "... appears in a JS template literal" // Example: // <script>var tmpl = `{{.Interp}}`</script> // Discussion: // Package html/template does not support actions inside of JS template // literals. // // Deprecated: ErrJSTemplate is no longer returned when an action is present
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 9.3K bytes - Viewed (0) -
src/crypto/x509/x509_test.go
if err != nil { t.Fatal(err) } tmpl := &Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: ":)", }, NotAfter: time.Now().Add(time.Hour), NotBefore: time.Now().Add(-time.Hour), } der, err := CreateCertificate(rand.Reader, tmpl, tmpl, k.Public(), k) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
cluster/gce/upgrade.sh
fi done done # Remove the old templates. echo "== Deleting old templates in ${PROJECT}. ==" >&2 for tmpl in "${old_templates[@]}"; do gcloud compute instance-templates delete \ --quiet \ --project="${PROJECT}" \ "${tmpl}" || true done echo "== Finished upgrading nodes to ${KUBE_VERSION}. ==" >&2 } function update-coredns-config() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 21:13:22 UTC 2024 - 25.2K bytes - Viewed (0)