Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 492 for flagstr (0.15 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    	// depends on the driver which runs the analyzer.
    	Flags flag.FlagSet
    
    	// Run applies the analyzer to a package.
    	// It returns an error if the analyzer failed.
    	//
    	// On success, the Run function may return a result
    	// computed by the Analyzer; its type must match ResultType.
    	// The driver makes this result available as an input to
    	// another Analyzer that depends directly on this one (see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		DefaultOffPlugins:      sets.Set[string]{},
    	}
    	server.RegisterAllAdmissionPlugins(options.Plugins)
    	return options
    }
    
    // AddFlags adds flags related to admission for a specific APIServer to the specified FlagSet
    func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) {
    	if a == nil {
    		return
    	}
    
    	fs.StringSliceVar(&a.EnablePlugins, "enable-admission-plugins", a.EnablePlugins, ""+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. test/fixedbugs/bug459.go

    type FlagSet struct {
    }
    
    func (f *FlagSet) failf(format string, a ...interface{}) {
    	f.usage()
    }
    
    func (f *FlagSet) usage() {
    	if f == commandLine {
    		panic(3)
    	}
    }
    
    func NewFlagSet() *FlagSet {
    	f := &FlagSet{}
    	f.setErrorHandling(true)
    	return f
    }
    
    func (f *FlagSet) setErrorHandling(b bool) {
    	f.failf("DIE")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 681 bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/util/cmdutil_test.go

    			flagValue: false,
    			expected:  false,
    		},
    	}
    	for _, tt := range tests {
    		type options struct {
    			foo string
    			bar bool
    		}
    		fakeOptions := &options{}
    		fs := pflag.FlagSet{}
    		fs.StringVar(&fakeOptions.foo, "foo", "", "")
    		fs.BoolVar(&fakeOptions.bar, "bar", false, "")
    
    		t.Run(tt.name, func(t *testing.T) {
    			if tt.flag != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/cmd/internal/telemetry/telemetry_bootstrap.go

    func NewStackCounter(name string, depth int) dummyCounter                 { return dummyCounter{} }
    func CountFlags(name string, flagSet flag.FlagSet)                        {}
    func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {}
    func Mode() string                                                        { return "" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. cmd/cloud-controller-manager/main.go

    	nodeIpamController.nodeIPAMControllerOptions.NodeIPAMControllerConfiguration = &nodeIpamController.nodeIPAMControllerConfiguration
    	fss := cliflag.NamedFlagSets{}
    	nodeIpamController.nodeIPAMControllerOptions.AddFlags(fss.FlagSet(kcmnames.NodeIpamController))
    
    	controllerInitializers[kcmnames.NodeIpamController] = app.ControllerInitFuncConstructor{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 19 13:01:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. cmd/kube-controller-manager/names/controller_names.go

    //     2.4. [TODO] calling WaitForNamedCacheSync
    //  3. defining controller options for "--help" command or generated documentation
    //     3.1. controller name should be used to create a pflag.FlagSet when registering controller options (the name is rendered in a controller flag group header) in options.KubeControllerManagerOptions
    //     3.2. when defined flag's help mentions a controller name
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/cmd/internal/telemetry/telemetry.go

    func CountFlags(prefix string, flagSet flag.FlagSet) {
    	counter.CountFlags(prefix, flagSet)
    }
    
    // CountFlagValue creates a counter for the flag value
    // if it is set and increments the counter. The name of the
    // counter is the concatenation of prefix, the flagName, ":",
    // and value.String() for the flag's value.
    func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/util/cmdutil.go

    	file = rules.GetDefaultFilename()
    	klog.V(1).Infof("Using kubeconfig file: %s", file)
    	return file
    }
    
    // AddCRISocketFlag adds the cri-socket flag to the supplied flagSet
    func AddCRISocketFlag(flagSet *pflag.FlagSet, criSocket *string) {
    	flagSet.StringVar(
    		criSocket, options.NodeCRISocket, *criSocket,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. cmd/kube-scheduler/app/testing/testserver.go

    	if err != nil {
    		return result, fmt.Errorf("failed to create temp dir: %v", err)
    	}
    
    	fs := pflag.NewFlagSet("test", pflag.PanicOnError)
    
    	opts := options.NewOptions()
    	nfs := opts.Flags
    	for _, f := range nfs.FlagSets {
    		fs.AddFlagSet(f)
    	}
    	fs.Parse(customFlags)
    
    	if opts.SecureServing.BindPort != 0 {
    		opts.SecureServing.Listener, opts.SecureServing.BindPort, err = createListenerOnFreePort()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 10:35:59 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top