Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 93 for HasPrefix (0.08 sec)

  1. src/archive/tar/reader.go

    		case paxMtime:
    			hdr.ModTime, err = parsePAXTime(v)
    		case paxCtime:
    			hdr.ChangeTime, err = parsePAXTime(v)
    		case paxSize:
    			hdr.Size, err = strconv.ParseInt(v, 10, 64)
    		default:
    			if strings.HasPrefix(k, paxSchilyXattr) {
    				if hdr.Xattrs == nil {
    					hdr.Xattrs = make(map[string]string)
    				}
    				hdr.Xattrs[k[len(paxSchilyXattr):]] = v
    			}
    		}
    		if err != nil {
    			return ErrHeader
    		}
    	}
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Oct 07 19:46:36 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    		{"test-bucket-list-object", "", "obj0", "", 1, resultCases[19], nil, true},
    		// Testing with both marker and prefix, but without truncation (43-45).
    		// The valid combination of marker and prefix should satisfy strings.HasPrefix(marker, prefix).
    		{"test-bucket-list-object", "obj", "obj0", "", 2, resultCases[20], nil, true},
    		{"test-bucket-list-object", "obj", "obj1", "", 1, resultCases[21], nil, true},
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:03 UTC 2025
    - 76.1K bytes
    - Viewed (0)
  3. cmd/encryption-v1.go

    	const ARNPrefix = crypto.ARNPrefix
    	if len(metadata) == 0 {
    		return ""
    	}
    	kmsID, ok := metadata[crypto.MetaKeyID]
    	if !ok {
    		return ""
    	}
    	if strings.HasPrefix(kmsID, ARNPrefix) {
    		return kmsID
    	}
    	return ARNPrefix + kmsID
    }
    
    // DecryptETags decryptes the ETag of all ObjectInfos using the KMS.
    //
    // It adjusts the size of all encrypted objects since encrypted
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 38K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    // name starts with a period, qualifySymbol prepends the package
    // prefix. Otherwise it returns name unchanged.
    func (p *Parser) qualifySymbol(name string) string {
    	if strings.HasPrefix(name, ".") {
    		name = p.pkgPrefix + name
    	}
    	return name
    }
    
    // symbolReference parses a symbol that is known not to be a register.
    func (p *Parser) symbolReference(a *obj.Addr, name string, prefix rune) {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Nov 12 03:59:40 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  5. cmd/erasure-multipart.go

    			wait()
    			return nil
    		})
    	})
    
    	readDirFn(pathJoin(drivePath, minioMetaTmpBucket), func(tmpDir string, typ os.FileMode) error {
    		if strings.HasPrefix(tmpDir, ".trash") {
    			// do not remove .trash/ here, it has its own routines
    			return nil
    		}
    		vi, err := disk.StatVol(ctx, pathJoin(minioMetaTmpBucket, tmpDir))
    		if err != nil {
    			return nil
    		}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 47.1K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    	}
    
    	if maxUploads < 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidMaxUploads), r.URL)
    		return
    	}
    
    	if keyMarker != "" {
    		// Marker not common with prefix is not implemented.
    		if !HasPrefix(keyMarker, prefix) {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    			return
    		}
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 63.9K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    	// Check latency...
    	if opts.Threshold > 0 && trcInfo.Duration < opts.Threshold {
    		return false
    	}
    
    	// Check internal path
    	isInternal := isHTTP && HasPrefix(trcInfo.HTTP.ReqInfo.Path, minioReservedBucketPath+SlashSeparator)
    	if isInternal && !opts.Internal {
    		return false
    	}
    
    	// Filter non-errors.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 99.7K bytes
    - Viewed (0)
  8. src/bytes/bytes_test.go

    			var out Buffer
    			if n < 0 {
    				n = math.MaxInt
    			}
    			for i := 0; i < len(in); {
    				if n == 0 {
    					out.Write(in[i:])
    					break
    				}
    				if HasPrefix(in[i:], old) {
    					out.Write(new)
    					i += len(old)
    					n--
    					if len(old) != 0 {
    						continue
    					}
    					if i == len(in) {
    						break
    					}
    				}
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 23:54:14 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    			switch k {
    			case tierFVIDKey, tierFVMarkerKey:
    				continue
    			}
    		}
    		if equals(k, "x-amz-storage-class") && string(v) == storageclass.STANDARD {
    			continue
    		}
    		switch {
    		case strings.HasPrefix(strings.ToLower(k), ReservedMetadataPrefixLower), equals(k, VersionPurgeStatusKey):
    			fi.Metadata[k] = string(v)
    		}
    	}
    	fi.ReplicationState = getInternalReplicationState(fi.Metadata)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 65.6K bytes
    - Viewed (1)
  10. cmd/object-handlers_test.go

    		}
    		// Since `apiRouter` satisfies `http.Handler` it has a
    		// ServeHTTP to execute the logic of the handler.
    		apiRouter.ServeHTTP(rec, req)
    
    		isEnc := false
    		expected := 200
    		if strings.HasPrefix(input.objectName, "enc-") {
    			isEnc = true
    			expected = 400
    		}
    		if rec.Code != expected {
    			t.Errorf("Test %d: expected code %d but got %d for object %s", i+1, expected, rec.Code, input.objectName)
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 163.1K bytes
    - Viewed (0)
Back to top