PrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceAPI references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
A resource that represents a NATS server container.
type NatsServerResource interface { ExpressionValue IComputeResource Resource ResourceWithArgs ResourceWithConnectionString ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}ConnectionStringExpression *ReferenceExpression getConnectionStringExpression() *ReferenceExpressionHostEndpointReferenceExpression getHost() EndpointReferenceExpressionPasswordParameter ParameterResource get · setPasswordParameter() ParameterResourceSetPasswordParameter(value ParameterResource) NatsServerResourcePortEndpointReferenceExpression getPort() EndpointReferenceExpressionPrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceResourceTypeDisplayName stringgetResourceTypeDisplayName() (string, error)UriExpression *ReferenceExpression getUriExpression() *ReferenceExpressionUserNameParameter ParameterResource get · setUserNameParameter() ParameterResourceSetUserNameParameter(value ParameterResource) NatsServerResourceUserNameReference *ReferenceExpression getUserNameReference() *ReferenceExpressionWithDataBindMount( source string, options ...*WithDataBindMountOptions,) NatsServerResourceParameters
sourcestringThe source directory on the host to mount into the container.options...*WithDataBindMountOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataBindMountOptions argument.
IsReadOnly *boolA flag that indicates if this is a read-only mount.Returns
NatsServerResource The resource builder.
Returns a handle; failures surface later via Err().
WithDataVolume(options ...*WithDataVolumeOptions) NatsServerResourceParameters
options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.IsReadOnly *boolA flag that indicates if this is a read-only volume.Returns
NatsServerResource The resource builder.
Returns a handle; failures surface later via Err().
WithJetStream() NatsServerResourceReturns
NatsServerResource The resource builder.
Returns a handle; failures surface later via Err().