Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for Rashed (0.2 sec)

  1. internal/jwt/parser.go

    	hasher := h.pool.Get().(hash.Hash)
    	h.borrowed = append(h.borrowed, hasher)
    	hasher.Reset()
    	return hasher
    }
    
    // ReturnAll will return all borrowed hashes.
    func (h *HashBorrower) ReturnAll() {
    	for _, hasher := range h.borrowed {
    		h.pool.Put(hasher)
    	}
    	h.borrowed = nil
    }
    
    // StandardClaims are basically standard claims with "accessKey"
    type StandardClaims struct {
    	AccessKey string `json:"accessKey,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  2. internal/hash/checksum.go

    }
    
    // Matches returns whether given content matches c.
    func (c Checksum) Matches(content []byte) error {
    	if len(c.Encoded) == 0 {
    		return nil
    	}
    	hasher := c.Type.Hasher()
    	_, err := hasher.Write(content)
    	if err != nil {
    		return err
    	}
    	sum := hasher.Sum(nil)
    	if !bytes.Equal(sum, c.Raw) {
    		return ChecksumMismatch{
    			Want: c.Encoded,
    			Got:  base64.StdEncoding.EncodeToString(sum),
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  3. docs/metrics/prometheus/grafana/minio-replication.json

      "panels": [
        {
          "aliasColors": {
            "Replication Errors": "light-red",
            "Replication Requests": "light-green"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 6,
            "w": 6,
    Json
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Tue Feb 20 09:45:00 GMT 2024
    - 61.5K bytes
    - Viewed (1)
  4. internal/logger/target/kafka/kafka_scram_client_contrib.go

    	}
    }
    
    // KafkaSHA256 is a function that returns a crypto/sha256 hasher and should be used
    // to create Client objects configured for SHA-256 hashing.
    var KafkaSHA256 scram.HashGeneratorFcn = sha256.New
    
    // KafkaSHA512 is a function that returns a crypto/sha512 hasher and should be used
    // to create Client objects configured for SHA-512 hashing.
    var KafkaSHA512 scram.HashGeneratorFcn = sha512.New
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  5. cmd/xl-storage-disk-id-check.go

    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    			old := e.cached.Swap(newAcc)
    			var a AccElem
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. cmd/data-usage_test.go

    	got, err := scanDataFolder(context.Background(), nil, base, dataUsageCache{Info: dataUsageCacheInfo{Name: "bucket"}}, getSize, 0, weSleep)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got.root() == nil {
    		t.Log("cached folders:")
    		for folder := range got.Cache {
    			t.Log("folder:", folder)
    		}
    		t.Fatal("got nil root.")
    	}
    
    	// Test dirs
    	want := []struct {
    		path       string
    		isNil      bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. cmd/iam.go

    	entityKeysInStorage := set.NewStringSet()
    	if iamOS, ok := sys.store.IAMStorageAPI.(*IAMObjectStore); ok {
    		// Load existing mapping keys from the cached listing for
    		// `IAMObjectStore`.
    		iamFilesListing := iamOS.cachedIAMListing.Load().(map[string][]string)
    		listKey := policyDBSTSUsersListKey
    		if isGroup {
    			listKey = policyDBGroupsListKey
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  8. cmd/erasure-server-pool.go

    // that all buckets are present on all serverPools.
    func (z *erasureServerPools) ListBuckets(ctx context.Context, opts BucketOptions) (buckets []BucketInfo, err error) {
    	if opts.Cached {
    		listBucketsCache.InitOnce(time.Second,
    			cachevalue.Opts{ReturnLastGood: true, NoWait: true},
    			func() ([]BucketInfo, error) {
    				ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    	}
    	for k, v := range m.VariableLabels {
    		metric.VariableLabels[k] = v
    	}
    	for k, v := range m.Histogram {
    		metric.Histogram[k] = v
    	}
    	return metric
    }
    
    // Get - returns cached value always upton the configured TTL,
    // once the TTL expires "read()" registered function is called
    // to return the new values and updated.
    func (g *MetricsGroupV2) Get() (metrics []MetricV2) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    						w.WriteHeader(ci.StatusCode)
    						return
    					}
    
    					// We did not satisfy any requirement from the cache, update the cache.
    					// this basically means that we do not have the Data for the object
    					// cached yet
    					update = true
    				})
    				if !update {
    					// No update is needed means we have written already to the client just return here.
    					return
    				}
    			}
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top