Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Suspended (0.19 sec)

  1. internal/bucket/versioning/versioning.go

    		}
    	}
    	return true
    }
    
    // Suspended - returns true if versioning is suspended
    func (v Versioning) Suspended() bool {
    	return v.Status == Suspended
    }
    
    // PrefixSuspended - returns true if versioning is suspended at the bucket level
    // or suspended on the given prefix.
    func (v Versioning) PrefixSuspended(prefix string) bool {
    	if v.Status == Suspended {
    		return true
    	}
    	if v.Status == Enabled {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  2. cmd/bucket-versioning-handler.go

    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    	if _, err := getReplicationConfig(ctx, bucket); err == nil && v.Suspended() {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    			Description:    "A replication configuration is present on this bucket, bucket wide versioning cannot be suspended.",
    			HTTPStatusCode: http.StatusBadRequest,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. cmd/tier-sweeper.go

    	os.VersionID = vid
    	return os
    }
    
    // WithVersioning sets bucket versioning for sweeper.
    func (os *objSweeper) WithVersioning(versioned, suspended bool) *objSweeper {
    	os.Versioned = versioned
    	os.Suspended = suspended
    	return os
    }
    
    // GetOpts returns ObjectOptions to fetch the object version that may be
    // overwritten or deleted depending on bucket versioning status.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. cmd/bucket-versioning.go

    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    	return vc.PrefixEnabled(prefix)
    }
    
    // Suspended suspended versioning?
    func (sys *BucketVersioningSys) Suspended(bucket string) bool {
    	vc, err := sys.Get(bucket)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    	return vc.Suspended()
    }
    
    // PrefixSuspended returns true if the given prefix matches an excluded prefix
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 2.6K bytes
    - Viewed (0)
  5. docs/bucket/versioning/README.md

    - Versioning state applies to all of the objects in the versioning enabled bucket. The first time you enable a bucket for versioning, objects in the bucket are thereafter always versioned and given a unique version ID.
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu May 04 21:43:52 GMT 2023
    - 11.9K bytes
    - Viewed (1)
  6. cmd/admin-bucket-handlers.go

    				bucketMap[bucket] = &v
    			}
    
    			if globalSiteReplicationSys.isEnabled() && v.Suspended() {
    				rpt.SetStatus(bucket, fileName, fmt.Errorf("Cluster replication is enabled for this site, so the versioning state cannot be suspended."))
    				continue
    			}
    
    			if rcfg, _ := globalBucketObjectLockSys.Get(bucket); rcfg.LockEnabled && v.Suspended() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. internal/bucket/versioning/versioning_test.go

    	}
    }
    
    func TestVersioningZero(t *testing.T) {
    	var v Versioning
    	if v.Enabled() {
    		t.Fatalf("Expected to be disabled but got enabled")
    	}
    	if v.Suspended() {
    		t.Fatalf("Expected to be disabled but got suspended")
    	}
    }
    
    func TestExcludeFolders(t *testing.T) {
    	v := Versioning{
    		Status:         Enabled,
    		ExcludeFolders: true,
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun May 08 05:06:44 GMT 2022
    - 8.8K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/batch/v1/generated.proto

    message JobStatus {
      // The latest available observations of an object's current state. When a Job
      // fails, one of the conditions will have type "Failed" and status true. When
      // a Job is suspended, one of the conditions will have type "Suspended" and
      // status true; when the Job is resumed, the status of this condition will
      // become false. When a Job is completed, one of the conditions will have
      // type "Complete" and status true.
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  9. cmd/bucket-replication_test.go

    		info:         ObjectInfo{Size: 100},
    		rcfg:         replicationConfig{Config: &configs[0]},
    		expectedSync: false,
    	},
    	{ // 3. existing object replication config enabled, versioning suspended
    		name:         "existing object replication config enabled, versioning suspended",
    		info:         ObjectInfo{Size: 100, VersionID: nullVersionID},
    		rcfg:         replicationConfig{Config: &configs[0]},
    		expectedSync: false,
    	},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Sep 16 09:28:06 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  10. cmd/object-multipart-handlers.go

    	}
    
    	completeMultiPartUpload := objectAPI.CompleteMultipartUpload
    
    	versioned := globalBucketVersioningSys.PrefixEnabled(bucket, object)
    	suspended := globalBucketVersioningSys.PrefixSuspended(bucket, object)
    	os := newObjSweeper(bucket, object).WithVersioning(versioned, suspended)
    	if !globalTierConfigMgr.Empty() {
    		// Get appropriate object info to identify the remote object to delete
    		goiOpts := os.GetOpts()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
Back to top