Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for ToRetention (0.04 seconds)

  1. internal/bucket/object/lock/lock.go

    		return fmt.Errorf("only 'Enabled' value is allowed to ObjectLockEnabled element")
    	}
    
    	*config = Config(parsedConfig)
    	return nil
    }
    
    // ToRetention - convert to Retention type.
    func (config *Config) ToRetention() Retention {
    	r := Retention{
    		LockEnabled: config.ObjectLockEnabled == Enabled,
    	}
    	if config.Rule != nil {
    		r.Mode = config.Rule.DefaultRetention.Mode
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 17.9K bytes
    - Click Count (0)
Back to Top