Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 239 for stringVar (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/egress_selector.go

    }
    
    // AddFlags adds flags related to admission for a specific APIServer to the specified FlagSet
    func (o *EgressSelectorOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    	fs.StringVar(&o.ConfigFile, "egress-selector-config-file", o.ConfigFile,
    		"File with apiserver egress selector configuration.")
    }
    
    // ApplyTo adds the egress selector settings to the server configuration.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 01 11:41:59 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go

    	if *in == nil {
    		*out = ""
    		return nil
    	}
    	*out = **in
    	return nil
    }
    
    func Convert_string_To_Pointer_string(in *string, out **string, s conversion.Scope) error {
    	if in == nil {
    		stringVar := ""
    		*out = &stringVar
    		return nil
    	}
    	*out = in
    	return nil
    }
    
    func Convert_Pointer_bool_To_bool(in **bool, out *bool, s conversion.Scope) error {
    	if *in == nil {
    		*out = false
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 26 03:49:57 UTC 2020
    - 8.8K bytes
    - Viewed (0)
  3. 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 != "" {
    				if err := fs.Set(tt.flag, fmt.Sprintf("%v", tt.flagValue)); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. docs/debugging/pprofgoparser/main.go

    	flag.DurationVar(&goTime, "time", 0, "goroutine waiting for exactly the specified time")
    	flag.DurationVar(&margin, "margin", 0, "margin time")
    	flag.StringVar(&searchText, "search", "", "Regex to search for a text in one goroutine stacktrace")
    }
    
    func parseGoroutineType2(path string) (map[time.Duration][]string, error) {
    	f, err := os.Open(path)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Mar 06 11:43:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags.go

    }
    
    // AddFlags receives a *cobra.Command reference and binds
    // flags related to template printing to it
    func (f *JSONPathPrintFlags) AddFlags(c *cobra.Command) {
    	if f.TemplateArgument != nil {
    		c.Flags().StringVar(f.TemplateArgument, "template", *f.TemplateArgument, "Template string or path to template file to use when --output=jsonpath, --output=jsonpath-file.")
    		c.MarkFlagFilename("template")
    	}
    	if f.AllowMissingKeys != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. pkg/test/framework/config/config.go

    	"istio.io/istio/pkg/test/scopes"
    	"istio.io/istio/pkg/test/util/file"
    )
    
    const prefix = "istio.test"
    
    var (
    	configFilePath string
    	parsed         atomic.Bool
    )
    
    func init() {
    	flag.StringVar(&configFilePath, "istio.test.config", "", "Path to test framework config file")
    }
    
    type Value interface {
    	flag.Value
    	// SetConfig will receive either a Map or a []Map
    	SetConfig(any) error
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  7. pkg/cmd/flag_test.go

    		t.Errorf("%s: pflag parse error. Actual %d, Expected %d", testName, testInt, defaultInt)
    	}
    }
    
    func TestInitializeStringFlag(t *testing.T) {
    	cmd := &cobra.Command{}
    	var testString string
    	flag.StringVar(&testString, "teststring", defaultString, "test string flag")
    	AddFlags(cmd)
    
    	testName := "Initialize String Flag"
    	if !flag.Parsed() {
    		t.Errorf("%s: flag.Parsed() returns false, should be true", testName)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/template_flags.go

    }
    
    // AddFlags receives a *cobra.Command reference and binds
    // flags related to template printing to it
    func (f *GoTemplatePrintFlags) AddFlags(c *cobra.Command) {
    	if f.TemplateArgument != nil {
    		c.Flags().StringVar(f.TemplateArgument, "template", *f.TemplateArgument, "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. operator/cmd/mesh/operator-remove.go

    	cmd.PersistentFlags().BoolVar(&oiArgs.force, "force", false, ForceFlagHelpStr)
    	cmd.PersistentFlags().StringVar(&oiArgs.operatorNamespace, "operatorNamespace", operatorDefaultNamespace, OperatorNamespaceHelpstr)
    	cmd.PersistentFlags().StringVarP(&oiArgs.revision, "revision", "r", "", OperatorRevFlagHelpStr)
    	cmd.PersistentFlags().BoolVar(&oiArgs.purge, "purge", false, AllOperatorRevFlagHelpStr)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags.go

    	o.FileNameFlags.AddFlags(flagset)
    
    	if o.LabelSelector != nil {
    		flagset.StringVarP(o.LabelSelector, "selector", "l", *o.LabelSelector, "Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
    	}
    	if o.FieldSelector != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 6.7K bytes
    - Viewed (0)
Back to top