lifecycle

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL