Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for lockEnabled (0.14 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/data-scanner.go

    		// noncurrent versions of this object.
    		if lr.LockEnabled {
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    
    	case lifecycle.DeleteVersionAction, lifecycle.DeleteRestoredVersionAction:
    		// Defensive code, should never happen
    		if obj.VersionID == "" {
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    		if lr.LockEnabled && enforceRetentionForDeletion(ctx, obj) {
    			if serverDebugLog {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  9. cmd/admin-bucket-handlers.go

    			configData, err := xml.Marshal(config)
    			if err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    			if _, ok := bucketMap[bucket]; !ok {
    				opts := MakeBucketOptions{
    					LockEnabled: config.Enabled(),
    					ForceCreate: true, // ignore if it already exists
    				}
    				err = objectAPI.MakeBucket(ctx, bucket, opts)
    				if err != nil {
    					rpt.SetStatus(bucket, fileName, err)
    					continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    	RestoreRequest *RestoreObjectRequest
    	RestoreExpiry  time.Time
    	ExpireRestored bool
    }
    
    // MakeBucketOptions represents bucket options for ObjectLayer bucket operations
    type MakeBucketOptions struct {
    	LockEnabled       bool
    	VersioningEnabled bool
    	ForceCreate       bool      // Create buckets even if they are already created.
    	CreatedAt         time.Time // only for site replication
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top