ResourceCommandService.ExecuteCommandAsync
Method
type ResourceCommandService interface { // ... omitted for brevity ExecuteCommandAsync( resource any, commandName string, options ...*ExecuteCommandAsyncOptions, ) (*ExecuteCommandResult, error)}Signature
method
ExecuteCommandAsync Executes a command for the specified resource.
ExecuteCommandAsync( resource any, commandName string, options ...*ExecuteCommandAsyncOptions,) (*ExecuteCommandResult, error)Parameters
resourceanyThe resource id or resource handle. A resource id can either exactly match the unique id of the resource or the displayed resource name if the resource name doesn't have duplicates.commandName stringThe command name.options...*ExecuteCommandAsyncOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*ExecuteCommandAsyncOptions argument.
Argumentsmap[string]string The optional invocation arguments supplied to the command callback.CancellationToken *CancellationToken The cancellation token.Returns
(*ExecuteCommandResult, error) The command execution result.
Returns (*ExecuteCommandResult, error).
Defined on
This method is defined on the following type: