Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for translate (6.34 sec)

  1. cmd/erasure-metadata.go

    	// Parts in FileInfo should be in sorted order by part number.
    	sort.Slice(fi.Parts, func(i, j int) bool { return fi.Parts[i].Number < fi.Parts[j].Number })
    }
    
    // ObjectToPartOffset - translate offset of an object to offset of its individual part.
    func (fi FileInfo) ObjectToPartOffset(ctx context.Context, offset int64) (partIndex int, partOffset int64, err error) {
    	if offset == 0 {
    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)
  2. cmd/api-errors.go

    					HTTPStatusCode: apiErr.HTTPStatusCode,
    				}
    			}
    		}
    	}
    
    	if apiErr.Code == "InternalError" {
    		// Make sure to log the errors which we cannot translate
    		// to a meaningful S3 API errors. This is added to aid in
    		// debugging unexpected/unhandled errors.
    		internalLogIf(ctx, err)
    	}
    
    	return apiErr
    }
    
    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)
  3. cmd/httprange_test.go

    		h, err := rs.ToHeader()
    		if err != nil && !testCase.errExpected || err == nil && testCase.errExpected {
    			t.Errorf("expected error with invalid range: %v", err)
    		}
    		if h != testCase.spec {
    			t.Errorf("Case %d: translated to incorrect header: %s expected: %s",
    				i, h, testCase.spec)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. cmd/streaming-signature-v4.go

    // chunk is considered too big if its bigger than > 16MiB.
    var errChunkTooBig = errors.New("chunk too big: choose chunk size <= 16MiB")
    
    // newSignV4ChunkedReader returns a new s3ChunkedReader that translates the data read from r
    // out of HTTP "chunked" format before returning it.
    // The s3ChunkedReader returns io.EOF when the final 0-length chunk is read.
    //
    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)
  5. internal/s3select/sql/parser.go

    type LiteralString string
    
    // Capture interface used by participle
    func (ls *LiteralString) Capture(values []string) error {
    	// Remove enclosing single quote
    	n := len(values[0])
    	r := values[0][1 : n-1]
    	// Translate doubled quotes
    	*ls = LiteralString(strings.ReplaceAll(r, "''", "'"))
    	return nil
    }
    
    // LiteralList is a type for parsed SQL lists literals
    type LiteralList []string
    
    // Capture interface used by participle
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  6. cmd/admin-handlers_test.go

    // cmdType - Represents different service subcomands like status, stop
    // and restart.
    type cmdType int
    
    const (
    	restartCmd cmdType = iota
    	stopCmd
    )
    
    // toServiceSignal - Helper function that translates a given cmdType
    // value to its corresponding serviceSignal value.
    func (c cmdType) toServiceSignal() serviceSignal {
    	switch c {
    	case restartCmd:
    		return serviceRestart
    	case stopCmd:
    		return serviceStop
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  7. cmd/streaming-v4-unsigned.go

    package cmd
    
    import (
    	"bufio"
    	"bytes"
    	"fmt"
    	"io"
    	"net/http"
    	"strings"
    )
    
    // newUnsignedV4ChunkedReader returns a new s3UnsignedChunkedReader that translates the data read from r
    // out of HTTP "chunked" format before returning it.
    // The s3ChunkedReader returns io.EOF when the final 0-length chunk is read.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 06 02:53:12 GMT 2023
    - 6.1K bytes
    - Viewed (1)
Back to top