Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,606 for ToOptions (2.73 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/filename_flags.go

    	Kustomize *string
    	Recursive *bool
    }
    
    // ToOptions creates a new FileNameOptions struct and sets FilenameOptions based on FileNameflags
    func (o *FileNameFlags) ToOptions() resource.FilenameOptions {
    	options := resource.FilenameOptions{}
    
    	if o == nil {
    		return options
    	}
    
    	if o.Recursive != nil {
    		options.Recursive = *o.Recursive
    	}
    	if o.Filenames != nil {
    		options.Filenames = *o.Filenames
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags.go

    	}
    
    	if o.Scheme != nil {
    		builder.WithScheme(o.Scheme, o.Scheme.PrioritizedVersionsAllGroups()...)
    	} else {
    		builder.Unstructured()
    	}
    
    	if o.FileNameFlags != nil {
    		opts := o.FileNameFlags.ToOptions()
    		builder.FilenameParam(enforceNamespace, &opts)
    	}
    
    	if o.Local == nil || !*o.Local {
    		// resource type/name tuples only work non-local
    		if o.All != 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)
  3. istioctl/cmd/options.go

    	retval := &cobra.Command{
    		Use:   "options",
    		Short: "Displays istioctl global options",
    		Args:  cobra.ExactArgs(0),
    	}
    
    	retval.SetHelpFunc(func(c *cobra.Command, args []string) {
    		c.Printf("The following options can be passed to any command:\n")
    		// (Currently the only global options we show are help options)
    		rootCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. pkg/monitoring/options.go

    	return func(opts *options) {
    		opts.unit = unit
    	}
    }
    
    // WithEnabled allows a metric to be condition enabled if the provided function returns true.
    // If disabled, metric operations will do nothing.
    func WithEnabled(enabled func() bool) Options {
    	return func(o *options) {
    		o.enabledCondition = enabled
    	}
    }
    
    func createOptions(name, description string, opts ...Options) (options, Metric) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. pkg/keepalive/options.go

    )
    
    // Options defines the set of options used for grpc keepalive.
    // The Time and Timeout options are used for both client and server connections,
    // whereas MaxServerConnectionAge* options are applicable on the server side only
    // (as implied by the options' name...)
    type Options struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pkg/ctrlz/options.go

    import (
    	"github.com/spf13/cobra"
    )
    
    // Options defines the set of options supported by Istio's ControlZ component introspection package.
    type Options struct {
    	// The IP port to use for ctrlz.
    	Port uint16
    
    	// The IP address to listen on for ctrlz.
    	Address string
    
    	// If true, pprof will be enabled
    	EnablePprof bool
    }
    
    // DefaultOptions returns a new set of options, initialized to the defaults
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 21:42:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. pkg/test/framework/resource/config/apply/options.go

    // limitations under the License.
    
    package apply
    
    import "istio.io/istio/pkg/test/framework/resource/config/cleanup"
    
    // Options provide options for applying configuration
    type Options struct {
    	// Cleanup strategy
    	Cleanup cleanup.Strategy
    
    	// Wait for configuration to be propagated.
    	Wait bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 17:09:00 UTC 2022
    - 851 bytes
    - Viewed (0)
  8. pkg/wasm/options.go

    	DefaultHTTPRequestMaxRetries = 5
    )
    
    // Options contains configurations to create a Cache instance.
    type Options struct {
    	PurgeInterval         time.Duration
    	ModuleExpiry          time.Duration
    	InsecureRegistries    sets.String
    	HTTPRequestTimeout    time.Duration
    	HTTPRequestMaxRetries int
    }
    
    func defaultOptions() Options {
    	return Options{
    		PurgeInterval:         DefaultPurgeInterval,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. cmd/kube-apiserver/app/options/options.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package options contains flags and options for initializing an apiserver
    package options
    
    import (
    	"net"
    	"strings"
    	"time"
    
    	v1 "k8s.io/api/core/v1"
    	utilnet "k8s.io/apimachinery/pkg/util/net"
    	cliflag "k8s.io/component-base/cli/flag"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. pilot/pkg/bootstrap/options.go

    	Revision           string
    	MeshConfigFile     string
    	NetworksConfigFile string
    	RegistryOptions    RegistryOptions
    	CtrlZOptions       *ctrlz.Options
    	KeepaliveOptions   *keepalive.Options
    	ShutdownDuration   time.Duration
    	JwtRule            string
    }
    
    // DiscoveryServerOptions contains options for create a new discovery server instance.
    type DiscoveryServerOptions struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top