Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for ParseDuration (0.29 sec)

  1. pilot/pkg/networking/core/networkfilter.go

    	includeMx bool,
    ) []*listener.Filter {
    	idleTimeout := destinationRule.GetTrafficPolicy().GetConnectionPool().GetTcp().GetIdleTimeout()
    	if idleTimeout == nil {
    		idleTimeout = parseDuration(lb.node.Metadata.IdleTimeout)
    	}
    	tcpProxy := &tcp.TcpProxy{
    		StatPrefix:                      statPrefix,
    		ClusterSpecifier:                &tcp.TcpProxy_Cluster{Cluster: clusterName},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. internal/config/heal/heal.go

    	if _, err = parseBitrotConfig(bitrot); err != nil {
    		return cfg, fmt.Errorf("'heal:bitrotscan' value invalid: %w", err)
    	}
    
    	cfg.Bitrot = bitrot
    
    	cfg.Sleep, err = time.ParseDuration(env.Get(EnvSleep, kvs.GetWithDefault(Sleep, DefaultKVS)))
    	if err != nil {
    		return cfg, fmt.Errorf("'heal:max_sleep' value invalid: %w", err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/flag/flag.go

    Integer flags accept 1234, 0664, 0x1234 and may be negative.
    Boolean flags may be:
    
    	1, 0, t, f, T, F, true, false, TRUE, FALSE, True, False
    
    Duration flags accept any input valid for time.ParseDuration.
    
    The default set of command-line flags is controlled by
    top-level functions.  The [FlagSet] type allows one to define
    independent sets of flags, such as to implement subcommands
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  4. operator/cmd/operator/server.go

    func getRenewDeadline() *time.Duration {
    	ddl, found := os.LookupEnv("RENEW_DEADLINE")
    	df := time.Second * 10
    	if !found {
    		return &df
    	}
    	duration, err := time.ParseDuration(ddl)
    	if err != nil {
    		log.Errorf("Failed to parse renewDeadline: %v, use default value: %s", err, df.String())
    		return &df
    	}
    	return &duration
    }
    
    func run(sArgs *serverArgs) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 30 21:09:08 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. src/cmd/trace/regions.go

    	}
    
    	if lat, err := time.ParseDuration(r.FormValue("latmin")); err == nil {
    		name = append(name, fmt.Sprintf("(latency >= %s)", lat))
    		conditions = append(conditions, func(t *parsedTrace, r *trace.UserRegionSummary) bool {
    			return regionInterval(t, r).duration() >= lat
    		})
    		filterParams.Add("latmin", lat.String())
    	}
    	if lat, err := time.ParseDuration(r.FormValue("latmax")); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline.go

    func parseTimeout(req *http.Request) (time.Duration, bool, error) {
    	value := req.URL.Query().Get("timeout")
    	if value == "" {
    		return 0, false, nil
    	}
    
    	timeout, err := time.ParseDuration(value)
    	if err != nil {
    		return 0, false, fmt.Errorf("%s - %s", invalidTimeoutInURL, err.Error())
    	}
    
    	return timeout, true, nil
    }
    
    // handleError does the following:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 21:12:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. cmd/signature-v4-parser.go

    	if e != nil {
    		return psv, ErrMalformedPresignedDate
    	}
    
    	// Save expires in native time.Duration.
    	preSignV4Values.Expires, e = time.ParseDuration(query.Get(xhttp.AmzExpires) + "s")
    	if e != nil {
    		return psv, ErrMalformedExpires
    	}
    
    	if preSignV4Values.Expires < 0 {
    		return psv, ErrNegativeExpires
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_cache_inputs.txt

    	t.Log(os.Args)
    }
    
    func TestBenchtime(t *testing.T) {
    }
    
    -- mkold.go --
    package main
    
    import (
    	"log"
    	"os"
    	"time"
    )
    
    func main() {
    	d, err := time.ParseDuration(os.Args[1])
    	if err != nil {
    		log.Fatal(err)
    	}
    	path := os.Args[2]
    	old := time.Now().Add(-d)
    	err = os.Chtimes(path, old, old)
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. tools/bug-report/pkg/config/config.go

    	if err := json.Unmarshal(b, &v); err != nil {
    		return err
    	}
    	switch value := v.(type) {
    	case float64:
    		*d = Duration(time.Duration(value))
    		return nil
    	case string:
    		tmp, err := time.ParseDuration(value)
    		if err != nil {
    			return err
    		}
    		*d = Duration(tmp)
    		return nil
    	default:
    		return errors.New("invalid duration")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Nov 04 12:07:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ServerInfoAdminAction)
    	if objectAPI == nil {
    		return
    	}
    	const defaultMetricsInterval = time.Second
    
    	interval, err := time.ParseDuration(r.Form.Get("interval"))
    	if err != nil || interval < time.Second {
    		interval = defaultMetricsInterval
    	}
    
    	n, err := strconv.Atoi(r.Form.Get("n"))
    	if err != nil || n <= 0 {
    		n = math.MaxInt32
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top