Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for readLong (0.96 sec)

  1. internal/s3select/json/reader_test.go

    			}
    			r := NewReader(f, &ReaderArgs{})
    			var record sql.Record
    			for {
    				record, err = r.Read(record)
    				if err != nil {
    					break
    				}
    			}
    			r.Close()
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    
    		t.Run(file.Name()+"-close", func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				t.Fatal(err)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  2. docs/debugging/xattr/main.go

    		if err := setxattr(path, name, value); err != nil {
    			log.Fatalln(fmt.Errorf("setting attribute %s failed with: %v", name, err))
    		}
    	} else {
    		if name == "" {
    			log.Fatalln("you must specify an attribute name for reading")
    		}
    		var names []string
    		if name == "." {
    			attrs, err := listxattr(path)
    			if err != nil {
    				log.Fatalln(fmt.Errorf("listing attributes failed with: %v", err))
    			}
    			names = append(names, attrs...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  3. internal/s3select/select.go

    	Start *uint64 `xml:"Start"`
    	// End is the offset of the last byte that should be returned when Start
    	// is set, otherwise it is the offset from EOF to start reading.
    	End *uint64 `xml:"End"`
    }
    
    // Validate if the scan range is valid.
    func (s *ScanRange) Validate() error {
    	if s == nil {
    		return nil
    	}
    	if s.Start == nil && s.End == 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)
  4. docs/sts/assume-role.go

    		if f, err := os.Open(sessionPolicyFile); err != nil {
    			log.Fatalf("Unable to open session policy file: %v", err)
    		} else {
    			defer f.Close()
    			bs, err := io.ReadAll(f)
    			if err != nil {
    				log.Fatalf("Error reading session policy file: %v", err)
    			}
    			policy = string(bs)
    		}
    		stsOpts.Policy = policy
    	}
    	if expiryDuration != 0 {
    		stsOpts.DurationSeconds = int(expiryDuration.Seconds())
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  5. internal/s3select/parquet/reader.go

    	parquettypes "github.com/fraugster/parquet-go/parquet"
    	jsonfmt "github.com/minio/minio/internal/s3select/json"
    	"github.com/minio/minio/internal/s3select/sql"
    )
    
    // Reader implements reading records from parquet input.
    type Reader struct {
    	io.Closer
    	r *parquetgo.FileReader
    }
    
    // NewParquetReader creates a Reader2 from a io.ReadSeekCloser.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  6. cmd/erasure-object_test.go

    	if err != nil {
    		t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err)
    	}
    	gr.Close()
    
    	const expectedHash = "fffb6377948ebea75ad2b8058e849ef5"
    	foundHash := fmt.Sprintf("%x", h.Sum(nil))
    	if foundHash != expectedHash {
    		t.Fatalf("Expected data to have md5sum = `%s`, found `%s`", expectedHash, foundHash)
    	}
    }
    
    // Test reading an object with some outdated data in some disks
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  7. internal/disk/stat_linux.go

    	stats, err := readStat(statsFile)
    	if err != nil {
    		return IOStats{}, err
    	}
    	if len(stats) < 11 {
    		return IOStats{}, fmt.Errorf("found invalid format while reading %v", statsFile)
    	}
    	// refer https://www.kernel.org/doc/Documentation/block/stat.txt
    	iostats = IOStats{
    		ReadIOs:      stats[0],
    		ReadMerges:   stats[1],
    		ReadSectors:  stats[2],
    		ReadTicks:    stats[3],
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. docs/metrics/prometheus/README.md

    ```
    
    ### 3. Configuring Prometheus
    
    #### 3.1 Authenticated Prometheus config
    
    > If MinIO is configured to expose metrics without authentication, you don't need to use `mc` to generate prometheus config. You can skip reading further and move to 3.2 section.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 15:49:30 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    	if !opts.NoAuditLog {
    		auditObjectErasureSet(ctx, object, &er)
    	}
    
    	if !opts.NoLock {
    		// Lock the object before reading.
    		lk := er.NewNSLock(bucket, object)
    		lkctx, err := lk.GetRLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return ObjectInfo{}, err
    		}
    		ctx = lkctx.Context()
    		defer lk.RUnlock(lkctx)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  10. cmd/update.go

    		}
    	}
    
    	contentBytes, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return content, AdminError{
    			Code:       AdminUpdateUnexpectedFailure,
    			Message:    fmt.Sprintf("Error reading response. %s", err),
    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    
    	return string(contentBytes), nil
    }
    
    func releaseInfoToReleaseTime(releaseInfo string) (releaseTime time.Time, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top