Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for HasPrefix (0.16 sec)

  1. cmd/postpolicyform.go

    	checkHeader := map[string][]string{}
    	ignoreKeys := map[string]bool{}
    	for key, value := range formValues {
    		switch {
    		case ignoreKeys[key], postPolicyIgnoreKeys[key], strings.HasPrefix(key, encrypt.SseGenericHeader):
    			continue
    		case strings.HasPrefix(key, "X-Amz-Ignore-"):
    			ignoreKey := strings.Replace(key, "X-Amz-Ignore-", "", 1)
    			ignoreKeys[ignoreKey] = true
    			// if it have already
    			delete(checkHeader, ignoreKey)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  2. cmd/metacache-walk.go

    		// Skip forward, if requested...
    		sb := bytebufferpool.Get()
    		defer func() {
    			sb.Reset()
    			bytebufferpool.Put(sb)
    		}()
    
    		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]
    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)
  3. cmd/generic-handlers.go

    		return true
    	}
    
    	return req.Method == http.MethodPost &&
    		strings.HasPrefix(req.URL.Path, minioReservedBucketPath+SlashSeparator)
    }
    
    // Check to allow access to the reserved "bucket" `/minio` for Admin
    // API requests.
    func isAdminReq(r *http.Request) bool {
    	return strings.HasPrefix(r.URL.Path, adminPathPrefix)
    }
    
    // Check to allow access to the reserved "bucket" `/minio` for KMS
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle.go

    			continue
    		}
    
    		if len(prefix) > 0 && len(rule.GetPrefix()) > 0 {
    			// we can skip this rule if it doesn't match the tested
    			// prefix.
    			if !strings.HasPrefix(prefix, rule.GetPrefix()) && !strings.HasPrefix(rule.GetPrefix(), prefix) {
    				continue
    			}
    		}
    
    		if rule.NoncurrentVersionExpiration.NoncurrentDays > 0 {
    			return true
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. cmd/metacache-entries.go

    func (e metaCacheEntry) isObjectDir() bool {
    	return len(e.metadata) > 0 && strings.HasSuffix(e.name, slashSeparator)
    }
    
    // hasPrefix returns whether an entry has a specific prefix
    func (e metaCacheEntry) hasPrefix(s string) bool {
    	return strings.HasPrefix(e.name, s)
    }
    
    // matches returns if the entries have the same versions.
    // If strict is false we allow signatures to mismatch.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. internal/logger/logger.go

    		// Skip duplicate traces that start with file name, "<autogenerated>"
    		// and also skip traces with function name that starts with "runtime."
    		if !strings.HasPrefix(file, "<autogenerated>") &&
    			!strings.HasPrefix(funcName, "runtime.") {
    			// Form and append a line of stack trace into a
    			// collection, 'trace', to build full stack trace
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  7. cmd/metrics-v3.go

    	metricsCache := newMetricsCache()
    	mgMap := make(map[collectorPath]*MetricsGroup)
    	bucketMGMap := make(map[collectorPath]*MetricsGroup)
    	for _, mg := range allMetricGroups {
    		if !strings.HasPrefix(string(mg.CollectorPath), clusterBasePath) {
    			mg.AddExtraLabels(
    				serverName, globalLocalNodeName,
    				// poolIndex, strconv.Itoa(globalLocalPoolIdx),
    			)
    		}
    		mg.SetCache(metricsCache)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. migrator/migrator.go

    		isSameType  = fullDataType == realDataType
    	)
    
    	if !field.PrimaryKey {
    		// check type
    		if !strings.HasPrefix(fullDataType, realDataType) {
    			// check type aliases
    			aliases := m.DB.Migrator().GetTypeAliases(realDataType)
    			for _, alias := range aliases {
    				if strings.HasPrefix(fullDataType, alias) {
    					isSameType = true
    					break
    				}
    			}
    
    			if !isSameType {
    				alterColumn = true
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  9. cmd/metacache-set.go

    				continue
    			}
    			if o.Marker != "" && entry.name < o.Marker {
    				continue
    			}
    			if !strings.HasPrefix(entry.name, o.Prefix) {
    				continue
    			}
    			if !o.Recursive && !entry.isInDir(o.Prefix, o.Separator) {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  10. cmd/common-main.go

    func parsEnvEntry(envEntry string) (envKV, error) {
    	envEntry = strings.TrimSpace(envEntry)
    	if envEntry == "" {
    		// Skip all empty lines
    		return envKV{
    			Skip: true,
    		}, nil
    	}
    	if strings.HasPrefix(envEntry, "#") {
    		// Skip commented lines
    		return envKV{
    			Skip: true,
    		}, nil
    	}
    	envTokens := strings.SplitN(strings.TrimSpace(strings.TrimPrefix(envEntry, "export")), config.EnvSeparator, 2)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
Back to top