plan

package
Version: v0.6.2-Daito-RC1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 14 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 context.Context, plan *Plan) (*Plan, error)

func Delete

func Delete(ctx context.Context, id string) error

func Get

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

func List

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

func NewPlanExecutor

func NewPlanExecutor(plan *Plan) trigger.Executer

func Run

func Run(planId, tenantId, userId string) (bson.ObjectId, error)

func Update

func Update(ctx context.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