DenoAppResource
A resource that represents a Deno application.
type DenoAppResource interface { IComputeResource IContainerFilesDestinationResource Resource ResourceWithArgs ResourceWithContainerFiles ResourceWithEndpoints ResourceWithEnvironment ResourceWithServiceDiscovery ResourceWithWaitSupport}Properties
ResourceTypeDisplayName stringgetResourceTypeDisplayName() (string, error)Methods
WithDenoAllow( kind DenoPermissionKind, values []string,) DenoAppResourceParameters
kindDenoPermissionKind The permission to grant.values[]string Optional values that scope the permission. When empty, all access of the selected kind is allowed.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
-A /--allow-all grant.WithDenoAllowAll(options ...*WithDenoAllowAllOptions) DenoAppResourceParameters
options...*WithDenoAllowAllOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDenoAllowAllOptions argument.
Enabled*boolWhether to emit -A /--allow-all . Pass false to grant only permissions configured with WithDenoAllow .Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--config <file> (path to a deno.json /deno.jsonc ).WithDenoConfig(configFile string) DenoAppResourceParameters
configFile stringThe Deno configuration file path.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
WithDenoDeny( kind DenoPermissionKind, values []string,) DenoAppResourceParameters
kindDenoPermissionKind The permission to deny.values[]string Optional values that scope the permission. When empty, all access of the selected kind is denied.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--import-map <file> .WithDenoImportMap(importMapFile string) DenoAppResourceParameters
importMapFile stringThe import map file path.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
hostPort (for example 127.0.0.1:9229).WithDenoInspect(options ...*WithDenoInspectOptions) DenoAppResourceParameters
options...*WithDenoInspectOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDenoInspectOptions argument.
Mode*DenoInspectMode The inspector mode to enable.HostPort *stringThe optional inspector host:port value.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--lock <file> .WithDenoLock(lockFile string) DenoAppResourceParameters
lockFile stringThe lockfile path.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--node-modules-dir , optionally with a mode emitted as --node-modules-dir=<mode> .WithDenoNodeModulesDir(options ...*WithDenoNodeModulesDirOptions) DenoAppResourceParameters
options...*WithDenoNodeModulesDirOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDenoNodeModulesDirOptions argument.
Mode*DenoNodeModulesDirMode The node_modules mode. When null, emits --node-modules-dir without a value.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--no-lock , disabling lockfile use.WithDenoNoLock() DenoAppResourceReturns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
deno run <entrypoint> mode (the default).WithDenoRun() DenoAppResourceReturns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
AddExecutable("name", "deno", workdir, args...) for any flag not covered by a dedicated WithDeno* method.WithDenoRuntimeArgs(args []string) DenoAppResourceParameters
args[]string The runtime arguments to append before the entrypoint or task name.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
WithDenoScriptArgs(args []string) DenoAppResourceParameters
args[]string The script arguments to append after the entrypoint or task name.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
deno serve <entrypoint> mode for serving an HTTP entrypoint.WithDenoServe() DenoAppResourceReturns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
deno task <taskName> mode, running a task defined in deno.json instead of a script entrypoint. Permissions are defined by the task itself and are not emitted for this mode.WithDenoTask(taskName string) DenoAppResourceParameters
taskName stringThe name of the task in deno.json to run.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--unstable-* flags. Each feature may be supplied bare (for example "kv", "worker-options" , "sloppy-imports" ) or fully qualified ("--unstable-kv" ).WithDenoUnstable(features []string) DenoAppResourceParameters
features[]string The unstable feature names or fully-qualified --unstable-* flags to emit.Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().
--watch (or --watch-hmr when hmr is true).WithDenoWatch(options ...*WithDenoWatchOptions) DenoAppResourceParameters
options...*WithDenoWatchOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDenoWatchOptions argument.
Hmr*boolWhether to emit --watch-hmr instead of --watch .Returns
DenoAppResource The resource builder.
Returns a handle; failures surface later via Err().