Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetLifecycleConfig (0.12 sec)

  1. cmd/bucket-metadata-sys.go

    	}
    	return meta.objectLockConfig, meta.ObjectLockConfigUpdatedAt, nil
    }
    
    // GetLifecycleConfig returns configured lifecycle config
    // The returned object may not be modified.
    func (sys *BucketMetadataSys) GetLifecycleConfig(bucket string) (*lifecycle.Lifecycle, time.Time, error) {
    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. cmd/admin-bucket-handlers.go

    					return
    				}
    				rawDataFn(bytes.NewReader(configData), cfgPath, len(configData))
    			case bucketLifecycleConfig:
    				config, _, err := globalBucketMetadataSys.GetLifecycleConfig(bucket)
    				if err != nil {
    					if errors.Is(err, BucketLifecycleNotFound{Bucket: bucket}) {
    						continue
    					}
    					adminLogIf(ctx, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle.go

    type LifecycleSys struct{}
    
    // Get - gets lifecycle config associated to a given bucket name.
    func (sys *LifecycleSys) Get(bucketName string) (lc *lifecycle.Lifecycle, err error) {
    	lc, _, err = globalBucketMetadataSys.GetLifecycleConfig(bucketName)
    	return lc, err
    }
    
    // NewLifecycleSys - creates new lifecycle system.
    func NewLifecycleSys() *LifecycleSys {
    	return &LifecycleSys{}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top