Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for plat (0.17 sec)

  1. internal/s3select/sql/stringfuncs.go

    	}
    	return string(s) == text, nil
    }
    
    // matcher - Finds `pat` in `text`, and returns the part remainder of
    // `text`, after the match. If leadingPercent is false, `pat` must be
    // the prefix of `text`, otherwise it must be a substring.
    func matcher(text, pat string, leadingPercent bool) (res string, match bool) {
    	if !leadingPercent {
    		res = strings.TrimPrefix(text, pat)
    		if len(text) == len(res) {
    			return "", false
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/jsonpath.go

    )
    
    // jsonpathEval evaluates a JSON path and returns the value at the path.
    // If the value should be considered flat (from wildcards) any array returned should be considered individual values.
    func jsonpathEval(p []*JSONPathElement, v interface{}) (r interface{}, flat bool, err error) {
    	// fmt.Printf("JPATHexpr: %v jsonobj: %v\n\n", p, v)
    	if len(p) == 0 || v == nil {
    		return v, false, nil
    	}
    
    	switch {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. cmd/data-usage_test.go

    		}
    		t.Fatal("got nil root.")
    	}
    
    	// Test dirs
    	want := []struct {
    		path       string
    		isNil      bool
    		size, objs int
    		oSizes     sizeHistogram
    	}{
    		{
    			path:   "flat",
    			size:   1322310 + expectSize,
    			objs:   8 + expectSize,
    			oSizes: sizeHistogram{0: 2 + expectSize, 1: 3, 2: 2, 4: 1},
    		},
    		{
    			path:   "bucket/",
    			size:   20000,
    			objs:   2,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. docs/debugging/s3-check-md5/main.go

    )
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    func main() {
    	flag.StringVar(&endpoint, "endpoint", "https://play.min.io", "S3 endpoint URL")
    	flag.StringVar(&accessKey, "access-key", "Q3AM3UQ867SPQQA43P2F", "S3 Access Key")
    	flag.StringVar(&secretKey, "secret-key", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", "S3 Secret Key")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/input.go

    				break
    			}
    		}
    		if err != nil {
    			in.Error("#include:", err)
    		}
    	}
    	in.Push(NewTokenizer(name, fd, fd))
    }
    
    // #line processing.
    func (in *Input) line() {
    	// Only need to handle Plan 9 format: #line 337 "filename"
    	tok := in.Stack.Next()
    	if tok != scanner.Int {
    		in.expectText("expected line number after #line")
    	}
    	line, err := strconv.Atoi(in.Stack.Text())
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  6. cmd/xl-storage-disk-id-check.go

    // is either nil or io.EOF the disk is considered good.
    // So if unsure if the disk status is ok, return nil as a parameter to done.
    // Shadowing will work as long as return error is named: https://go.dev/play/p/sauq86SsTN2
    func (p *xlStorageDiskIDCheck) TrackDiskHealth(ctx context.Context, s storageMetric, paths ...string) (c context.Context, done func(*error), err error) {
    	done = noopDoneFunc
    	if contextCanceled(ctx) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. internal/grid/benchmark_test.go

    						n++
    					}
    					atomic.AddInt64(&ops, int64(n))
    					atomic.AddInt64(&lat, latency)
    				})
    				spent := time.Since(t)
    				if spent > 0 && n > 0 {
    					// Since we are benchmarking n parallel servers we need to multiply by n.
    					// This will give an estimate of the total ops/s.
    					latency := float64(atomic.LoadInt64(&lat)) / float64(time.Millisecond)
    					b.ReportMetric(float64(n)*float64(ops)/spent.Seconds(), "vops/s")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  8. docs/debugging/s3-verify/main.go

    		Secure:    secure,
    		Transport: transport,
    	})
    	if err != nil {
    		return nil, err
    	}
    
    	return clnt, nil
    }
    
    func main() {
    	flag.StringVar(&sourceEndpoint, "source-endpoint", "https://play.min.io", "S3 endpoint URL")
    	flag.StringVar(&sourceAccessKey, "source-access-key", "Q3AM3UQ867SPQQA43P2F", "S3 Access Key")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  9. cmd/format-erasure.go

    	} `json:"xl"`
    }
    
    // formatErasureV3 struct is same as formatErasureV2 struct except that formatErasureV3.Erasure.Version is "3" indicating
    // the simplified multipart backend which is a flat hierarchy now.
    // In .minio.sys/multipart we have:
    // sha256(bucket/object)/uploadID/[xl.meta, part.1, part.2 ....]
    type formatErasureV3 struct {
    	formatMetaV1
    	Erasure struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  10. cmd/metacache-server-pool.go

    	// With max keys of zero we have reached eof, return right here.
    	if o.Limit == 0 {
    		return entries, io.EOF
    	}
    
    	// For delimiter and prefix as '/' we do not list anything at all
    	// along // with the prefix. On a flat namespace with 'prefix'
    	// as '/' we don't have any entries, since all the keys are
    	// of form 'keyName/...'
    	if strings.HasPrefix(o.Prefix, SlashSeparator) {
    		return entries, io.EOF
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top