Documentation ¶
Index ¶
Constants ¶
View Source
const ( MICRO_ENVIRONMENT = "MICRO_ENVIRONMENT" K8S = "k8s" )
View Source
const TIME_LAYOUT_TIDB = "2006-01-02 15:04:05"
Variables ¶
View Source
var TransitionMap map[string]struct{}
map from a specific tier to an array of tiers, that means transition can happens from the specific tier to those tiers in the array.
Functions ¶
func ScheduleLifecycle ¶
func ScheduleLifecycle()
Get liecycle rules for each bucket from db, and schedule according to those rules.
Types ¶
type InterRules ¶
type InterRules []*InternalLifecycleRule
func (InterRules) Len ¶
func (r InterRules) Len() int
func (InterRules) Less ¶
func (r InterRules) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j. Expiration action has higher priority than transition action. For the same action type, bigger Days has higher priority.
func (InterRules) Swap ¶
func (r InterRules) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.