Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for lockEnabled (0.12 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/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)
  5. 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)
  6. cmd/bucket-handlers.go

    		goi            ObjectInfo
    		gerr           error
    	)
    	replicateDeletes := hasReplicationRules(ctx, bucket, deleteObjectsReq.Objects)
    	if rcfg, _ := globalBucketObjectLockSys.Get(bucket); rcfg.LockEnabled {
    		hasLockEnabled = true
    	}
    
    	type deleteResult struct {
    		delInfo DeletedObject
    		errInfo DeleteError
    	}
    
    	deleteResults := make([]deleteResult, len(deleteObjectsReq.Objects))
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  7. 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)
  8. cmd/object-handlers.go

    	opts, err := delOpts(ctx, r, bucket, object)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	rcfg, _ := globalBucketObjectLockSys.Get(bucket)
    	if rcfg.LockEnabled && opts.DeletePrefix {
    		apiErr := toAPIError(ctx, errInvalidArgument)
    		apiErr.Description = "force-delete is forbidden on Object Locking enabled buckets"
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    				NoRecreate: true,
    			})
    		}
    		return err
    	}
    
    	// If it doesn't exist we get a new, so ignore errors
    	meta := newBucketMetadata(bucket)
    	meta.SetCreatedAt(opts.CreatedAt)
    	if opts.LockEnabled {
    		meta.VersioningConfigXML = enabledBucketVersioningConfig
    		meta.ObjectLockConfigXML = enabledBucketObjectLockConfig
    	}
    
    	if opts.VersioningEnabled {
    		meta.VersioningConfigXML = enabledBucketVersioningConfig
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users.go

    					Versioning:          globalBucketVersioningSys.Enabled(bucket.Name),
    					VersioningSuspended: globalBucketVersioningSys.Suspended(bucket.Name),
    					Replication:         rcfg != nil,
    					Locking:             lcfg.LockEnabled,
    					Quota:               quota,
    					Tagging:             tcfg,
    				},
    				Access: madmin.AccountAccess{
    					Read:  rd,
    					Write: wr,
    				},
    			})
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top