Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FilterRules (0.06 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    		for _, otherRule := range otherRules {
    			if lc.Rules[i].ID == otherRule.ID {
    				return errLifecycleDuplicateID
    			}
    		}
    	}
    	return nil
    }
    
    // FilterRules returns the rules filtered by the status, prefix and tags
    func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
    	if obj.Name == "" {
    		return nil
    	}
    	var rules []Rule
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top