Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,734 for tmpl (0.44 sec)

  1. src/cmd/go/scriptcmds_test.go

    			if len(args) == 0 {
    				return nil, script.ErrUsage
    			}
    			tmpl := "{{if .Error}}{{.ImportPath}}: {{.Error.Err}}" +
    				"{{else}}{{if not .Stale}}{{.ImportPath}} ({{.Target}}) is not stale{{end}}" +
    				"{{end}}"
    
    			wait, err := cmdGo.Run(s, append([]string{"list", "-e", "-f=" + tmpl}, args...)...)
    			if err != nil {
    				return nil, err
    			}
    
    			stdout, stderr, err := wait(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/internal/platform/zosarch_test.go

    		FirstClass   bool
    		Broken       bool
    	}
    	var entries []listEntry
    	if err := json.Unmarshal(out, &entries); err != nil {
    		t.Fatal(err)
    	}
    
    	tmplOut := new(bytes.Buffer)
    	tmpl := template.Must(template.New("zosarch").Parse(zosarchTmpl))
    	err = tmpl.Execute(tmplOut, entries)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	cmd = testenv.Command(t, "gofmt")
    	cmd.Stdin = bytes.NewReader(tmplOut.Bytes())
    	want, err := cmd.Output()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. pkg/test/cert/ca/intermediate.go

    import (
    	"os"
    	"path/filepath"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/pkg/test/cert"
    	"istio.io/istio/pkg/test/util/file"
    	"istio.io/istio/pkg/test/util/tmpl"
    )
    
    const (
    	istioConfTemplate = `
    [ req ]
    encrypt_key = no
    prompt = no
    utf8 = yes
    default_md = sha256
    default_bits = 4096
    req_extensions = req_ext
    x509_extensions = req_ext
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  4. src/crypto/tls/boring_test.go

    	}
    	if mode&^boringCertFIPSOK == boringCertLeaf {
    		tmpl.DNSNames = []string{"example.com"}
    	} else {
    		tmpl.IsCA = true
    		tmpl.KeyUsage |= x509.KeyUsageCertSign
    	}
    
    	var pcert *x509.Certificate
    	var pkey interface{}
    	if parent != nil {
    		pcert = parent.cert
    		pkey = parent.key
    	} else {
    		pcert = tmpl
    		pkey = key
    	}
    
    	var pub interface{}
    	switch k := key.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. pkg/test/util/yml/apply.go

    package yml
    
    import (
    	"fmt"
    	"reflect"
    
    	appsv1 "k8s.io/api/apps/v1"
    	"k8s.io/apimachinery/pkg/util/strategicpatch"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/tmpl"
    )
    
    // ApplyNamespace applies the given namespaces to the resources in the yamlText if not set.
    func ApplyNamespace(yamlText, ns string) (string, error) {
    	chunks := SplitString(yamlText)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 07:02:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. pkg/ctrlz/topics/scopes.go

    		OutputLevel:     levelToString[s.GetOutputLevel()],
    		StackTraceLevel: levelToString[s.GetStackTraceLevel()],
    		LogCallers:      s.GetLogCallers(),
    	}
    }
    
    func (scopeTopic) Activate(context fw.TopicContext) {
    	tmpl := assets.ParseTemplate(context.Layout(), "templates/scopes.html")
    
    	_ = context.HTMLRouter().NewRoute().HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		allScopes := log.Scopes()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. tests/integration/telemetry/policy/envoy_ratelimit_test.go

    	"istio.io/istio/pkg/test/framework/components/prometheus"
    	"istio.io/istio/pkg/test/framework/label"
    	"istio.io/istio/pkg/test/framework/resource"
    	"istio.io/istio/pkg/test/kube"
    	"istio.io/istio/pkg/test/util/tmpl"
    )
    
    var (
    	ist         istio.Instance
    	echoNsInst  namespace.Instance
    	ratelimitNs namespace.Instance
    	ing         ingress.Instance
    	srv         echo.Instance
    	clt         echo.Instance
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. operator/pkg/util/util.go

    		logCountMap[item] = 0
    	}
    	return sb.String()
    }
    
    // RenderTemplate is a helper method to render a template with the given values.
    func RenderTemplate(tmpl string, ts any) (string, error) {
    	t, err := template.New("").Parse(tmpl)
    	if err != nil {
    		return "", err
    	}
    	buf := new(bytes.Buffer)
    	err = t.Execute(buf, ts)
    	if err != nil {
    		return "", err
    	}
    	return buf.String(), nil
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 02 13:01:43 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. pkg/config/analysis/msg/generate.main.go

    		}
    
    		if names[m.Name] {
    			return fmt.Errorf("Message names must be unique, %q defined more than once", m.Name)
    		}
    		names[m.Name] = true
    	}
    	return nil
    }
    
    var tmpl = `
    // Code generated by generate.main.go. DO NOT EDIT.
    
    package msg
    
    import (
    	"istio.io/istio/pkg/config/analysis/diag"
    	"istio.io/istio/pkg/config/resource"
    )
    
    var (
    	{{- range .Messages}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 28 16:55:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. pkg/ctrlz/ctrlz.go

    	jsonRouter := router.NewRoute().PathPrefix("/" + t.Prefix() + "j").Subrouter()
    
    	tmpl := template.Must(template.Must(layout.Clone()).Parse("{{ define \"title\" }}" + t.Title() + "{{ end }}"))
    	t.Activate(fw.NewContext(htmlRouter, jsonRouter, tmpl))
    }
    
    // getLocalIP returns a non loopback local IP of the host
    func getLocalIP() string {
    	addrs, err := net.InterfaceAddrs()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 21:22:53 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top