Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for obj (0.15 sec)

  1. cmd/erasure-object_test.go

    	defer cancel()
    
    	// Create an instance of xl backend.
    	obj, fsDirs, err := prepareErasure16(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Cleanup backend directories
    	defer obj.Shutdown(context.Background())
    	defer removeRoots(fsDirs)
    
    	z := obj.(*erasureServerPools)
    	xl := z.serverPools[0].sets[0]
    
    	// Create "bucket"
    	err = obj.MakeBucket(ctx, "bucket", MakeBucketOptions{})
    	if err != nil {
    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)
  2. cmd/object_api_suite_test.go

    	for i := 6; i <= 10; i++ {
    		key := "obj" + strconv.Itoa(i)
    		_, err = obj.PutObject(context.Background(), "bucket", key, mustGetPutObjReader(t, bytes.NewBufferString(uploadContent), int64(len(uploadContent)), "", ""), opts)
    		if err != nil {
    			t.Fatalf("%s: <ERROR> %s", instanceType, err)
    		}
    		result, err = obj.ListObjects(context.Background(), "bucket", "obj", "", "", 5)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  3. cmd/data-scanner_test.go

    	close(workers[0])
    	wg.Wait()
    	for _, obj := range expired {
    		switch obj.ObjectV.VersionID {
    		case uuids[2].String(), uuids[3].String(), uuids[4].String():
    		default:
    			t.Errorf("Unexpected versionID being expired: %#v\n", obj)
    		}
    	}
    }
    
    func TestEvalActionFromLifecycle(t *testing.T) {
    	// Tests cover only ExpiredObjectDeleteAllVersions and DelMarkerExpiration actions
    	obj := ObjectInfo{
    		Name:        "foo",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. docs/sts/custom-token-identity.go

    	objCh := minioClient.ListObjects(context.Background(), bucketToList, minio.ListObjectsOptions{})
    	for obj := range objCh {
    		if obj.Err != nil {
    			log.Fatalf("Listing error: %v", obj.Err)
    		}
    		fmt.Printf("Key: %s\nSize: %d\nLast Modified: %s\n===\n", obj.Key, obj.Size, obj.LastModified)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  5. docs/sts/assume-role.go

    	objCh := minioClient.ListObjects(context.Background(), bucketToList, minio.ListObjectsOptions{})
    	for obj := range objCh {
    		if obj.Err != nil {
    			log.Fatalf("Listing error: %v", obj.Err)
    		}
    		fmt.Printf("Key: %s\nSize: %d\nLast Modified: %s\n===\n", obj.Key, obj.Size, obj.LastModified)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  6. cmd/object-api-deleteobject_test.go

    			[]string{"object0"},
    		},
    	}
    
    	for i, testCase := range testCases {
    		err := obj.MakeBucket(context.Background(), testCase.bucketName, MakeBucketOptions{})
    		if err != nil {
    			t.Fatalf("%s : %s", instanceType, err.Error())
    		}
    
    		for _, object := range testCase.objectToUploads {
    			md5Bytes := md5.Sum([]byte(object.content))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  7. cmd/signature-v2_test.go

    func TestDoesPresignedV2SignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	now := UTCNow()
    
    	var (
    		accessKey = globalActiveCred.AccessKey
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  8. cmd/object-api-getobjectinfo_test.go

    }
    
    // Testing GetObjectInfo().
    func testGetObjectInfo(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	// This bucket is used for testing getObjectInfo operations.
    	err := obj.MakeBucket(context.Background(), "test-getobjectinfo", MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    	opts := ObjectOptions{}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  9. docs/debugging/s3-check-md5/main.go

    			Recursive:    true,
    			Prefix:       prefix,
    			WithVersions: versions,
    			WithMetadata: true,
    		}
    
    		objFullPath := func(obj minio.ObjectInfo) (fpath string) {
    			fpath = path.Join(bucket, obj.Key)
    			if versions {
    				fpath += ":" + obj.VersionID
    			}
    			return
    		}
    
    		// List all objects from a bucket-name with a matching prefix.
    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)
  10. internal/s3select/simdj/record.go

    }
    
    // WriteCSV - encodes to CSV data.
    func (r *Record) WriteCSV(writer io.Writer, opts sql.WriteCSVOpts) error {
    	csvRecord := make([]string, 0, 10)
    	var tmp simdjson.Iter
    	obj := r.object
    allElems:
    	for {
    		_, typ, err := obj.NextElement(&tmp)
    		if err != nil {
    			return err
    		}
    		var columnValue string
    		switch typ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 5.4K bytes
    - Viewed (0)
Back to top