Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for lockEnabled (0.13 sec)

  1. cmd/bucket-metadata_gen.go

    				return
    			}
    		case "Created":
    			z.Created, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "Created")
    				return
    			}
    		case "LockEnabled":
    			z.LockEnabled, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "LockEnabled")
    				return
    			}
    		case "PolicyConfigJSON":
    			z.PolicyConfigJSON, err = dc.ReadBytes(z.PolicyConfigJSON)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. cmd/bucket-metadata.go

    		bucketTargetsFile,
    		objectLockConfig,
    	}
    
    	configs := make(map[string][]byte, len(legacyConfigs))
    
    	// Handle migration from lockEnabled to newer format.
    	if b.LockEnabled {
    		configs[objectLockConfig] = enabledBucketObjectLockConfig
    		b.LockEnabled = false // legacy value unset it
    		// we are only interested in b.ObjectLockConfigXML or objectLockConfig value
    	}
    
    	for _, legacyFile := range legacyConfigs {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. cmd/object-api-interface_gen.go

    		field, bts, err = msgp.ReadMapKeyZC(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "LockEnabled":
    			z.LockEnabled, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "LockEnabled")
    				return
    			}
    		case "VersioningEnabled":
    			z.VersioningEnabled, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. cmd/bucket-object-lock.go

    	retentionCfg, err := globalBucketObjectLockSys.Get(bucket)
    	if err != nil {
    		return mode, retainDate, legalHold, ErrInvalidBucketObjectLockConfiguration
    	}
    
    	if !retentionCfg.LockEnabled {
    		if legalHoldRequested || retentionRequested {
    			return mode, retainDate, legalHold, ErrInvalidBucketObjectLockConfiguration
    		}
    
    		// If this not a WORM enabled bucket, we should return right here.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. cmd/data-scanner_test.go

    		ilm       lifecycle.Lifecycle
    		retention lock.Retention
    		obj       ObjectInfo
    		want      lifecycle.Action
    	}{
    		{
    			// with object locking
    			ilm:       *deleteAllLc,
    			retention: lock.Retention{LockEnabled: true},
    			obj:       obj,
    			want:      lifecycle.NoneAction,
    		},
    		{
    			// without object locking
    			ilm:       *deleteAllLc,
    			retention: lock.Retention{},
    			obj:       obj,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. cmd/bucket-versioning-handler.go

    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    
    	if rcfg, _ := globalBucketObjectLockSys.Get(bucket); rcfg.LockEnabled && (v.Suspended() || v.PrefixesExcluded()) {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. cmd/bucket-replication-handlers.go

    		return
    	}
    
    	lockEnabled := false
    	lcfg, _, err := globalBucketMetadataSys.GetObjectLockConfig(bucket)
    	if err != nil {
    		if !errors.Is(err, BucketObjectLockConfigNotFound{Bucket: bucket}) {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErrWithErr(ErrReplicationValidationError, err), r.URL)
    			return
    		}
    	}
    	if lcfg != nil {
    		lockEnabled = lcfg.Enabled()
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    		return time.Now().UTC(), nil
    	}
    	return ntp.Time(ntpServer)
    }
    
    // Retention - bucket level retention configuration.
    type Retention struct {
    	Mode        RetMode
    	Validity    time.Duration
    	LockEnabled bool
    }
    
    // Retain - check whether given date is retainable by validity time.
    func (r Retention) Retain(created time.Time) bool {
    	t, err := UTCNowNTP()
    	if err != nil {
    		lockLogIf(context.Background(), err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. cmd/admin-handlers-site-replication.go

    		createdAt, cerr := time.Parse(time.RFC3339Nano, strings.TrimSpace(r.Form.Get("createdAt")))
    		if cerr != nil {
    			createdAt = timeSentinel
    		}
    
    		opts := MakeBucketOptions{
    			LockEnabled:       r.Form.Get("lockEnabled") == "true",
    			VersioningEnabled: r.Form.Get("versioningEnabled") == "true",
    			ForceCreate:       r.Form.Get("forceCreate") == "true",
    			CreatedAt:         createdAt,
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle.go

    		return errLifecycleNoRule
    	}
    
    	// Validate all the rules in the lifecycle config
    	for _, r := range lc.Rules {
    		if err := r.Validate(); err != nil {
    			return err
    		}
    		if lr.LockEnabled && (r.Expiration.DeleteAll.val || !r.DelMarkerExpiration.Empty()) {
    			return errLifecycleBucketLocked
    		}
    	}
    	// Make sure Rule ID is unique
    	for i := range lc.Rules {
    		if i == len(lc.Rules)-1 {
    			break
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top