Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 163 for init (0.15 sec)

  1. internal/grid/benchmark_test.go

    func BenchmarkRequests(b *testing.B) {
    	for n := 2; n <= 32; n *= 2 {
    		b.Run("servers="+strconv.Itoa(n), func(b *testing.B) {
    			benchmarkGridRequests(b, n)
    		})
    	}
    }
    
    func benchmarkGridRequests(b *testing.B, n int) {
    	defer testlogger.T.SetErrorTB(b)()
    	errFatal := func(err error) {
    		b.Helper()
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    	values := make(url.Values)
    	values.Set(storageRESTVolume, volume)
    	values.Set(storageRESTFilePath, path)
    	values.Set(storageRESTOffset, strconv.Itoa(int(offset)))
    	values.Set(storageRESTLength, strconv.Itoa(int(length)))
    	respBody, err := client.call(ctx, storageRESTMethodReadFileStream, values, nil, -1)
    	if err != nil {
    		return nil, err
    	}
    	return respBody, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/streaming-signature-v4.go

    		// a size of 16 is encoded as `10` while a size of 64 KB
    		// is `10000`.
    		switch {
    		case b >= '0' && b <= '9':
    			size = size<<4 | int(b-'0')
    		case b >= 'a' && b <= 'f':
    			size = size<<4 | int(b-('a'-10))
    		case b >= 'A' && b <= 'F':
    			size = size<<4 | int(b-('A'-10))
    		default:
    			cr.err = errMalformedEncoding
    			return n, cr.err
    		}
    		if size > maxChunkSize {
    			cr.err = errChunkTooBig
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  4. cmd/encryption-v1.go

    	// Current part index
    	partIndex int
    	// Parts information
    	parts          []ObjectPartInfo
    	header         http.Header
    	bucket, object string
    	metadata       map[string]string
    
    	partDecRelOffset, partEncRelOffset int64
    
    	copySource bool
    	// Customer Key
    	customerKeyHeader string
    }
    
    func (d *DecryptBlocksReader) buildDecrypter(partID int) error {
    	m := cloneMSS(d.metadata)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  5. cmd/post-policy_test.go

    	if err != nil {
    		// Failed to create newbucket, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	// Test cases for signature-V2.
    	testCasesV2 := []struct {
    		expectedStatus int
    		accessKey      string
    		secretKey      string
    	}{
    		{http.StatusForbidden, "invalidaccesskey", credentials.SecretKey},
    		{http.StatusForbidden, credentials.AccessKey, "invalidsecretkey"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    	const testPayload = "Hello Grid World!"
    
    	start := time.Now()
    	stream, err := remoteConn.NewStream(context.Background(), handlerTest, []byte(testPayload))
    	errFatal(err)
    	var n int
    	stream.Requests <- []byte(strconv.Itoa(n))
    	for resp := range stream.responses {
    		errFatal(resp.Err)
    		t.Logf("got resp: %+v", string(resp.Msg))
    		if string(resp.Msg) != testPayload+strconv.Itoa(n) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. cmd/bucket-object-lock.go

    	}
    
    	// Pass in relative days from current time, to additionally
    	// to verify "object-lock-remaining-retention-days" policy if any.
    	days := int(math.Ceil(math.Abs(objRetention.RetainUntilDate.Sub(t).Hours()) / 24))
    
    	ret := objectlock.GetObjectRetentionMeta(oi.UserDefined)
    	if ret.Mode.Valid() {
    		// Retention has expired you may change whatever you like.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  8. cmd/metacache-server-pool.go

    	defer cancelList()
    	for _, pool := range z.serverPools {
    		for _, set := range pool.sets {
    			wg.Add(1)
    			innerResults := make(chan metaCacheEntry, 100)
    			inputs = append(inputs, innerResults)
    			go func(i int, set *erasureObjects) {
    				defer wg.Done()
    				err := set.listPath(listCtx, o, innerResults)
    				mu.Lock()
    				defer mu.Unlock()
    				if err == nil {
    					allAtEOF = false
    				}
    				errs[i] = err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    // the Close() function is called.
    type closeNotifier struct {
    	rc   io.ReadCloser
    	done chan struct{}
    }
    
    func (c *closeNotifier) Read(p []byte) (n int, err error) {
    	n, err = c.rc.Read(p)
    	if err != nil {
    		if c.done != nil {
    			xioutil.SafeClose(c.done)
    			c.done = nil
    		}
    	}
    	return n, err
    }
    
    func (c *closeNotifier) Close() error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. helm-releases/minio-5.0.14.tgz

    template "minio.fullname" . }}-prometheus key: token {{- end }} {{- end }} minio/templates/statefulset.yaml {{- if eq .Values.mode "distributed" }} {{ $poolCount := .Values.pools | int }} {{ $nodeCount := .Values.replicas | int }} {{ $replicas := mul $poolCount $nodeCount }} {{ $drivesPerNode := .Values.drivesPerNode | int }} {{ $scheme := .Values.tls.enabled | ternary "https" "http" }} {{ $mountPath := .Values.mountPath }} {{ $bucketRoot := or ($.Values.bucketRoot) ($.Values.mountPath) }} {{ $subPath...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 30 20:46:10 GMT 2023
    - 20.6K bytes
    - Viewed (0)
Back to top