- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 287 for unit (0.18 sec)
-
internal/rest/client.go
func exponentialBackoffWait(r *rand.Rand, unit, cap time.Duration) func(uint) time.Duration { if unit > time.Hour { // Protect against integer overflow panic("unit cannot exceed one hour") } return func(attempt uint) time.Duration { if attempt > 16 { // Protect against integer overflow attempt = 16 } // sleep = random_between(unit, min(cap, base * 2 ** attempt))
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 14K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig_test.go
execClientConfig: loggingConfig, args: strings.Split("clusters httpbin-794b576b6c-qx6pf", " "), expectedString: `config dump has no configuration type`, wantException: true, }, { // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests) execClientConfig: loggingConfig,
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed Apr 10 21:51:29 GMT 2024 - 8.9K bytes - Viewed (0) -
internal/dsync/utils.go
package dsync import ( "math/rand" "time" ) func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration { if unit > time.Hour { // Protect against integer overflow panic("unit cannot exceed one hour") } return func(r *rand.Rand, attempt uint) time.Duration { sleep := min sleep += unit * time.Duration(attempt) if sleep > cap { sleep = cap }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sat May 13 15:42:21 GMT 2023 - 1.2K bytes - Viewed (0) -
cmd/admin-handlers_test.go
"testing" "time" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/auth" "github.com/minio/mux" ) // adminErasureTestBed - encapsulates subsystems that need to be setup for // admin-handler unit tests. type adminErasureTestBed struct { erasureDirs []string objLayer ObjectLayer router *mux.Router done context.CancelFunc }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 13.8K bytes - Viewed (0) -
operator/cmd/mesh/operator-init.go
} func operatorInitCmd(ctx cli.Context, rootArgs *RootArgs, oiArgs *operatorInitArgs) *cobra.Command { return &cobra.Command{ Use: "init", Short: "Installs the Istio operator controller in the cluster.", Long: "The init subcommand installs the Istio operator controller in the cluster.", Args: cobra.ExactArgs(0), PreRunE: func(cmd *cobra.Command, args []string) error {
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 6.2K bytes - Viewed (0) -
internal/s3select/parquet/reader.go
// Only support UTC normalized timestamps. if ts.IsAdjustedToUTC { switch { case ts.Unit.IsSetNANOS(): duration = time.Duration(val) * time.Nanosecond case ts.Unit.IsSetMILLIS(): duration = time.Duration(val) * time.Millisecond case ts.Unit.IsSetMICROS(): duration = time.Duration(val) * time.Microsecond default:
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 14 13:54:47 GMT 2022 - 4.5K bytes - Viewed (0) -
internal/dsync/drwmutex.go
"github.com/minio/pkg/v2/console" "github.com/minio/pkg/v2/env" ) // Indicator if logging is enabled. var dsyncLog bool // Retry unit interval var lockRetryMinInterval time.Duration var lockRetryBackOff func(*rand.Rand, uint) time.Duration func init() { // Check for MINIO_DSYNC_TRACE env variable, if set logging will be enabled for failed REST operations. dsyncLog = env.Get("_MINIO_DSYNC_TRACE", "0") == "1"
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 19.7K bytes - Viewed (0) -
cmd/batch-job-common-types.go
// column information guiding user to fix syntax errors type BatchJobYamlErr struct { line, col int msg string } // message returns the error message excluding line, col information. // Intended to be used in unit tests. func (b BatchJobYamlErr) message() string { return b.msg } // Error implements Error interface func (b BatchJobYamlErr) Error() string {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 01 21:53:26 GMT 2024 - 7.9K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient.go
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 2.4K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
func TestListObjects(t *testing.T) { ExecObjectLayerTest(t, testListObjects) } // Unit test for ListObjects on VersionedBucket. func testListObjectsOnVersionedBuckets(obj ObjectLayer, instanceType string, t1 TestErrHandler) { _testListObjects(obj, instanceType, t1, true) } // Unit test for ListObjects. func testListObjects(obj ObjectLayer, instanceType string, t1 TestErrHandler) {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jan 30 20:43:25 GMT 2024 - 73.1K bytes - Viewed (0)