Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for ToLower (0.1 sec)

  1. 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)
  2. 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)
  3. internal/s3select/json/args.go

    	type subReaderArgs ReaderArgs
    	parsedArgs := subReaderArgs{}
    	if err := d.DecodeElement(&parsedArgs, &start); err != nil {
    		return err
    	}
    
    	parsedArgs.ContentType = strings.ToLower(parsedArgs.ContentType)
    	switch parsedArgs.ContentType {
    	case document, lines:
    	default:
    		return errInvalidJSONType(fmt.Errorf("invalid ContentType '%v'", parsedArgs.ContentType))
    	}
    
    	*args = ReaderArgs(parsedArgs)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  4. 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)
  5. internal/s3select/sql/funceval.go

    		default:
    			return false, errCastFailure("cannot cast to Bool")
    		}
    	}
    	switch x := v.value.(type) {
    	case bool:
    		return x, nil
    	case string:
    		return sToB(strings.ToLower(x))
    	case []byte:
    		return sToB(strings.ToLower(string(x)))
    	default:
    		return false, errCastFailure("cannot cast %v to Bool")
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  6. cmd/http-stats.go

    }
    
    // Load returns the recorded stats.
    func (stats *HTTPAPIStats) Load(toLower bool) map[string]int {
    	if stats == nil {
    		return map[string]int{}
    	}
    
    	stats.RLock()
    	defer stats.RUnlock()
    
    	apiStats := make(map[string]int, len(stats.apiStats))
    	for k, v := range stats.apiStats {
    		if toLower {
    			k = strings.ToLower(k)
    		}
    		apiStats[k] = v
    	}
    	return apiStats
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. cmd/api-utils.go

    			j++
    		}
    	}
    	return string(t)
    }
    
    // s3EncodeName encodes string in response when encodingType is specified in AWS S3 requests.
    func s3EncodeName(name, encodingType string) string {
    	if strings.ToLower(encodingType) == "url" {
    		return s3URLEncode(name)
    	}
    	return name
    }
    
    // getHandlerName returns the name of the handler function. It takes the type
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 04 18:05:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. internal/logger/target/kafka/kafka_scram_client_contrib.go

    	"crypto/sha512"
    	"strings"
    
    	"github.com/IBM/sarama"
    	"github.com/xdg/scram"
    
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    func initScramClient(cfg Config, config *sarama.Config) {
    	switch strings.ToLower(cfg.SASL.Mechanism) {
    	case "sha512":
    		config.Net.SASL.SCRAMClientGeneratorFunc = func() sarama.SCRAMClient { return &XDGSCRAMClient{HashGeneratorFcn: KafkaSHA512} }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Nov 09 04:04:01 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. cmd/object-handlers.go

    			}
    			if objRetention.Mode.Valid() {
    				oi.UserDefined[strings.ToLower(xhttp.AmzObjectLockMode)] = string(objRetention.Mode)
    				oi.UserDefined[strings.ToLower(xhttp.AmzObjectLockRetainUntilDate)] = amztime.ISO8601Format(objRetention.RetainUntilDate.UTC())
    			} else {
    				oi.UserDefined[strings.ToLower(xhttp.AmzObjectLockMode)] = ""
    				oi.UserDefined[strings.ToLower(xhttp.AmzObjectLockRetainUntilDate)] = ""
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  10. cmd/event-notification.go

    		newEvent.S3.Object.ContentType = args.Object.ContentType
    		newEvent.S3.Object.UserMetadata = make(map[string]string, len(args.Object.UserDefined))
    		for k, v := range args.Object.UserDefined {
    			if stringsHasPrefixFold(strings.ToLower(k), ReservedMetadataPrefixLower) {
    				continue
    			}
    			newEvent.S3.Object.UserMetadata[k] = v
    		}
    	}
    
    	return newEvent
    }
    
    func sendEvent(args eventArgs) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top