Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgSpec ¶
func ArgSpec(f *argmapper.Func, args ...argmapper.Arg) (*vagrant_plugin_sdk.FuncSpec, error)
func Func ¶
func Func(s *vagrant_plugin_sdk.FuncSpec, cb interface{}, args ...argmapper.Arg) *dynamic.SpecAndFunc
Func takes a FuncSpec and returns a *mapper.Func that can be called to invoke this function. The callback can have an argument type of Args in order to get access to the required dynamic proto.Any types of the FuncSpec.
func Spec ¶
func Spec(fn interface{}, args ...argmapper.Arg) (*vagrant_plugin_sdk.FuncSpec, error)
Spec takes a function pointer and generates a FuncSpec from it. The function must only take arguments that are proto.Message implementations or have a chain of converters that directly convert to a proto.Message.
Types ¶
type Args ¶
type Args []*vagrant_plugin_sdk.FuncSpec_Value
Args is a type that will be populated with all the expected args of the FuncSpec. This can be used in the callback (cb) to Func.
Click to show internal directories.
Click to hide internal directories.