Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValueOrDefaultFunc (0.11 sec)

  1. pkg/test/env/variable.go

    func (e Variable) ValueOrDefault(defaultValue string) string {
    	return e.ValueOrDefaultFunc(func() string {
    		return defaultValue
    	})
    }
    
    // ValueOrDefaultFunc returns the value of the environment variable if it is non-empty. Otherwise returns the value function provided.
    func (e Variable) ValueOrDefaultFunc(defaultValueFunc func() string) string {
    	if value := e.Value(); value != "" {
    		return value
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. pkg/test/env/istio.go

    	KUBECONFIG Variable = "KUBECONFIG"
    
    	// IstioSrc is the location of istio source ($TOP/src/istio.io/istio
    	IstioSrc = REPO_ROOT.ValueOrDefaultFunc(getDefaultIstioSrc)
    
    	// IstioOut is the location of the output directory ($TOP/out)
    	IstioOut = verifyFile(TARGET_OUT, TARGET_OUT.ValueOrDefaultFunc(getDefaultIstioOut))
    
    	// LocalOut is the location of the output directory for the OS we are running in,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 16:24:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top