Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Rashed (0.16 sec)

  1. cmd/post-policy_test.go

    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    	bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName)
    	// Add the key condition, only accept keys equal to the one passed.
    	keyConditionStr := fmt.Sprintf(`["eq", "$key", "%s/upload.txt"]`, objectKey)
    	// Add content length condition, only accept content sizes of a given length.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  2. cmd/jwt_test.go

    	b.Run("uncached", func(b *testing.B) {
    		fn := authenticateNode
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn(creds.AccessKey, creds.SecretKey, "aud")
    		}
    	})
    	b.Run("cached", func(b *testing.B) {
    		fn := newCachedAuthToken()
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn("aud")
    		}
    	})
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    		// value is cached we should attempt to invalidate it if such calls
    		// were attempted. This can lead to false success under certain conditions
    		// - this change attempts to avoid stale information if the underlying
    		// transport is already down.
    		return "", errDiskNotFound
    	}
    
    	// This call should never be over the network, this is always
    	// a cached value - caller should make sure to use this
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  4. cmd/storage-datatypes.go

    	// Erasure info for all objects.
    	Erasure ErasureInfo `msg:"ei"`
    
    	MarkDeleted      bool             `msg:"md"` // mark this version as deleted
    	ReplicationState ReplicationState `msg:"rs"` // Internal replication state to be passed back in ObjectInfo
    
    	Data []byte `msg:"d,allownil"` // optionally carries object data
    
    	NumVersions      int       `msg:"nv"`
    	SuccessorModTime time.Time `msg:"smt"`
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. cmd/iam-store.go

    		}
    		groups.Remove(group)
    		c.iamUserGroupMemberships[member] = groups
    	}
    }
    
    // policyDBGet - lower-level helper; does not take locks.
    //
    // If a group is passed, it returns policies associated with the group.
    //
    // If a user is passed, it returns policies of the user along with any groups
    // that the server knows the user is a member of.
    //
    // In LDAP users mode, the server does not store any group membership
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  6. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. cmd/config-current.go

    	env.SetEnvOff()
    
    	// Enable env values to validate KMS.
    	defer env.SetEnvOn()
    	if subSys != "" {
    		return validateSubSysConfig(ctx, s, subSys, objAPI)
    	}
    
    	// No sub-system passed. Validate all of them.
    	for _, ss := range config.SubSystems.ToSlice() {
    		if err := validateSubSysConfig(ctx, s, ss, objAPI); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 11:33:28 GMT 2024
    - 30.7K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    			return nil, errDiskAccessDenied
    		}
    		storageLogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
    		return nil, errCorruptedBackend
    	}
    	return fi, nil
    }
    
    // GetDiskID - returns the cached disk uuid
    func (s *xlStorage) GetDiskID() (string, error) {
    	s.RLock()
    	diskID := s.diskID
    	fileInfo := s.formatFileInfo
    	lastCheck := s.formatLastCheck
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    					return false
    				}
    				storage := newXLStorageDiskIDCheck(xl, true)
    				storage.SetDiskID(xl.diskID)
    				// We do not have to do SetFormatData() since 'xl'
    				// already captures formatData cached.
    
    				globalLocalDrivesMu.Lock()
    				defer globalLocalDrivesMu.Unlock()
    
    				globalLocalDrives = append(globalLocalDrives, storage)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top