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 RavenDB container.
type RavenDBServerResource interface { ExpressionValue IComputeResource Resource ResourceWithArgs ResourceWithConnectionString ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}ConnectionStringExpression *ReferenceExpression getConnectionStringExpression() *ReferenceExpressionDatabasesmap[string]string getDatabases() (map[string]string, error)HostEndpointReferenceExpression getHost() EndpointReferenceExpressionPortEndpointReferenceExpression getPort() EndpointReferenceExpressionPrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceTcpEndpoint EndpointReference getTcpEndpoint() EndpointReferenceUriExpression *ReferenceExpression getUriExpression() *ReferenceExpressionAddDatabase( name string, options ...*AddDatabaseOptions,) RavenDBDatabaseResourceParameters
namestringThe name of the database resource.options...*AddDatabaseOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddDatabaseOptions argument.
DatabaseName *stringThe name of the database to create/add. Defaults to the same name as the resource if not provided.EnsureCreated *boolIndicates whether the database should be created on startup if it does not already exist.Returns
RavenDBDatabaseResource A resource builder for the newly added RavenDB database resource.
Returns a handle; failures surface later via Err().
WithDataBindMount( source string, options ...*WithDataBindMountOptions,) RavenDBServerResourceParameters
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 *boolIndicates whether the bind mount should be read-only. Defaults to false.Returns
RavenDBServerResource The I for the RavenDB server resource.
Returns a handle; failures surface later via Err().
WithDataVolume(options ...*WithDataVolumeOptions) RavenDBServerResourceParameters
options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
Name*stringOptional name for the volume. Defaults to a generated name if not provided.IsReadOnly *boolIndicates whether the volume should be read-only. Defaults to false.Returns
RavenDBServerResource The I for the RavenDB server resource.
Returns a handle; failures surface later via Err().
WithLogBindMount( source string, options ...*WithLogBindMountOptions,) RavenDBServerResourceParameters
sourcestringThe source directory on the host to mount into the container.options...*WithLogBindMountOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithLogBindMountOptions argument.
IsReadOnly *boolIndicates whether the bind mount should be read-only. Defaults to false.Returns
RavenDBServerResource The I for the RavenDB server resource.
Returns a handle; failures surface later via Err().
WithLogVolume(options ...*WithLogVolumeOptions) RavenDBServerResourceParameters
options...*WithLogVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithLogVolumeOptions argument.
Name*stringOptional name for the volume. Defaults to a generated name if not provided.IsReadOnly *boolIndicates whether the volume should be read-only. Defaults to false.Returns
RavenDBServerResource The I for the RavenDB server resource.
Returns a handle; failures surface later via Err().