Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for LifecycleConfigXML (0.27 sec)

  1. cmd/bucket-metadata_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "NotificationConfigXML")
    				return
    			}
    		case "LifecycleConfigXML":
    			z.LifecycleConfigXML, err = dc.ReadBytes(z.LifecycleConfigXML)
    			if err != nil {
    				err = msgp.WrapError(err, "LifecycleConfigXML")
    				return
    			}
    		case "ObjectLockConfigXML":
    			z.ObjectLockConfigXML, err = dc.ReadBytes(z.ObjectLockConfigXML)
    			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-sys.go

    		if e != nil && !errors.Is(e, errConfigNotFound) {
    			return updatedAt, e
    		}
    		var expiryRuleRemoved bool
    		if len(meta.LifecycleConfigXML) > 0 {
    			var lcCfg lifecycle.Lifecycle
    			if err := xml.Unmarshal(meta.LifecycleConfigXML, &lcCfg); err != nil {
    				return updatedAt, err
    			}
    			// find a single expiry rule set the flag
    			for _, rl := range lcCfg.Rules {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle-handlers.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	expiryRuleRemoved := false
    	if len(meta.LifecycleConfigXML) > 0 {
    		var lcCfg lifecycle.Lifecycle
    		if err := xml.Unmarshal(meta.LifecycleConfigXML, &lcCfg); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    		for _, rl := range lcCfg.Rules {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. cmd/bucket-metadata.go

    		if err = xml.Unmarshal(b.NotificationConfigXML, b.notificationConfig); err != nil {
    			return err
    		}
    	}
    
    	if len(b.LifecycleConfigXML) != 0 {
    		b.lifecycleConfig, err = lifecycle.ParseLifecycleConfig(bytes.NewReader(b.LifecycleConfigXML))
    		if err != nil {
    			return err
    		}
    	} else {
    		b.lifecycleConfig = nil
    	}
    
    	if len(b.EncryptionConfigXML) != 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. cmd/data-scanner_test.go

    	}
    
    	bucket := "bucket"
    	obj := "obj-1"
    	now := time.Now()
    	meta := BucketMetadata{
    		Name:                      bucket,
    		Created:                   now,
    		LifecycleConfigXML:        lcXML,
    		VersioningConfigXML:       vcfgXML,
    		VersioningConfigUpdatedAt: now,
    		LifecycleConfigUpdatedAt:  now,
    		lifecycleConfig:           &lc,
    		versioningConfig:          &vcfg,
    	}
    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/admin-bucket-handlers.go

    				continue
    			}
    
    			configData, err := xml.Marshal(bucketLifecycle)
    			if err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    
    			bucketMap[bucket].LifecycleConfigXML = configData
    			bucketMap[bucket].LifecycleConfigUpdatedAt = updatedAt
    			rpt.SetStatus(bucket, fileName, nil)
    		case bucketSSEConfig:
    			// Parse bucket encryption xml
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. cmd/site-replication.go

    	if e != nil && !errors.Is(e, errConfigNotFound) {
    		return []byte{}, e
    	}
    	rMap := make(map[string]lifecycle.Rule)
    	var xmlName xml.Name
    	if len(meta.LifecycleConfigXML) > 0 {
    		var lcCfg lifecycle.Lifecycle
    		if err := xml.Unmarshal(meta.LifecycleConfigXML, &lcCfg); err != nil {
    			return []byte{}, err
    		}
    		for _, rl := range lcCfg.Rules {
    			rMap[rl.ID] = rl
    		}
    		xmlName = meta.lifecycleConfig.XMLName
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top