Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 865 for errC (0.07 sec)

  1. cmd/untar.go

    	switch f := detect(bf); f {
    	case formatGzip:
    		gz, err := gzip.NewReader(bf)
    		if err != nil {
    			return err
    		}
    		defer gz.Close()
    		r = gz
    	case formatS2:
    		r = s2.NewReader(bf)
    	case formatZstd:
    		// Limit to 16 MiB per stream.
    		dec, err := zstd.NewReader(bf, zstd.WithDecoderMaxWindow(16<<20))
    		if err != nil {
    			return err
    		}
    		defer dec.Close()
    		r = dec
    	case formatBZ2:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. internal/s3select/parquet/reader.go

    	fr, err := parquetgo.NewFileReader(rsc)
    	if err != nil {
    		return nil, errParquetParsingError(err)
    	}
    
    	return &Reader{Closer: rsc, r: fr}, nil
    }
    
    func (pr *Reader) Read(dst sql.Record) (rec sql.Record, rerr error) {
    	nextRow, err := pr.r.NextRow()
    	if err != nil {
    		if err == io.EOF {
    			return nil, err
    		}
    		return nil, errParquetParsingError(err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. internal/config/crypto.go

    		algorithm = sio.ChaCha20Poly1305
    	}
    
    	key, err := k.GenerateKey(context.Background(), &kms.GenerateKeyRequest{AssociatedData: ctx})
    	if err != nil {
    		return nil, err
    	}
    	stream, err := algorithm.Stream(key.Plaintext)
    	if err != nil {
    		return nil, err
    	}
    	nonce := make([]byte, stream.NonceSize())
    	if _, err := rand.Read(nonce); err != nil {
    		return nil, err
    	}
    
    	const (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. tests/update_belongs_to_test.go

    	user := *GetUser("update-belongs-to", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Company = Company{Name: "company-belongs-to-association"}
    	user.Manager = &User{Name: "manager-belongs-to-association"}
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jul 14 06:55:54 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. cmd/bootstrap-peer-server.go

    func getBinaryChecksum() string {
    	mw := md5.New()
    	binPath, err := os.Executable()
    	if err != nil {
    		logger.Error("Calculating checksum failed: %s", err)
    		return "00000000000000000000000000000000"
    	}
    	b, err := os.Open(binPath)
    	if err != nil {
    		logger.Error("Calculating checksum failed: %s", err)
    		return "00000000000000000000000000000000"
    	}
    
    	defer b.Close()
    	io.Copy(mw, b)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    	}
    
    	if err := claims.populateSessionPolicy(r.Form); err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, err)
    		return
    	}
    
    	secret, err := getTokenSigningKey()
    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInternalError, err)
    		return
    	}
    	cred, err := auth.GetNewCredentialsWithMetadata(claims, secret)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  7. buildscripts/heal-manual.go

    	}
    
    	start, _, err := madmClnt.Heal(context.Background(), "healing-rewrite-bucket", "", opts, "", false, false)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	fmt.Println("Healstart sequence ===")
    	enc := json.NewEncoder(os.Stdout)
    	if err = enc.Encode(&start); err != nil {
    		log.Fatalln(err)
    	}
    
    	fmt.Println()
    	for {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 27 09:47:58 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. internal/s3select/json/errors.go

    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  9. tests/connpool_test.go

    		}
    	}()
    
    	db, err := gorm.Open(mysql.New(mysql.Config{Conn: conn, DisableWithReturning: true}))
    	if err != nil {
    		t.Fatalf("Should open db success, but got %v", err)
    	}
    
    	tx := db.Begin()
    	user := *GetUser("transaction", Config{})
    
    	if err = tx.Save(&user).Error; err != nil {
    		t.Fatalf("No error should raise, but got %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. cmd/xl-storage_windows_test.go

    	dir := t.TempDir()
    
    	fs, err := newLocalXLStorage(dir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Create volume to use in conjunction with other StorageAPI's file API(s)
    	err = fs.MakeVol(context.Background(), "voldir")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = fs.AppendFile(context.Background(), "voldir", "/file", []byte("hello"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top