ExecutableResource
A resource that represents a specified executable process.
type ExecutableResource interface { IComputeResource Resource ResourceWithArgs ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}Methods
PublishAsDockerFile(configure func(obj ContainerResource)) ExecutableResourceParameters
configurefunc(obj ContainerResource) callbackOptional action to configure the container resourceReturns
ExecutableResource The resource builder.
Returns a handle; failures surface later via Err().
WithExecutableCommand(command string) ExecutableResourceParameters
commandstringCommand.Returns
ExecutableResource The resource builder.
Returns a handle; failures surface later via Err().
WithExecutableDebugSupport( launchConfigurationType string, scriptPath string, options ...*WithExecutableDebugSupportOptions,) ExecutableResourceParameters
launchConfigurationType stringThe launch configuration type understood by the extension.scriptPath stringThe script path, relative to the executable working directory when not rooted.options...*WithExecutableDebugSupportOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithExecutableDebugSupportOptions argument.
RuntimeExecutable *stringThe optional runtime executable to use in the launch configuration.LaunchMethod *stringThe optional launch method to use in the launch configuration.Returns
ExecutableResource The resource builder.
Returns a handle; failures surface later via Err().
WithVolume( target string, name string, env string, options ...*ExecutableResourceWithVolumeOptions,) ExecutableResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.options...*ExecutableResourceWithVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*ExecutableResourceWithVolumeOptions argument.
IsReadOnly *boolWhether the published volume is read-only.Returns
ExecutableResource The same executable resource builder handle for chaining.
Returns a handle; failures surface later via Err().
WithWorkingDirectory(workingDirectory string) ExecutableResourceParameters
workingDirectory stringWorking directory.Returns
ExecutableResource The resource builder.
Returns a handle; failures surface later via Err().