withDataVolume
Method
interface NatsServerResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): NatsServerResource;}Signature
method
withDataVolume builderAdds a named volume for the data folder to a NATS container resource.
withDataVolume( name?: string, isReadOnly?: boolean): NatsServerResourceParameters
namestringoptionalisReadOnly booleanoptional= FalseReturns
NatsServerResource Applies to
This method applies to the following types: