Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for KeyValues (0.21 sec)

  1. src/net/http/header.go

    }
    
    func (w stringWriter) WriteString(s string) (n int, err error) {
    	return w.w.Write([]byte(s))
    }
    
    type keyValues struct {
    	key    string
    	values []string
    }
    
    // headerSorter contains a slice of keyValues sorted by keyValues.key.
    type headerSorter struct {
    	kvs []keyValues
    }
    
    var headerSorterPool = sync.Pool{
    	New: func() any { return new(headerSorter) },
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. cmd/utils_test.go

    	testCases := []struct {
    		keys      []string
    		keyvalues []string
    	}{
    		{
    			[]string{"aaaa", "bbbb"},
    			[]string{"aaaa", "{aaaa:.*}", "bbbb", "{bbbb:.*}"},
    		},
    	}
    
    	for i, test := range testCases {
    		keyvalues := restQueries(test.keys...)
    		for j := range keyvalues {
    			if keyvalues[j] != test.keyvalues[j] {
    				t.Fatalf("test %d: keyvalues[%d] does not match", i+1, j)
    			}
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pkg/wasm/convert.go

    	resourceVersion := ""
    	if envs != nil {
    		if sec, found := envs.KeyValues[model.WasmSecretEnv]; found {
    			if sec == "" {
    				*status = fetchFailure
    				return fmt.Errorf("cannot fetch Wasm module %v: missing image pulling secret", configName)
    			}
    			pullSecret = []byte(sec)
    		}
    
    		if ps, found := envs.KeyValues[model.WasmPolicyEnv]; found {
    			if p, found := PullPolicyValues[ps]; found {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. pilot/pkg/model/extensions.go

    			EnvironmentVariables: &wasmextensions.EnvironmentVariables{
    				KeyValues: map[string]string{},
    			},
    		},
    	}
    
    	if wasmPlugin.ImagePullSecret != "" {
    		cfg.VmConfig.EnvironmentVariables.KeyValues[WasmSecretEnv] = wasmPlugin.ImagePullSecret
    	}
    
    	if wasmPlugin.ImagePullPolicy != extensions.PullPolicy_UNSPECIFIED_POLICY {
    		cfg.VmConfig.EnvironmentVariables.KeyValues[WasmPolicyEnv] = wasmPlugin.ImagePullPolicy.String()
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/extension/wasmplugin_test.go

    									},
    									Timeout: &durationpb.Duration{
    										Seconds: 30,
    									},
    								},
    							},
    						},
    					},
    					EnvironmentVariables: &wasmextension.EnvironmentVariables{
    						KeyValues: map[string]string{
    							"ISTIO_META_WASM_PLUGIN_RESOURCE_VERSION": "",
    						},
    					},
    				},
    			},
    		},
    	})
    	networkFilter := protoconv.MessageToAny(&networkwasm.Wasm{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. pilot/pkg/model/extensions_test.go

    			expected: &wasmextensions.PluginConfig_VmConfig{
    				VmConfig: &wasmextensions.VmConfig{
    					Runtime: defaultRuntime,
    					EnvironmentVariables: &wasmextensions.EnvironmentVariables{
    						KeyValues: map[string]string{
    							WasmSecretEnv:          "secret-name",
    							WasmResourceVersionEnv: "dummy-resource-version",
    						},
    					},
    				},
    			},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. pkg/wasm/convert_test.go

    						Remote: &core.RemoteDataSource{
    							HttpUri: &core.HttpUri{
    								Uri: "http://test?module=test.wasm",
    							},
    						},
    					}},
    					EnvironmentVariables: &v3.EnvironmentVariables{
    						KeyValues: map[string]string{
    							model.WasmSecretEnv: "secret",
    						},
    					},
    				},
    			},
    		},
    	}),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. src/net/lookup_test.go

    	origTestHookLookupIP := testHookLookupIP
    	defer func() { testHookLookupIP = origTestHookLookupIP }()
    
    	keyValues := []struct {
    		key, value any
    	}{
    		{"key-1", 12},
    		{384, "value2"},
    		{new(float64), 137},
    	}
    	ctx := context.Background()
    	for _, kv := range keyValues {
    		ctx = context.WithValue(ctx, kv.key, kv.value)
    	}
    
    	wantIPs := []IPAddr{
    		{IP: IPv4(127, 0, 0, 1)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. pilot/pkg/xds/debug.go

    							continue
    						}
    						// Redact Wasm secret env variable.
    						vmenvs := w.GetConfig().GetVmConfig().EnvironmentVariables
    						if vmenvs != nil {
    							if _, found := vmenvs.KeyValues[model.WasmSecretEnv]; found {
    								vmenvs.KeyValues[model.WasmSecretEnv] = "<Redacted>"
    							}
    						}
    						dumps[resourceType] = append(dumps[resourceType], &discoveryv3.Resource{
    							Name:     w.Config.Name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top