Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for one (0.13 sec)

  1. internal/bucket/lifecycle/rule.go

    }
    
    // validateStatus - checks if status is valid or not.
    func (r Rule) validateStatus() error {
    	// Status can't be empty
    	if len(r.Status) == 0 {
    		return errEmptyRuleStatus
    	}
    
    	// Status must be one of Enabled or Disabled
    	if r.Status != Enabled && r.Status != Disabled {
    		return errInvalidRuleStatus
    	}
    	return nil
    }
    
    func (r Rule) validateExpiration() error {
    	return r.Expiration.Validate()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. internal/bucket/replication/rule.go

    }
    
    // validateStatus - checks if status is valid or not.
    func (r Rule) validateStatus() error {
    	// Status can't be empty
    	if len(r.Status) == 0 {
    		return errEmptyRuleStatus
    	}
    
    	// Status must be one of Enabled or Disabled
    	if r.Status != Enabled && r.Status != Disabled {
    		return errInvalidRuleStatus
    	}
    	return nil
    }
    
    func (r Rule) validateFilter() error {
    	return r.Filter.Validate()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 24 23:22:20 GMT 2022
    - 8.3K bytes
    - Viewed (0)
Back to top