Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for newString (0.4 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/proxy/transport.go

    	atom.A:          sets.NewString("href"),
    	atom.Applet:     sets.NewString("codebase"),
    	atom.Area:       sets.NewString("href"),
    	atom.Audio:      sets.NewString("src"),
    	atom.Base:       sets.NewString("href"),
    	atom.Blockquote: sets.NewString("cite"),
    	atom.Body:       sets.NewString("background"),
    	atom.Button:     sets.NewString("formaction"),
    	atom.Command:    sets.NewString("icon"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go

    		expected String
    	}{
    		{
    			NewString("1", "2", "3", "4"),
    			NewString("3", "4", "5", "6"),
    			NewString("3", "4"),
    		},
    		{
    			NewString("1", "2", "3", "4"),
    			NewString("1", "2", "3", "4"),
    			NewString("1", "2", "3", "4"),
    		},
    		{
    			NewString("1", "2", "3", "4"),
    			NewString(),
    			NewString(),
    		},
    		{
    			NewString(),
    			NewString("1", "2", "3", "4"),
    			NewString(),
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go

    		{
    			desc: "empty file",
    			file: newString(``),
    			err:  "was empty",
    		},
    		// invalid format
    		{
    			desc: "invalid yaml",
    			file: newString(`*`),
    			err:  "failed to decode",
    		},
    		{
    			desc: "invalid json",
    			file: newString(`{*`),
    			err:  "failed to decode",
    		},
    		// invalid object
    		{
    			desc: "missing kind",
    			file: newString(`{"apiVersion":"kubelet.config.k8s.io/v1beta1"}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/ipset/testing/fake_test.go

    	if err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    	if len(entries) != 2 {
    		t.Errorf("Expected 2 entries, got %d", len(entries))
    	}
    	expectedEntries := sets.NewString("192.168.1.1,tcp:8080", "192.168.1.2,tcp:8081")
    	if !expectedEntries.Equal(sets.NewString(entries...)) {
    		t.Errorf("Unexpected entries mismatch, expected: %v, got: %v", expectedEntries, entries)
    	}
    
    	// test entries
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/reinvocationcontext.go

    		rc.previouslyInvokedReinvocableWebhooks = sets.NewString()
    	}
    	rc.previouslyInvokedReinvocableWebhooks.Insert(webhook)
    }
    
    func (rc *webhookReinvokeContext) RequireReinvokingPreviouslyInvokedPlugins() {
    	if len(rc.previouslyInvokedReinvocableWebhooks) > 0 {
    		if rc.reinvokeWebhooks == nil {
    			rc.reinvokeWebhooks = sets.NewString()
    		}
    		for s := range rc.previouslyInvokedReinvocableWebhooks {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 21:31:09 UTC 2019
    - 2.3K bytes
    - Viewed (0)
  6. pkg/apis/certificates/helpers.go

    	uriSANNotAllowedErr           = fmt.Errorf("URI subjectAltNames are not allowed")
    )
    
    var (
    	kubeletServingRequiredUsages = sets.NewString(
    		string(UsageDigitalSignature),
    		string(UsageKeyEncipherment),
    		string(UsageServerAuth),
    	)
    	kubeletServingRequiredUsagesNoRSA = sets.NewString(
    		string(UsageDigitalSignature),
    		string(UsageServerAuth),
    	)
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/requestinfo_test.go

    	"k8s.io/apiserver/pkg/endpoints/request"
    )
    
    func newTestRequestInfoResolver() *request.RequestInfoFactory {
    	return &request.RequestInfoFactory{
    		APIPrefixes:          sets.NewString("api", "apis"),
    		GrouplessAPIPrefixes: sets.NewString("api"),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 03 06:33:43 UTC 2017
    - 887 bytes
    - Viewed (0)
  8. test/typeparam/issue48225.go

    }
    
    func (foo Foo[T]) Get() *T {
    	if foo.val != 1 {
    		panic("bad val field in Foo receiver")
    	}
    	return new(T)
    }
    
    var (
    	newInt    = Foo[int]{val: 1}.Get
    	newString = Foo[string]{val: 1}.Get
    )
    
    func main() {
    	i := newInt()
    	s := newString()
    
    	if t := reflect.TypeOf(i).String(); t != "*int" {
    		panic(t)
    	}
    	if t := reflect.TypeOf(s).String(); t != "*string" {
    		panic(t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 610 bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy_test.go

    	rbacv1helpers.NewRule(bootstrappolicy.Read...).Groups("apps", "extensions").Resources("deployments/rollback").RuleOrDie(),
    }
    
    func TestEditViewRelationship(t *testing.T) {
    	readVerbs := sets.NewString(bootstrappolicy.Read...)
    	semanticRoles := getSemanticRoles(bootstrappolicy.ClusterRoles())
    
    	// modify the edit role rules to make then read-only for comparison against view role rules
    	for i := range semanticRoles.edit.Rules {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		if !registeredPlugins.Has(name) {
    			errs = append(errs, fmt.Errorf("disable-admission-plugins plugin %q is unknown", name))
    		}
    	}
    
    	enablePlugins := sets.NewString(a.EnablePlugins...)
    	disablePlugins := sets.NewString(a.DisablePlugins...)
    	if len(enablePlugins.Intersection(disablePlugins).List()) > 0 {
    		errs = append(errs, fmt.Errorf("%v in enable-admission-plugins and disable-admission-plugins "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top