lifecycle

package
Version: v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

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