Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for newlines (0.2 sec)

  1. cmd/streaming-signature-v4.go

    			}
    		}
    		if string(tmp[:]) != "\n\r\n" {
    			if cr.debug {
    				fmt.Printf("signature, want %q, got %q", "\n\r\n", string(tmp[:]))
    			}
    			return errMalformedEncoding
    		}
    		// No need to write final newlines to buffer.
    		break
    	}
    
    	// Verify signature.
    	sig := signatureBuffer.Bytes()
    	if !bytes.HasPrefix(sig, []byte("x-amz-trailer-signature:")) {
    		if cr.debug {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  2. internal/s3select/csv/reader_contrib_test.go

    				if fields < 10 {
    					opts := sql.WriteCSVOpts{
    						FieldDelimiter: ',',
    						Quote:          '"',
    						QuoteEscape:    '"',
    						AlwaysQuote:    false,
    					}
    					// Write with fixed delimiters, newlines.
    					err := record.WriteCSV(&result, opts)
    					if err != nil {
    						t.Error(err)
    					}
    				}
    				fields++
    			}
    			r.Close()
    			if err != io.EOF {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  3. buildscripts/verify-healing.sh

    		return 1
    	fi
    
    	for ((i = 0; i < 20; i++)); do
    		test -f ${WORK_DIR}/$1/1/.minio.sys/format.json
    		v1=$?
    		nextInES=$(($1 + 1)) && [ $nextInES -gt 3 ] && nextInES=1
    		foundFiles1=$(find ${WORK_DIR}/$1/1/ | grep -v .minio.sys | grep xl.meta | wc -l)
    		foundFiles2=$(find ${WORK_DIR}/$nextInES/1/ | grep -v .minio.sys | grep xl.meta | wc -l)
    		test $foundFiles1 -eq $foundFiles2
    		v2=$?
    		[ $v1 == 0 -a $v2 == 0 ] && return 0
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:55:41 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  4. internal/s3select/select.go

    		}
    		buf.WriteString(s3Select.Output.CSVArgs.RecordDelimiter)
    
    		return nil
    	case jsonFormat:
    		err := record.WriteJSON(buf)
    		if err != nil {
    			return err
    		}
    		// Trim trailing newline from non-simd output
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    		buf.WriteString(s3Select.Output.JSONArgs.RecordDelimiter)
    
    		return nil
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  5. docs/select/README.md

    - AWS S3's [reserved keywords](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference-keyword-list.html) list is not yet respected.
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 6.5K bytes
    - Viewed (0)
  6. docs/debugging/hash-set/main.go

    var (
    	file, object, deploymentID, prefix string
    	setCount, shards                   int
    	verbose                            bool
    )
    
    func main() {
    	flag.StringVar(&file, "file", "", "Read all objects from file, newline separated")
    	flag.StringVar(&prefix, "prefix", "", "Add prefix to all objects")
    	flag.StringVar(&object, "object", "", "Select an object")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. internal/s3select/csv/reader.go

    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    	}
    	return r.readCloser.Close()
    }
    
    // nextSplit will attempt to skip a number of bytes and
    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *Reader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. internal/s3select/simdj/reader_amd64_test.go

    				wantB.Reset()
    
    				err = rec.WriteJSON(&gotB)
    				if err != nil {
    					t.Error(err)
    				}
    				err = want.WriteJSON(&wantB)
    				if err != nil {
    					t.Error(err)
    				}
    				// truncate newline from 'want'
    				wantB.Truncate(wantB.Len() - 1)
    				if !bytes.Equal(gotB.Bytes(), wantB.Bytes()) {
    					t.Errorf("JSON output mismatch.\nwant: %s\ngot:  %s", wantB.String(), gotB.String())
    				}
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  9. .golangci.yml

      exclude-use-default: false
      exclude:
        - "empty-block:"
        - "unused-parameter:"
        - "dot-imports:"
        - should have a package comment
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 02:17:03 GMT 2023
    - 689 bytes
    - Viewed (0)
  10. cmd/storage-rest_test.go

    		// Test some weird characters over the wire.
    		{"foo", "newline\n", testData, false, true},
    		{"foo", "newline\t", testData, false, true},
    		{"foo", "newline \n", testData, false, true},
    		{"foo", "newline$$$\n", testData, false, true},
    		{"foo", "newline%%%\n", testData, false, true},
    		{"foo", "newline \t % $ & * ^ # @ \n", testData, false, true},
    		{"foo", "\n\tnewline \t % $ & * ^ # @ \n", testData, false, true},
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top