jobs

package
v0.0.0-...-b5aadf9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GB = 1024 * 1024 * 1024
)

Variables

This section is empty.

Functions

func RecoverTask

func RecoverTask(db *xorm.Engine)

func SetDB

func SetDB(engine *xorm.Engine)

Types

type CronJob

type CronJob struct {
	// contains filtered or unexported fields
}

func (*CronJob) DailyStats

func (ctx *CronJob) DailyStats()

dailyStats: Daily task, check & stop expired containers.

func (*CronJob) InstantStats

func (ctx *CronJob) InstantStats()

instantStats: Instant task, check & update used bandwidth, stop containers which exceeded the package limit.

func (*CronJob) MonthlyStats

func (ctx *CronJob) MonthlyStats()

monthlyStats: Restart stopped containers and restore the bandwidth.

Jump to

Keyboard shortcuts

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