Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for ToLower (0.18 sec)

  1. cmd/handler-utils.go

    		if err != nil {
    			return nil, err
    		}
    	}
    
    	// Set content-type to default value if it is not set.
    	if _, ok := metadata[strings.ToLower(xhttp.ContentType)]; !ok {
    		metadata[strings.ToLower(xhttp.ContentType)] = "binary/octet-stream"
    	}
    
    	// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    	for k := range metadata {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. schema/serializer.go

    // RegisterSerializer register serializer
    func RegisterSerializer(name string, serializer SerializerInterface) {
    	serializerMap.Store(strings.ToLower(name), serializer)
    }
    
    // GetSerializer get serializer
    func GetSerializer(name string) (serializer SerializerInterface, ok bool) {
    	v, ok := serializerMap.Load(strings.ToLower(name))
    	if ok {
    		serializer, ok = v.(SerializerInterface)
    	}
    	return serializer, ok
    }
    
    func init() {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 08:45:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. cmd/object-api-options.go

    			apiErr = toAPIError(ctx, vErr)
    			argumentName = strings.ToLower("versionId")
    			argumentValue = vErr.VersionID
    		default:
    			apiErr = toAPIError(ctx, vErr)
    		}
    		valid = false
    		return
    	}
    
    	opts.MaxParts, err = parseIntHeader(bucket, object, r.Header, xhttp.AmzMaxParts)
    	if err != nil {
    		apiErr = toAPIError(ctx, err)
    		argumentName = strings.ToLower(xhttp.AmzMaxParts)
    		valid = false
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. internal/logger/targets.go

    	cnt := make(map[string]int, len(sys)+len(audit))
    
    	// Add system and audit.
    	for _, t := range sys {
    		key := strings.ToLower(t.Type().String())
    		n := cnt[key]
    		cnt[key]++
    		key = fmt.Sprintf("sys_%s_%d", key, n)
    		res[key] = t.Stats()
    	}
    
    	for _, t := range audit {
    		key := strings.ToLower(t.Type().String())
    		n := cnt[key]
    		cnt[key]++
    		key = fmt.Sprintf("audit_%s_%d", key, n)
    		res[key] = t.Stats()
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. internal/s3select/csv/args.go

    				args.AllowQuotedRecordDelimiter = b
    			default:
    				var s string
    				if err = d.DecodeElement(&s, &se); err != nil {
    					return err
    				}
    				switch tagName {
    				case "FileHeaderInfo":
    					s = strings.ToLower(s)
    					if len(s) != 0 {
    						if s != none && s != use && s != ignore {
    							return errors.New("unsupported FileHeaderInfo")
    						}
    						args.FileHeaderInfo = s
    					}
    
    				case "RecordDelimiter":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 18:31:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. cmd/metrics-router.go

    func registerMetricsRouter(router *mux.Router) {
    	// metrics router
    	metricsRouter := router.NewRoute().PathPrefix(minioReservedBucketPath).Subrouter()
    	authType := prometheusAuthType(strings.ToLower(env.Get(EnvPrometheusAuthType, string(prometheusJWT))))
    
    	auth := AuthMiddleware
    	if authType == prometheusPublic {
    		auth = NoAuthMiddleware
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. schema/naming.go

    }
    
    func (ns NamingStrategy) toSchemaName(name string) string {
    	result := strings.ReplaceAll(cases.Title(language.Und, cases.NoLower).String(strings.ReplaceAll(name, "_", " ")), " ", "")
    	for _, initialism := range commonInitialisms {
    		result = regexp.MustCompile(cases.Title(language.Und, cases.NoLower).String(strings.ToLower(initialism))+"([A-Z]|$|_)").ReplaceAllString(result, initialism+"$1")
    	}
    	return result
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    	var modeStr, tillStr string
    	ok := false
    
    	modeStr, ok = meta[strings.ToLower(AmzObjectLockMode)]
    	if !ok {
    		modeStr, ok = meta[AmzObjectLockMode]
    	}
    	if ok {
    		mode = parseRetMode(modeStr)
    	} else {
    		return ObjectRetention{}
    	}
    
    	tillStr, ok = meta[strings.ToLower(AmzObjectLockRetainUntilDate)]
    	if !ok {
    		tillStr, ok = meta[AmzObjectLockRetainUntilDate]
    	}
    	if ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. cmd/admin-server-info.go

    		key := split[0]
    		value := ""
    		if len(split) > 1 {
    			value = split[1]
    		}
    
    		// Do not send sensitive creds.
    		if _, ok := sensitive[key]; ok || strings.Contains(strings.ToLower(key), "password") || strings.HasSuffix(strings.ToLower(key), "key") {
    			props.MinioEnvVars[key] = "*** EXISTS, REDACTED ***"
    			continue
    		}
    		props.MinioEnvVars[key] = value
    	}
    
    	objLayer := newObjectLayerFn()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (1)
  10. cmd/postpolicyform.go

    	switch v := val.(type) {
    	case string:
    		return v
    	default:
    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val interface{}) string {
    	return strings.ToLower(toString(val))
    }
    
    // toInteger _ Safely convert interface to integer without causing panic.
    func toInteger(val interface{}) (int64, error) {
    	switch v := val.(type) {
    	case float64:
    		return int64(v), nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top