- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 60 for defaultOptions (3.94 sec)
-
pkg/ctrlz/ctrlz_test.go
ready := make(chan struct{}, 1) listeningTestProbe = func() { ready <- struct{}{} } defer func() { listeningTestProbe = nil }() // Start and wait for server o := DefaultOptions() o.Port = 0 s, err := Run(o, nil) if err != nil { t.Fatalf("Failed to start server: %v", err) } select { case <-ready: case <-time.After(5 * time.Second):
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 15 18:23:41 UTC 2024 - 2K bytes - Viewed (0) -
pkg/wasm/options.go
type Options struct { PurgeInterval time.Duration ModuleExpiry time.Duration InsecureRegistries sets.String HTTPRequestTimeout time.Duration HTTPRequestMaxRetries int } func defaultOptions() Options { return Options{ PurgeInterval: DefaultPurgeInterval, ModuleExpiry: DefaultModuleExpiry, InsecureRegistries: sets.New[string](), HTTPRequestTimeout: DefaultHTTPRequestTimeout,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 1.9K bytes - Viewed (0) -
istioctl/pkg/root/root.go
// scope is for dev logging. Warning: log levels are not set by --log_output_level until command is Run(). Scope = log.RegisterScope("cli", "istioctl") ) func defaultLogOptions() *log.Options { o := log.DefaultOptions() // Default to warning for everything; we usually don't want logs in istioctl o.SetDefaultOutputLevel("all", log.WarnLevel) // These scopes are too noisy even at warning level
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 1.5K bytes - Viewed (0) -
operator/cmd/operator/server.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 30 21:09:08 UTC 2023 - 7.6K bytes - Viewed (0) -
tests/integration/telemetry/api/wasmplugin_test.go
cltInstance := GetClientInstances()[0] defaultOptions := []retry.Option{retry.Delay(100 * time.Millisecond), retry.Timeout(200 * time.Second)} httpOpts := echo.CallOptions{ To: GetTarget(), Port: echo.Port{ Name: "http", }, HTTP: echo.HTTP{ Path: "/path", Method: "GET", }, Count: 1, Retry: echo.Retry{ Options: append(defaultOptions, options...), }, Check: checker, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 14.4K bytes - Viewed (0) -
pkg/log/options_test.go
RotationMaxBackups: 1234, }}, } for j := 0; j < 2; j++ { for i, c := range cases { t.Run(strconv.Itoa(j*100+i), func(t *testing.T) { o := DefaultOptions() cmd := &cobra.Command{} o.AttachCobraFlags(cmd) cmd.SetArgs(strings.Split(c.cmdLine, " ")) if err := cmd.Execute(); err != nil { t.Errorf("Got %v, expecting success", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.5K bytes - Viewed (0) -
pkg/log/uds_test.go
udsDir := t.TempDir() socketPath := filepath.Join(udsDir, "test.sock") unixListener, err := net.Listen("unix", socketPath) if err != nil { t.Fatalf("failed to create uds listener: %v", err) } loggingOptions := DefaultOptions() loggingOptions.JSONEncoding = true if err := Configure(loggingOptions.WithTeeToUDS(socketPath, "/")); err != nil { t.Fatal(err) } mux := http.NewServeMux() mux.HandleFunc("/", srv.handleLog)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/log/options.go
defaultOutputLevels string logCallers string stackTraceLevels string useStackdriverFormat bool extensions []Extension } // DefaultOptions returns a new set of options, initialized to the defaults func DefaultOptions() *Options { return &Options{ OutputPaths: []string{defaultOutputPath}, ErrorOutputPaths: []string{defaultErrorOutputPath},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:04:34 UTC 2024 - 10.6K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
defer close(stop) assert.NoError(t, logger.StartUDSLogServer(udsSock, stop)) // Configure log to tee to UDS server stdout := os.Stdout r, w, _ := os.Pipe() os.Stdout = w loggingOptions := istiolog.DefaultOptions() loggingOptions.JSONEncoding = true loggingOptions.WithTeeToUDS(udsSock, constants.UDSLogPath) assert.NoError(t, istiolog.Configure(loggingOptions)) istiolog.FindScope("default").SetOutputLevel(istiolog.DebugLevel)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0) -
tests/integration/telemetry/api/accesslogs_test.go
err := retry.UntilSuccess(func() error { if hasTargetRef { hostname := fmt.Sprintf("%s-gateway-istio.%s.svc.cluster.local", GetTarget().ServiceName(), apps.Namespace.Name()) defaultOptions := []retry.Option{retry.Delay(100 * time.Millisecond), retry.Timeout(200 * time.Second)} httpOpts := echo.CallOptions{ Address: hostname, Port: echo.Port{ Name: "http",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 11.6K bytes - Viewed (0)