Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for VersioningEnabled (0.08 sec)

  1. cmd/object-api-listobjects_test.go

    		"test-bucket-folders",
    		// This bucket has file delete marker.
    		"test-bucket-files",
    	}
    	for _, bucket := range testBuckets {
    		err := obj.MakeBucket(context.Background(), bucket, MakeBucketOptions{
    			VersioningEnabled: true,
    		})
    		if err != nil {
    			t.Fatalf("%s : %s", instanceType, err.Error())
    		}
    	}
    
    	var err error
    	testObjects := []struct {
    		parentBucket    string
    		name            string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    	}
    
    	defer removeRoots(fsDirs)
    
    	z := obj.(*erasureServerPools)
    	er := z.serverPools[0].sets[0]
    
    	// Create "bucket"
    	err = obj.MakeBucket(ctx, "bucket", MakeBucketOptions{VersioningEnabled: true})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	bucket := "bucket"
    	object := "object"
    
    	data := make([]byte, 1*humanize.MiByte)
    	length := int64(len(data))
    	_, err = rand.Read(data)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    	meta.SetCreatedAt(opts.CreatedAt)
    	if opts.LockEnabled {
    		meta.VersioningConfigXML = enabledBucketVersioningConfig
    		meta.ObjectLockConfigXML = enabledBucketObjectLockConfig
    	}
    
    	if opts.VersioningEnabled {
    		meta.VersioningConfigXML = enabledBucketVersioningConfig
    	}
    
    	if err := meta.Save(context.Background(), z); err != nil {
    		return toObjectErr(err, bucket)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
Back to top