registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTasks

func GetTasks() map[string]Task

func RegisterTask

func RegisterTask(name string, task Task)

RegisterTask register task for appfile

func Run deprecated

func Run(spec map[string]interface{}, io util.IOStreams) (map[string]interface{}, error)

Deprecated: Run is deprecated, you should use DoTasks is builtin package, it will automatically register all internal functions

Types

type CallCtx

type CallCtx interface {
	LookUp(...string) (interface{}, error)
	IO() util.IOStreams
}

CallCtx is task handle context

type Task

type Task func(ctx CallCtx, params interface{}) error

Task process app-file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳