Versions in this module Expand all Collapse all v0 v0.3.2 Nov 9, 2018 Changes in this version + func Exit(db *Database) + func Init(db *Database) + func TestClear() error + type DBAdapter interface + CreateJob func(ctx *c.Context, job *model.Job) (*model.Job, error) + CreatePlan func(ctx *c.Context, conn *model.Plan) (*model.Plan, error) + CreatePolicy func(ctx *c.Context, pol *model.Policy) (*model.Policy, error) + DeletePlan func(ctx *c.Context, name string) error + DeletePolicy func(ctx *c.Context, id string) error + GetJob func(ctx *c.Context, id string) (*model.Job, error) + GetPlan func(ctx *c.Context, id string) (*model.Plan, error) + GetPlanByPolicy func(ctx *c.Context, policyId string, limit int, offset int) ([]model.Plan, error) + GetPolicy func(ctx *c.Context, id string) (*model.Policy, error) + ListJob func(ctx *c.Context, limit int, offset int, filter interface{}) ([]model.Job, error) + ListPlan func(ctx *c.Context, limit int, offset int, filter interface{}) ([]model.Plan, error) + ListPolicy func(ctx *c.Context) ([]model.Policy, error) + LockSched func(planId string) int + UnlockSched func(planId string) int + UpdatePlan func(ctx *c.Context, conn *model.Plan) (*model.Plan, error) + UpdatePolicy func(ctx *c.Context, pol *model.Policy) (*model.Policy, error) + var DbAdapter DBAdapter