Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 273 for Ok (0.29 sec)

  1. internal/s3select/sql/value.go

    	case bool:
    		_, ok = b.value.(bool)
    	case string:
    		_, ok = b.value.(string)
    	case int64:
    		_, ok = b.value.(int64)
    	case float64:
    		_, ok = b.value.(float64)
    	case time.Time:
    		_, ok = b.value.(time.Time)
    	case []byte:
    		_, ok = b.value.([]byte)
    	case []Value:
    		_, ok = b.value.([]Value)
    	default:
    		ok = reflect.TypeOf(v.value) == reflect.TypeOf(b.value)
    	}
    	return ok
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  2. internal/crypto/sse-kms.go

    // at least one SSE-KMS header.
    func (ssekms) IsRequested(h http.Header) bool {
    	if _, ok := h[xhttp.AmzServerSideEncryptionKmsID]; ok {
    		return true
    	}
    	if _, ok := h[xhttp.AmzServerSideEncryptionKmsContext]; ok {
    		return true
    	}
    	if _, ok := h[xhttp.AmzServerSideEncryption]; ok {
    		// Return only true if the SSE header is specified and does not contain the SSE-S3 value
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    		subClaimValue := cred.ParentUser
    		if v, ok := claims[subClaim]; ok {
    			subFromToken, ok := v.(string)
    			if ok {
    				subClaimValue = subFromToken
    			}
    		}
    
    		roleArn := openid.DummyRoleARN.String()
    		s, ok := claims[roleArnClaim]
    		val, ok2 := s.(string)
    		if ok && ok2 {
    			roleArn = val
    		}
    		v, ok := res[cred.ParentUser]
    		if ok {
    			res[cred.ParentUser] = ParentUserInfo{
    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)
  4. cmd/signature-v4-utils.go

    func skipContentSha256Cksum(r *http.Request) bool {
    	var (
    		v  []string
    		ok bool
    	)
    
    	if isRequestPresignedSignatureV4(r) {
    		v, ok = r.Form[xhttp.AmzContentSha256]
    		if !ok {
    			v, ok = r.Header[xhttp.AmzContentSha256]
    		}
    	} else {
    		v, ok = r.Header[xhttp.AmzContentSha256]
    	}
    
    	// Skip if no header was set.
    	if !ok {
    		return true
    	}
    
    	// If x-amz-content-sha256 is set and the value is not
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. internal/event/targetlist.go

    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    		stats = targetStat{}
    	}
    
    	stats.currentSendCalls++
    	list.targetStats[id] = stats
    	return
    }
    
    func (list *TargetList) decCurrentSendCalls(id TargetID) {
    	list.statLock.Lock()
    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    		// should not happen
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  6. cmd/bucket-targets.go

    	sys.hMutex.RLock()
    	defer sys.hMutex.RUnlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		return !h.Online
    	}
    	go sys.initHC(ep)
    	return false
    }
    
    // markOffline sets endpoint to offline if network i/o timeout seen.
    func (sys *BucketTargetSys) markOffline(ep *url.URL) {
    	sys.hMutex.Lock()
    	defer sys.hMutex.Unlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		h.Online = false
    		sys.hc[ep.Host] = h
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  7. internal/s3select/sql/stringfuncs.go

    				return true, nil
    			}
    
    		case underscore:
    			if len(s) == 0 {
    				text, ok = dropRune(text)
    				if !ok {
    					return false, nil
    				}
    				continue
    			}
    
    			text, ok = matcher(text, string(s), hasLeadingPercent)
    			if !ok {
    				return false, nil
    			}
    			hasLeadingPercent = false
    
    			text, ok = dropRune(text)
    			if !ok {
    				return false, nil
    			}
    			s = []rune{}
    
    		case escape:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  8. cmd/kms-handlers.go

    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    
    	if _, ok := GlobalKMS.(kms.KeyManager); !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	metrics, err := GlobalKMS.Metrics(ctx)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  9. cmd/bitrot.go

    func (a BitrotAlgorithm) Available() bool {
    	_, ok := bitrotAlgorithms[a]
    	return ok
    }
    
    // String returns the string identifier for a given bitrot algorithm.
    // If the algorithm is not supported String panics.
    func (a BitrotAlgorithm) String() string {
    	name, ok := bitrotAlgorithms[a]
    	if !ok {
    		logger.CriticalIf(GlobalContext, errors.New("Unsupported bitrot algorithm"))
    	}
    	return name
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  10. internal/store/batch.go

    	sync.Mutex
    }
    
    // Add adds the item to the batch
    func (b *Batch[K, T]) Add(key K, item T) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    // GetAll fetches the items and resets the batch
    // Returned items are not referenced by the batch
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top