Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for TrimSpace (0.2 sec)

  1. cmd/bucket-lifecycle.go

    	versioned := globalBucketVersioningSys.PrefixEnabled(bucket, object)
    	versionSuspended := globalBucketVersioningSys.PrefixSuspended(bucket, object)
    	vid := strings.TrimSpace(r.Form.Get(xhttp.VersionID))
    	if vid != "" && vid != nullVersionID {
    		_, err := uuid.Parse(vid)
    		if err != nil {
    			s3LogIf(ctx, err)
    			return opts, InvalidVersionID{
    				Bucket:    bucket,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  2. cmd/utils.go

    	}
    	return err
    }
    
    // returns 'true' if either string has space in the
    // - beginning of a string
    // OR
    // - end of a string
    func hasSpaceBE(s string) bool {
    	return strings.TrimSpace(s) != s
    }
    
    func request2BucketObjectName(r *http.Request) (bucketName, objectName string) {
    	path, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 31.3K bytes
    - Viewed (0)
  3. internal/s3select/select_test.go

    			if err != nil {
    				t.Error(err)
    				return
    			}
    			got, err := io.ReadAll(res)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			gotS := strings.TrimSpace(string(got))
    			if !reflect.DeepEqual(gotS, testCase.wantResult) {
    				t.Errorf("received response does not match with expected reply. Query: %s\ngot: %s\nwant:%s", testCase.query, gotS, testCase.wantResult)
    			}
    		})
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  4. cmd/streaming-signature-v4.go

    	trailerRaw := valueBuffer.Bytes()
    	if len(trailerRaw) > 0 && trailerRaw[len(trailerRaw)-1] != '\n' {
    		valueBuffer.Write([]byte{'\n'})
    	}
    	sig = sig[len("x-amz-trailer-signature:"):]
    	sig = bytes.TrimSpace(sig)
    	cr.chunkSHA256Writer.Write(valueBuffer.Bytes())
    	wantSig := cr.getTrailerChunkSignature()
    	if !compareSignatureV4(string(sig), wantSig) {
    		if cr.debug {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  5. cmd/bootstrap-peer-server.go

    		msg += fmt.Sprintf(`Mismatching environment values: %v. `, mismatching)
    	}
    	if len(extra) > 0 {
    		msg += fmt.Sprintf(`Extra environment values: %v. `, extra)
    	}
    
    	return errors.New(strings.TrimSpace(msg))
    }
    
    var skipEnvs = map[string]struct{}{
    	"MINIO_OPTS":          {},
    	"MINIO_CERT_PASSWD":   {},
    	"MINIO_SERVER_DEBUG":  {},
    	"MINIO_DSYNC_TRACE":   {},
    	"MINIO_ROOT_USER":     {},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. cmd/handler-api.go

    	buf, err := os.ReadFile(cgroupV2MemLimitFile)
    	if err != nil {
    		buf, err = os.ReadFile(cgroupV1MemLimitFile)
    	}
    	if err != nil {
    		return 0
    	}
    	limit, err = strconv.ParseUint(strings.TrimSpace(string(buf)), 10, 64)
    	if err != nil {
    		// The kernel can return valid but non integer values
    		// but still, no need to interpret more
    		return 0
    	}
    	if limit == cgroupMemNoLimit {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue1435.go

    			//    "... : bad file descriptor.
    			continue
    		}
    		lines := strings.Split(string(d), "\n")
    		for _, line := range lines {
    			// Different kernel vintages pad differently.
    			line = strings.TrimSpace(line)
    			if strings.HasPrefix(line, "Pid:\t") {
    				// On loaded systems, it is possible
    				// for a TID to be reused really
    				// quickly. As such, we need to
    				// validate that the thread status
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  8. tests/sql_builder_test.go

    	returningRe := regexp.MustCompile(`(?i)RETURNING "id"`)
    	actually = returningRe.ReplaceAllString(actually, ``)
    	expected = returningRe.ReplaceAllString(expected, ``)
    
    	actually = strings.TrimSpace(actually)
    	expected = strings.TrimSpace(expected)
    
    	if actually != expected {
    		t.Fatalf("\nexpected: %s\nactually: %s", expected, actually)
    	}
    }
    
    func replaceQuoteInSQL(sql string) string {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. internal/config/storageclass/storage-class.go

    //
    //	is returned, the caller is expected to choose the right parity
    //	at that point.
    func (sCfg *Config) GetParityForSC(sc string) (parity int) {
    	ConfigLock.RLock()
    	defer ConfigLock.RUnlock()
    	switch strings.TrimSpace(sc) {
    	case RRS:
    		if !sCfg.initialized {
    			return -1
    		}
    		return sCfg.RRS.Parity
    	default:
    		if !sCfg.initialized {
    			return -1
    		}
    		return sCfg.Standard.Parity
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. schema/field.go

    	}
    
    	if s, ok := field.TagSettings["SCALE"]; ok {
    		field.Scale, _ = strconv.Atoi(s)
    	}
    
    	// default value is function or null or blank (primary keys)
    	field.DefaultValue = strings.TrimSpace(field.DefaultValue)
    	skipParseDefaultValue := strings.Contains(field.DefaultValue, "(") &&
    		strings.Contains(field.DefaultValue, ")") || strings.ToLower(field.DefaultValue) == "null" || field.DefaultValue == ""
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
Back to top