Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 106 for expvar (0.34 sec)

  1. cmd/kubeadm/app/apis/kubeadm/v1beta4/zz_generated.deepcopy.go

    func (in *EnvVar) DeepCopyInto(out *EnvVar) {
    	*out = *in
    	in.EnvVar.DeepCopyInto(&out.EnvVar)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.
    func (in *EnvVar) DeepCopy() *EnvVar {
    	if in == nil {
    		return nil
    	}
    	out := new(EnvVar)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. src/runtime/runtime-gdb_test.go

    var gslice []string
    func main() {
    	mapvar := make(map[string]string, ` + strconv.FormatInt(abi.MapBucketCount+9, 10) + `)
    	slicemap := make(map[string][]string,` + strconv.FormatInt(abi.MapBucketCount+3, 10) + `)
        chanint := make(chan int, 10)
        chanstr := make(chan string, 10)
        chanint <- 99
    	chanint <- 11
        chanstr <- "spongepants"
        chanstr <- "squarebob"
    	mapvar["abc"] = "def"
    	mapvar["ghi"] = "jkl"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. src/log/slog/level_test.go

    			t.Errorf("%q: got %v, want string containing %q", test.in, err, test.want)
    		}
    	}
    }
    
    func TestLevelFlag(t *testing.T) {
    	fs := flag.NewFlagSet("test", flag.ContinueOnError)
    	lf := LevelInfo
    	fs.TextVar(&lf, "level", lf, "set level")
    	err := fs.Parse([]string{"-level", "WARN+3"})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if g, w := lf, LevelWarn+3; g != w {
    		t.Errorf("got %v, want %v", g, w)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 20:44:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods_test.go

    			ns:                 "test1",
    			enableServiceLinks: &falseValue,
    			container:          &v1.Container{Env: []v1.EnvVar{}},
    			nilLister:          false,
    			staticPod:          false,
    			unsyncedServices:   true,
    			expectedEnvs:       []kubecontainer.EnvVar{},
    			expectedError:      true,
    		},
    		{
    			name:               "if services aren't synced, static pods should succeed", // if there is no service
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  5. internal/config/identity/openid/jwt.go

    )
    
    func updateClaimsExpiry(dsecs string, claims map[string]interface{}) error {
    	expStr := claims["exp"]
    	if expStr == "" {
    		return ErrTokenExpired
    	}
    
    	// No custom duration requested, the claims can be used as is.
    	if dsecs == "" {
    		return nil
    	}
    
    	if _, err := auth.ExpToInt64(expStr); err != nil {
    		return err
    	}
    
    	defaultExpiryDuration, err := GetDefaultExpiration(dsecs)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/envcmd/env_test.go

    				t.Skipf("skipping %#q on Windows: contains unescapable character %q", s, c)
    			}
    		}
    
    		var b bytes.Buffer
    		if runtime.GOOS == "windows" {
    			b.WriteString("@echo off\n")
    		}
    		PrintEnv(&b, []cfg.EnvVar{{Name: "var", Value: s}}, false)
    		var want string
    		if runtime.GOOS == "windows" {
    			fmt.Fprintf(&b, "echo \"%%var%%\"\n")
    			want += "\"" + s + "\"\r\n"
    		} else {
    			fmt.Fprintf(&b, "printf '%%s\\n' \"$var\"\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/etcd/local_test.go

    	cfg := &kubeadmapi.ClusterConfiguration{
    		KubernetesVersion: "v1.7.0",
    		Etcd: kubeadmapi.Etcd{
    			Local: &kubeadmapi.LocalEtcd{
    				DataDir: "/var/lib/etcd",
    				ExtraEnvs: []kubeadmapi.EnvVar{
    					{
    						EnvVar: v1.EnvVar{Name: "Foo", Value: "Bar"},
    					},
    				},
    			},
    		},
    	}
    	endpoint := &kubeadmapi.APIEndpoint{}
    
    	// Executes GetEtcdPodSpec
    	spec := GetEtcdPodSpec(cfg, endpoint, "", []etcdutil.Member{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. plugin/pkg/admission/serviceaccount/admission_test.go

    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	pod2 := &api.Pod{
    		Spec: api.PodSpec{
    			Containers: []api.Container{
    				{
    					Name: "container-1",
    					Env: []api.EnvVar{
    						{
    							Name: "env-1",
    							ValueFrom: &api.EnvVarSource{
    								SecretKeyRef: &api.SecretKeySelector{
    									LocalObjectReference: api.LocalObjectReference{Name: "foo"},
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/devicemanager/manager_test.go

    		expectedAllocatedResName2 int
    		expErr                    error
    	}{
    		{
    			description:               "Successful allocation of two Res1 resources and one Res2 resource",
    			testPod:                   testPods[0],
    			expectedContainerOptsLen:  []int{3, 2, 2},
    			expectedAllocatedResName1: 2,
    			expectedAllocatedResName2: 1,
    			expErr:                    nil,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    				PartSize:   expPart.ActualSize,
    				PartETag:   part.ETag,
    			}
    		}
    
    		// Save for total object size.
    		objectSize += expPart.Size
    
    		// Save the consolidated actual size.
    		objectActualSize += expPart.ActualSize
    
    		// Add incoming parts.
    		fi.Parts[i] = ObjectPartInfo{
    			Number:     part.PartNumber,
    			Size:       expPart.Size,
    			ActualSize: expPart.ActualSize,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
Back to top