Resource.WithProcessCommandFactory
Method
func (Resource) WithProcessCommandFactory( commandName string, displayName string, createProcessSpec func(arg ExecuteCommandContext) *ProcessCommandSpecExportData, options ...*ProcessCommandResultExportOptions,) ResourceSignature
method
WithProcessCommandFactory builderAdds a command to the resource that starts a local process created by a callback when invoked.
WithProcessCommandFactory( commandName string, displayName string, createProcessSpec func(arg ExecuteCommandContext) *ProcessCommandSpecExportData, options ...*ProcessCommandResultExportOptions,) ResourceParameters
commandName stringdisplayName stringcreateProcessSpec func(arg ExecuteCommandContext) *ProcessCommandSpecExportData callbackoptions...*ProcessCommandResultExportOptions Optional settings, described under Options.Options
Optional parameters are passed as the existing *ProcessCommandResultExportOptions struct.
Returns
ResourceReturns a handle; failures surface later via Err().
Defined on
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
Applies to
This function applies to the following types: