registry

package
v0.0.0-...-425183e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegisterTaskFuncName = "RegisterTasks"

	TaskPackageVersion = "0.0.1"
)
View Source
const (
	BuiltinPluginDomain = "github.com/ChrisMcKenzie/preflight"
)

Variables

This section is empty.

Functions

func GetTask

func GetTask(meta plug.Meta) (plug.Task, error)

func GetTypeName

func GetTypeName(task *types.Any) string

func LoadPlugin

func LoadPlugin(path string) error

func MarshalAny

func MarshalAny(pb proto.Message) (*types.Any, error)

func RegisterTask

func RegisterTask(name string, task plug.TaskFunc)

Types

type PluginRegistryDetector

type PluginRegistryDetector struct{}

func (*PluginRegistryDetector) Detect

func (pd *PluginRegistryDetector) Detect(src, pwd string) (string, bool, error)

Jump to

Keyboard shortcuts

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