ProjectResource
A resource that represents a specified .NET project.
type ProjectResource interface { DotnetProgramResource IComputeResource IContainerFilesDestinationResource Resource ResourceWithArgs ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}Methods
DisableForwardedHeaders() ProjectResourceReturns
ProjectResource The resource builder.
Returns a handle; failures surface later via Err().
PublishAsDockerFile(options ...*PublishAsDockerFileOptions) ProjectResourceParameters
options...*PublishAsDockerFileOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*PublishAsDockerFileOptions argument.
Configurefunc(obj ContainerResource) callbackOptional action to configure the container resourceReturns
ProjectResource The resource builder.
Returns a handle; failures surface later via Err().
WithEndpointsInEnvironment(endpointNames []string) ProjectResourceParameters
endpointNames []string The endpoint names to include in environment variables.Returns
ProjectResource The same project resource builder handle for chaining.
Returns a handle; failures surface later via Err().
WithReplicas(replicas float64) ProjectResourceParameters
replicasfloat64The number of replicas.Returns
ProjectResource The resource builder.
Returns a handle; failures surface later via Err().
WithVolume( target string, name string, env string, options ...*ProjectResourceWithVolumeOptions,) ProjectResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.options...*ProjectResourceWithVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*ProjectResourceWithVolumeOptions argument.
IsReadOnly *boolWhether the published volume is read-only.Returns
ProjectResource The same project resource builder handle for chaining.
Returns a handle; failures surface later via Err().