Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for week (0.15 sec)

  1. cmd/api-errors.go

    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrMaximumExpires: {
    		Code:           "AuthorizationQueryParametersError",
    		Description:    "X-Amz-Expires must be less than a week (in seconds); that is, the given X-Amz-Expires must be less than 604800 seconds",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    
    	// Generic Invalid-Request error. Should be used for response errors only for unlikely
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  2. cmd/untar.go

    	"github.com/pierrec/lz4"
    )
    
    // Max bzip2 concurrency across calls. 50% of GOMAXPROCS.
    var bz2Limiter = pbzip2.CreateConcurrencyPool((runtime.GOMAXPROCS(0) + 1) / 2)
    
    func detect(r *bufio.Reader) format {
    	z, err := r.Peek(4)
    	if err != nil {
    		return formatUnknown
    	}
    	for _, f := range magicHeaders {
    		if bytes.Equal(f.header, z[:len(f.header)]) {
    			return f.f
    		}
    	}
    	return formatUnknown
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    	// Verify it is a regular file, otherwise subsequent Seek is
    	// undefined.
    	if !st.Mode().IsRegular() {
    		file.Close()
    		return nil, errIsNotRegular
    	}
    
    	if st.Size() < offset+length {
    		// Expected size cannot be satisfied for
    		// requested offset and length
    		file.Close()
    		return nil, errFileCorrupt
    	}
    
    	if offset > 0 {
    		if _, err = file.Seek(offset, io.SeekStart); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    	req.Body = io.NopCloser(body)
    	req.ContentLength = contentLength
    
    	return req, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. cmd/object-api-multipart_test.go

    		{bucketNames[2], "minio-object", objectNames[1], "", "", 10, listMultipartResults[34], nil, true},
    	}
    
    	for i, testCase := range testCases {
    		// fmt.Println(i+1, testCase) // uncomment to peek into the test cases.
    		actualResult, actualErr := obj.ListMultipartUploads(context.Background(), testCase.bucket, testCase.prefix, testCase.keyMarker, testCase.uploadIDMarker, testCase.delimiter, testCase.maxUploads)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  6. internal/s3select/select_test.go

    	return newBytesRSC([]byte(s))
    }
    
    func newBytesRSC(b []byte) io.ReadSeekCloser {
    	r := bytes.NewReader(b)
    	segmentReader := func(offset int64) (io.ReadCloser, error) {
    		_, err := r.Seek(offset, io.SeekStart)
    		if err != nil {
    			return nil, err
    		}
    		return io.NopCloser(r), nil
    	}
    	return NewObjectReadSeekCloser(segmentReader, int64(len(b)))
    }
    
    type testResponseWriter struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  7. cmd/erasure-metadata.go

    	if offset == 0 {
    		// Special case - if offset is 0, then partIndex and partOffset are always 0.
    		return 0, 0, nil
    	}
    	partOffset = offset
    	// Seek until object offset maps to a particular part offset.
    	for i, part := range fi.Parts {
    		partIndex = i
    		// Offset is smaller than size we have reached the proper part offset.
    		if partOffset < part.Size {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  8. cmd/xl-storage-format-utils.go

    		crc ^= (xxh3.HashString(k) ^ 0x4ee3bbaf7ab2506b) + (xxh3.HashString(v) ^ 0x8da4c8da66194257)
    	}
    	return crc
    }
    
    // hashDeterministicBytes will return a deterministic (weak) hash for the map values.
    // Trivial collisions are avoided, but this is by no means a strong hash.
    func hashDeterministicBytes(m map[string][]byte) uint64 {
    	crc := uint64(0x1bbc7e1dde654743)
    	for k, v := range m {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  9. cmd/s3-zip-handlers.go

    	archiveTypeMetadataKey = ReservedMetadataPrefixLower + "archive-type" // "x-minio-internal-archive-type"
    	archiveInfoMetadataKey = ReservedMetadataPrefixLower + "archive-info" // "x-minio-internal-archive-info"
    
    	// Peek into a zip archive
    	xMinIOExtract = "x-minio-extract"
    )
    
    // splitZipExtensionPath splits the S3 path to the zip file and the path inside the zip:
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil_test.go

    	if !errors.Is(err, io.ErrUnexpectedEOF) {
    		t.Errorf("Expected io.ErrUnexpectedEOF, but got %v", err)
    	}
    	if written != 5 {
    		t.Errorf("Expected written to be '5', but got %v", written)
    	}
    
    	f.Seek(0, io.SeekStart)
    	r.Seek(0, io.SeekStart)
    
    	written, err = CopyAligned(f, r, *bufp, r.Size(), f)
    	if !errors.Is(err, nil) {
    		t.Errorf("Expected nil, but got %v", err)
    	}
    	if written != r.Size() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top