Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for strPtr (0.21 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation_test.go

    						Generic: schema.Generic{
    							Type: "array",
    						},
    						Extensions: schema.Extensions{
    							XListType: strPtr("set"),
    						},
    						Items: &schema.Structural{
    							Generic: schema.Generic{
    								Type: "array",
    							},
    							Extensions: schema.Extensions{
    								XListType: strPtr("set"),
    							},
    						},
    					},
    				},
    			},
    			errors: []validationMatch{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/tracing_test.go

    	"strings"
    	"testing"
    
    	tracingapi "k8s.io/component-base/tracing/api/v1"
    )
    
    var (
    	localhost    = "localhost:4317"
    	ipAddress    = "127.0.0.1:4317"
    	samplingRate = int32(12345)
    )
    
    func strptr(s string) *string {
    	return &s
    }
    
    func TestValidateTracingOptions(t *testing.T) {
    	testcases := []struct {
    		name        string
    		expectError bool
    		contents    *TracingOptions
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation_test.go

    					Type:      "object",
    					XListType: strPtr("set"),
    				},
    			},
    			expectedErrors: []validationMatch{
    				invalid("spec.validation.openAPIV3Schema.type"),
    			},
    		},
    		{
    			name: "unset type with list type extension set",
    			input: apiextensions.CustomResourceValidation{
    				OpenAPIV3Schema: &apiextensions.JSONSchemaProps{
    					XListType: strPtr("set"),
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 349.4K bytes
    - Viewed (0)
  4. pkg/apis/admissionregistration/validation/validation_test.go

    				URL: strPtr(""),
    			},
    		},
    		}, true),
    		expectedError: `[0].clientConfig.url: Invalid value: "": host must be specified`,
    	}, {
    		name: "wrong scheme",
    		config: newValidatingWebhookConfiguration([]admissionregistration.ValidatingWebhook{{
    			Name: "webhook.k8s.io",
    			ClientConfig: admissionregistration.WebhookClientConfig{
    				URL: strPtr("http://example.com"),
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go

    			name:           "empty",
    			createFile:     true,
    			contents:       ``,
    			expectedResult: nil,
    			expectedError:  strptr("invalid service configuration object \"\""),
    		},
    		{
    			name:           "absent",
    			createFile:     false,
    			contents:       ``,
    			expectedResult: nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  6. cmd/data-scanner-metric.go

    		name, ok := key.(string)
    		if !ok {
    			return true
    		}
    		obj, ok := value.(*currentPathTracker)
    		if !ok {
    			return true
    		}
    		strptr := (*string)(atomic.LoadPointer(obj.name))
    		if strptr != nil {
    			res = append(res, pathJoin(prefix, name, *strptr))
    		}
    		return true
    	})
    	return res
    }
    
    // activeDrives returns the number of currently active disks.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    			group:              "sigs.k8s.io",
    			annotationValue:    "invalid",
    			oldAnnotationValue: strPtr("invalid"),
    			validateError:      okFn,
    		},
    		{
    			name:               "invalid annotation to missing",
    			group:              "sigs.k8s.io",
    			annotationValue:    "",
    			oldAnnotationValue: strPtr("invalid"),
    			validateError: func(t *testing.T, errors field.ErrorList) {
    				t.Helper()
    				if len(errors) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. misc/wasm/wasm_exec.js

    			};
    
    			const argc = this.argv.length;
    
    			const argvPtrs = [];
    			this.argv.forEach((arg) => {
    				argvPtrs.push(strPtr(arg));
    			});
    			argvPtrs.push(0);
    
    			const keys = Object.keys(this.env).sort();
    			keys.forEach((key) => {
    				argvPtrs.push(strPtr(`${key}=${this.env[key]}`));
    			});
    			argvPtrs.push(0);
    
    			const argv = offset;
    			argvPtrs.forEach((ptr) => {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/helpers_test.go

    	}
    	return paths
    }
    
    //lint:file-ignore U1000 Ignore dummy types, used by tests.
    
    // dummy helper types
    type foo struct {
    	foo int
    }
    type bar struct {
    	str    string
    	strptr *string
    
    	ints      []int
    	stringMap map[string]string
    
    	foo    foo
    	fooptr *foo
    
    	bars   []foo
    	barMap map[string]foo
    
    	skipRecurseStruct  foo
    	skipRecursePointer *foo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. pkg/apis/certificates/v1beta1/defaults_test.go

    				Usages:     kubeletServerUsages,
    				SignerName: strPtr("example.com/not-kubelet-serving"),
    			},
    			expectedSignerName: "example.com/not-kubelet-serving",
    		},
    		"defaults usages if not set": {
    			csr: capi.CertificateSigningRequestSpec{
    				Request:    csrWithOpts(kubeletServerPEMOptions),
    				SignerName: strPtr("example.com/test"),
    			},
    			expectedSignerName: "example.com/test",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 16.9K bytes
    - Viewed (0)
Back to top