Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasTransition (0.14 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    	XMLName         xml.Name   `xml:"LifecycleConfiguration"`
    	Rules           []Rule     `xml:"Rule"`
    	ExpiryUpdatedAt *time.Time `xml:"ExpiryUpdatedAt,omitempty"`
    }
    
    // HasTransition returns 'true' if lifecycle document has Transition enabled.
    func (lc Lifecycle) HasTransition() bool {
    	for _, rule := range lc.Rules {
    		if rule.Transition.IsEnabled() {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top