Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 103 for HasPrefix (0.21 sec)

  1. 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},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  2. cmd/utils.go

    // encryption metadata.
    func cleanMinioInternalMetadataKeys(metadata map[string]string) map[string]string {
    	newMeta := make(map[string]string, len(metadata))
    	for k, v := range metadata {
    		if strings.HasPrefix(k, "X-Amz-Meta-X-Minio-Internal-") {
    			newMeta[strings.TrimPrefix(k, "X-Amz-Meta-")] = v
    		} else {
    			newMeta[k] = v
    		}
    	}
    	return newMeta
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		copy(blk[:], b.Bytes())
    		prefix := string(blk.toUSTAR().prefix())
    		prefix, _, _ = strings.Cut(prefix, "\x00") // Truncate at the NUL terminator
    		if blk.getFormat() == FormatGNU && len(prefix) > 0 && strings.HasPrefix(name, prefix) {
    			t.Errorf("test %d, found prefix in GNU format: %s", i, prefix)
    		}
    
    		tr := NewReader(&b)
    		hdr, err := tr.Next()
    		if err != nil && err != ErrInsecurePath {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K 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) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. 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
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  6. 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)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  8. cmd/object-handlers.go

    			versionID = tarHdrs.PAXRecords["minio.versionId"]
    			hdrs = make(http.Header)
    			for k, v := range tarHdrs.PAXRecords {
    				if k == "minio.versionId" {
    					continue
    				}
    				if strings.HasPrefix(k, "minio.metadata.") {
    					k = strings.TrimPrefix(k, "minio.metadata.")
    					hdrs.Set(k, v)
    				}
    			}
    			m, err := extractMetadata(ctx, textproto.MIMEHeader(hdrs))
    			if err != nil {
    				return err
    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)
  9. src/cmd/cgo/internal/test/callback.go

    		if f == nil {
    			t.Fatalf("expected non-nil Func for pc %d", pc[i])
    		}
    		fname := f.Name()
    		// Remove the prepended pathname from automatically
    		// generated cgo function names.
    		if strings.HasPrefix(fname, "_") {
    			fname = path.Base(f.Name()[1:])
    		}
    		// In module mode, this package has a fully-qualified import path.
    		// Remove it if present.
    		fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    			prev = c
    			continue
    		}
    		if len(prev.Rules) != len(c.Rules) {
    			return false
    		}
    		if len(c.Rules) != total-1 {
    			return false
    		}
    		for _, r := range c.Rules {
    			if !strings.HasPrefix(r.ID, "site-repl-") {
    				return false
    			}
    			if r.DeleteMarkerReplication.Status == sreplication.Disabled ||
    				r.DeleteReplication.Status == sreplication.Disabled ||
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
Back to top