ResourceWithEnvironment
Represents a resource that is associated with an environment.
type ResourceWithEnvironment interface{}Methods
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
WithCertificateTrustScope(scope CertificateTrustScope) ResourceWithEnvironmentParameters
scopeCertificateTrustScope The scope to apply to custom certificate authorities associated with the resource.Returns
ResourceWithEnvironment The resource builder.
Returns a handle; failures surface later via Err().
WithDeveloperCertificateTrust(trust bool) ResourceWithEnvironmentParameters
trustboolIndicates whether the developer certificate should be treated as trusted.Returns
ResourceWithEnvironment The resource builder.
Returns a handle; failures surface later via Err().
WithEnvironment( name string, value any,) ResourceWithEnvironmentParameters
namestringvalueanyReturns
ResourceWithEnvironment Returns a handle; failures surface later via Err().
WithEnvironmentCallback(callback func(arg EnvironmentCallbackContext)) ResourceWithEnvironmentParameters
callbackfunc(arg EnvironmentCallbackContext) callbackA callback that allows for deferred execution for computing many environment variables. This runs after resources have been allocated by the orchestrator and allows access to other resources to resolve computed data, e.g. connection strings, ports.Returns
ResourceWithEnvironment The resource builder.
Returns a handle; failures surface later via Err().
WithHttpsCertificateConfiguration(callback func(arg HttpsCertificateConfigurationCallbackAnnotationContext)) ResourceWithEnvironmentParameters
callbackfunc(arg HttpsCertificateConfigurationCallbackAnnotationContext) callbackThe callback to configure the resource to use a certificate key pair.Returns
ResourceWithEnvironment The updated resource builder.
Returns a handle; failures surface later via Err().
WithHttpsDeveloperCertificate(options ...*WithHttpsDeveloperCertificateOptions) ResourceWithEnvironmentParameters
options...*WithHttpsDeveloperCertificateOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithHttpsDeveloperCertificateOptions argument.
Password*ParameterResource A parameter specifying the password used to encrypt the certificate private key.Returns
ResourceWithEnvironment The resource builder.
Returns a handle; failures surface later via Err().
WithOtlpExporter(options ...*WithOtlpExporterOptions) ResourceWithEnvironmentParameters
options...*WithOtlpExporterOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithOtlpExporterOptions argument.
Protocol*OtlpProtocol Returns
ResourceWithEnvironment Returns a handle; failures surface later via Err().
WithoutHttpsCertificate() ResourceWithEnvironmentReturns
ResourceWithEnvironment The resource builder.
Returns a handle; failures surface later via Err().
WithReference( source any, options ...*WithReferenceOptions,) ResourceWithEnvironmentParameters
sourceanyoptions...*WithReferenceOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithReferenceOptions argument.
ConnectionName *stringOptional*boolName*stringReturns
ResourceWithEnvironment Returns a handle; failures surface later via Err().
WithReferenceEnvironment(options *ReferenceEnvironmentInjectionOptions) ResourceWithEnvironmentParameters
options*ReferenceEnvironmentInjectionOptions Options controlling which reference information is emitted.Returns
ResourceWithEnvironment The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This interface applies to the following types: