- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 859 for err (0.01 sec)
-
cmd/object-api-multipart_test.go
t.Fatalf("%s : %s", instanceType, err.Error()) } res, err := obj.NewMultipartUpload(context.Background(), bucket, "\\", opts) if err != nil { t.Fatalf("%s : %s", instanceType, err.Error()) } err = obj.AbortMultipartUpload(context.Background(), bucket, "\\", res.UploadID, opts) if err != nil { switch err.(type) { case InvalidUploadID:
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Sep 06 09:42:21 UTC 2024 - 88.8K bytes - Viewed (0) -
internal/grid/stream.go
doneCh = nil case resp, ok := <-s.responses: if !ok { done = true return nil } if resp.Err != nil { s.cancel(resp.Err) return resp.Err } err = next(resp.Msg) if err != nil { s.cancel(err) return err } } } } // Done will return a channel that will be closed when the stream is done. // This mirrors context.Done().
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/net.go
// Extract host & port from given parameters host1, port1, err := extractHostPort(addr1) if err != nil { return false, err } host2, port2, err := extractHostPort(addr2) if err != nil { return false, err } var addr1Local, addr2Local bool if host1 == "" { // If empty host means it is localhost addr1Local = true } else if addr1Local, err = isLocalHost(host1, port1, port1); err != nil {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Jun 19 14:34:00 UTC 2024 - 9.6K bytes - Viewed (0) -
cmd/utils_test.go
_, err := checkURL(testCase.urlStr) if testCase.shouldPass && err != nil { t.Errorf("Test %d: expected to pass but got an error: %v\n", i+1, err) } if !testCase.shouldPass && err == nil { t.Errorf("Test %d: expected to fail but passed.", i+1) } } } // Testing dumping request function. func TestDumpRequest(t *testing.T) {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Feb 23 21:28:14 UTC 2024 - 10.2K bytes - Viewed (0) -
cmd/erasure-server-pool-decom_test.go
nDisks := 32 fsDirs, err := getRandomDisks(nDisks) if err != nil { return nil, nil, err } pools := mustGetPoolEndpoints(0, fsDirs[:16]...) pools = append(pools, mustGetPoolEndpoints(1, fsDirs[16:]...)...) // Everything is fine, should return nil objLayer, err := newErasureServerPools(context.Background(), pools) if err != nil { return nil, nil, err } return objLayer, fsDirs, nil }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Jul 01 14:38:46 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/bucket/replication/rule.go
if err := r.validateID(); err != nil { return err } if err := r.validateStatus(); err != nil { return err } if err := r.validateFilter(); err != nil { return err } if err := r.DeleteMarkerReplication.Validate(); err != nil { return err } if err := r.DeleteReplication.Validate(); err != nil { return err }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Jan 24 23:22:20 UTC 2022 - 8.3K bytes - Viewed (0) -
internal/ioutil/ioutil.go
return w.WriteCloser.Write(buf) }) w.err = err return n, err } // Close closer interface to close the underlying closer func (w *DeadlineWriter) Close() error { err := w.WriteCloser.Close() w.err = err if err == nil { w.err = errors.New("we are closed") // Avoids any reuse on the Write() side. } return err } // LimitWriter implements io.WriteCloser. //
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 10.9K bytes - Viewed (0) -
internal/config/compress/compress.go
func LookupConfig(kvs config.KVS) (Config, error) { var err error cfg := Config{} if err = config.CheckValidKeys(config.CompressionSubSys, kvs, DefaultKVS); err != nil { return cfg, err } compress := env.Get(EnvCompressState, kvs.Get(config.Enable)) if compress == "" { compress = env.Get(EnvCompress, "") } cfg.Enabled, err = config.ParseBool(compress) if err != nil {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5K bytes - Viewed (0) -
internal/s3select/csv/reader.go
// Read column names // Get one line. b, err := r.nextSplit(0, nil) if err != nil { r.err = err return err } if !utf8.Valid(b) { return errInvalidTextEncodingError() } reader := newReader(bytes.NewReader(b)) record, err := reader.Read() if err != nil { r.err = err if err != io.EOF { r.err = errCSVParsingError(err) return errCSVParsingError(err) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 8.9K bytes - Viewed (0) -
internal/s3select/json/preader.go
} dst = dst[:skip] if skip > 0 { n, err := io.ReadFull(r.buf, dst) if err != nil && err != io.ErrUnexpectedEOF { // If an EOF happens after reading some but not all the bytes, // ReadFull returns ErrUnexpectedEOF. return dst[:n], err } dst = dst[:n] if err == io.ErrUnexpectedEOF { return dst, io.EOF } } // Read until next line. in, err := r.buf.ReadBytes('\n') dst = append(dst, in...)
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 6.5K bytes - Viewed (0)