Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for truncated (0.22 sec)

  1. cmd/object-api-listobjects_test.go

    					}
    
    					if testCase.resultL.IsTruncated != resultL.IsTruncated {
    						// Allow an extra continuation token.
    						if !resultL.IsTruncated || len(resultL.Objects) == 0 {
    							t.Errorf("Test %d: %s: Expected IsTruncated flag to be %v, but instead found it to be %v", i+1, instanceType, testCase.resultL.IsTruncated, resultL.IsTruncated)
    						}
    					}
    
    					if testCase.resultL.IsTruncated && resultL.NextMarker == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    	}
    
    	merged.forwardPast(opts.Marker)
    	defer merged.truncate(0) // Release when returning
    
    	if contextCanceled(ctx) {
    		return ListObjectsInfo{}, ctx.Err()
    	}
    
    	// Default is recursive, if delimiter is set then list non recursive.
    	objects := merged.fileInfos(bucket, prefix, delimiter)
    	loi.IsTruncated = err == nil && len(objects) > 0
    	if maxKeys > 0 && len(objects) > maxKeys {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  3. cmd/object-api-multipart_test.go

    			}
    			// Asserting IsTruncated.
    			if actualResult.IsTruncated != testCase.expectedResult.IsTruncated {
    				t.Errorf("Test %d: %s: Expected IsTruncated to be \"%v\", but found it to \"%v\"", i+1, instanceType, expectedResult.IsTruncated, actualResult.IsTruncated)
    			}
    			// Asserting the number of Parts.
    			if len(expectedResult.Parts) != len(actualResult.Parts) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    						}
    						return verr
    					}
    				}
    			}
    			return osErrToFileErr(err)
    		}
    		if st.Mode().IsDir() {
    			return errFileNotFound
    		}
    		// Check if shard is truncated.
    		if st.Size() < fi.Erasure.ShardFileSize(part.Size) {
    			return errFileCorrupt
    		}
    	}
    
    	return nil
    }
    
    // deleteFile deletes a file or a directory if its empty unless recursive
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	testServer.Obj.Shutdown(context.Background())
    	os.RemoveAll(testServer.Root)
    	for _, ep := range testServer.Disks {
    		for _, disk := range ep.Endpoints {
    			os.RemoveAll(disk.Path)
    		}
    	}
    }
    
    // Truncate request to simulate unexpected EOF for a request signed using streaming signature v4.
    func truncateChunkByHalfSigv4(req *http.Request) (*http.Request, error) {
    	bufReader := bufio.NewReader(req.Body)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  6. cmd/object-api-datatypes_gen.go

    			z.MaxUploads, bts, err = msgp.ReadIntBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "MaxUploads")
    				return
    			}
    		case "IsTruncated":
    			z.IsTruncated, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "IsTruncated")
    				return
    			}
    		case "Uploads":
    			var zb0002 uint32
    			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
    			if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 69.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2.go

    			for _, ver := range vers {
    				// Truncate later modtimes, not selected.
    				if ver.header.ModTime > latest.header.ModTime {
    					versions[i] = versions[i][1:]
    					continue
    				}
    				// Truncate matches
    				if ver.header == latest.header {
    					versions[i] = versions[i][1:]
    					continue
    				}
    
    				// Truncate non-empty version and type matches
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  8. internal/bucket/lifecycle/lifecycle_test.go

    ag><Key>tag2</Key><Value>value2</Value></Tag></And></Filter><Status>Enabled</Status><Expiration><Date>` + time.Now().Truncate(24*time.Hour).UTC().Add(-24*time.Hour).Format(time.RFC3339) + `</Date></Expiration></Rule><Rule><Filter><And><Prefix>abc/</Prefix><Tag><Key>tag2</Key><Value>value</Value></Tag></And></Filter><Status>Enabled</Status><Expiration><Date>` + time.Now().Truncate(24*time.Hour).UTC().Add(-24*time.Hour).Format(time.RFC3339) + `</Date></Expiration></Rule></LifecycleConfiguration>`,...
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top