Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for indexType (0.22 sec)

  1. cmd/streaming-signature-v4.go

    	input := bufio.NewScanner(bytes.NewReader(valueBuffer.Bytes()))
    	for input.Scan() {
    		line := strings.TrimSpace(input.Text())
    		if line == "" {
    			continue
    		}
    		// Find first separator.
    		idx := strings.IndexByte(line, trailerKVSeparator[0])
    		if idx <= 0 || idx >= len(line) {
    			if cr.debug {
    				fmt.Printf("index, ':' not found in %q\n", line)
    			}
    			return errMalformedEncoding
    		}
    		key := line[:idx]
    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)
  2. cmd/encryption-v1.go

    // fail.
    func DecryptETag(key crypto.ObjectKey, object ObjectInfo) (string, error) {
    	if n := strings.Count(object.ETag, "-"); n > 0 {
    		if n != 1 {
    			return "", errObjectTampered
    		}
    		i := strings.IndexByte(object.ETag, '-')
    		if len(object.ETag[:i]) != 32 {
    			return "", errObjectTampered
    		}
    		if _, err := hex.DecodeString(object.ETag[:32]); err != nil {
    			return "", errObjectTampered
    		}
    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)
  3. cmd/metacache-walk.go

    		forward := ""
    		if len(opts.ForwardTo) > 0 && strings.HasPrefix(opts.ForwardTo, current) {
    			forward = strings.TrimPrefix(opts.ForwardTo, current)
    			// Trim further directories and trailing slash.
    			if idx := strings.IndexByte(forward, '/'); idx > 0 {
    				forward = forward[:idx]
    			}
    		}
    		if contextCanceled(ctx) {
    			return ctx.Err()
    		}
    		if opts.Limit > 0 && objsReturned >= opts.Limit {
    			return nil
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top