plan

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BIT_REGION     = 1  //00001
	BIT_ENDPOINT   = 2  //00010
	BIT_BUCKETNAME = 4  //00100
	BIT_ACCESS     = 8  //01000
	BIT_SECURITY   = 16 //10000
	BIT_FULL       = 31 //11111
)

Variables

This section is empty.

Functions

func Create

func Create(ctx *c.Context, plan *Plan) (*Plan, error)

func Delete

func Delete(ctx *c.Context, id string) error

func Get

func Get(ctx *c.Context, id string) (*Plan, error)

func List

func List(ctx *c.Context, limit int, offset int, filter interface{}) ([]Plan, error)

func NewPlanExecutor

func NewPlanExecutor(ctx *c.Context, plan *Plan) trigger.Executer

func Run

func Run(ctx *c.Context, id string) (bson.ObjectId, error)

func Update

func Update(ctx *c.Context, planId string, updateMap map[string]interface{}) (*Plan, error)

1. cannot update type

Types

type TriggerExecutor

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

func (*TriggerExecutor) Run

func (p *TriggerExecutor) Run()

Source Files

Jump to

Keyboard shortcuts

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