Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 2,734 for tmpl (0.17 sec)

  1. pkg/registry/certificates/certificates/storage/metrics_test.go

    	now := time.Now()
    	tmpl := &x509.Certificate{Subject: pkix.Name{CommonName: "panda"}, SerialNumber: big.NewInt(1234), NotBefore: now, NotAfter: now.Add(duration)}
    
    	der, err := x509.CreateCertificate(rand.Reader, tmpl, caCert, crPublicKey, caPrivateKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. pkg/bootstrap/instance.go

    }
    
    func configFile(config string, templateFile string) string {
    	suffix := "json"
    	// Envoy will interpret the file extension to determine the type. We should detect yaml inputs
    	if strings.HasSuffix(templateFile, ".yaml.tmpl") || strings.HasSuffix(templateFile, ".yaml") {
    		suffix = "yaml"
    	}
    	return path.Join(config, fmt.Sprintf(EnvoyFileTemplate, suffix))
    }
    
    func newTemplate(templateFilePath string) (*template.Template, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/text/template/doc.go

    	type Inventory struct {
    		Material string
    		Count    uint
    	}
    	sweaters := Inventory{"wool", 17}
    	tmpl, err := template.New("test").Parse("{{.Count}} items are made of {{.Material}}")
    	if err != nil { panic(err) }
    	err = tmpl.Execute(os.Stdout, sweaters)
    	if err != nil { panic(err) }
    
    More intricate examples appear below.
    
    Text and spaces
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/fake.go

    		if p != nil {
    			opts.Configs = append(opts.Configs, *p)
    		}
    	}
    	configStr := opts.ConfigString
    	if opts.ConfigTemplateInput != nil {
    		tmpl := template.Must(template.New("").Funcs(sprig.TxtFuncMap()).Parse(opts.ConfigString))
    		var buf bytes.Buffer
    		if err := tmpl.Execute(&buf, opts.ConfigTemplateInput); err != nil {
    			t.Fatalf("failed to execute template: %v", err)
    		}
    		configStr = buf.String()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/config_test.go

    			if err = i.Run(&output, printer); err != nil {
    				t.Fatalf("did not expect an error running the Images command: %v", err)
    			}
    
    			tmpl, err := template.New("test").Parse(tc.expectedOutput)
    			if err != nil {
    				t.Fatalf("could not create template: %v", err)
    			}
    			if err = tmpl.Execute(&expectedOutput, versionMapping); err != nil {
    				t.Fatalf("could not execute template: %v", err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. tests/integration/telemetry/policy/helper_test.go

    	"istio.io/istio/pkg/test/framework/components/environment/kube"
    	"istio.io/istio/pkg/test/framework/components/namespace"
    	"istio.io/istio/pkg/test/framework/components/prometheus"
    	"istio.io/istio/pkg/test/util/tmpl"
    	util "istio.io/istio/tests/integration/telemetry"
    )
    
    const (
    	// ServiceEntry is used to create conflicts on various ports
    	// As defined below, the tcp-conflict and https-conflict ports are 9443 and 9091
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    	} else {
    		vc, err = inject.NewValuesConfig(`
    global:
      hub: test
      tag: test`)
    		if err != nil {
    			t.Fatal(err)
    		}
    
    	}
    	tmpl, err := inject.ParseTemplates(map[string]string{
    		"kube-gateway": file.AsStringOrFail(t, filepath.Join(env.IstioSrc, "manifests/charts/istio-control/istio-discovery/files/kube-gateway.yaml")),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. tests/integration/pilot/common/routing.go

    			t.RunTraffic(TrafficTestCase{
    				name:   "source ip " + c.Config().Service,
    				config: svc + tmpl.MustEvaluate(destRule, "useSourceIp: true"),
    				call:   c.CallOrFail,
    				opts:   callOpts,
    			})
    			t.RunTraffic(TrafficTestCase{
    				name:   "query param" + c.Config().Service,
    				config: svc + tmpl.MustEvaluate(destRule, "httpQueryParameterName: some-query-param"),
    				call:   c.CallOrFail,
    				opts:   callOpts,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  9. security/pkg/pki/util/generate_cert.go

    	signingKey crypto.PrivateKey, subjectIDs []string, ttl time.Duration, isCA bool,
    ) (cert []byte, err error) {
    	tmpl, err := genCertTemplateFromCSR(csr, subjectIDs, ttl, isCA)
    	if err != nil {
    		return nil, err
    	}
    	return x509.CreateCertificate(rand.Reader, tmpl, signingCert, publicKey, signingKey)
    }
    
    // LoadSignerCredsFromFiles loads the signer cert&key from the given files.
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. src/cmd/link/elf_test.go

    	}
    
    	t.Parallel()
    
    	tmpl := template.Must(template.New("pie").Parse(pieSourceTemplate))
    
    	writeGo := func(t *testing.T, dir string) {
    		f, err := os.Create(filepath.Join(dir, "pie.go"))
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		// Passing a 100-element slice here will cause
    		// pieSourceTemplate to create 100 variables with
    		// different types.
    		if err := tmpl.Execute(f, make([]byte, 100)); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top