Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithBitwardenReferenceAuthCacheVolume

Method
📦 CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager v13.6.1
func (ResourceWithEnvironment) WithBitwardenReferenceAuthCacheVolume(
source BitwardenSecretManagerResource,
options ...*WithBitwardenReferenceAuthCacheVolumeOptions,
) ResourceWithEnvironment

Signature

methodWithBitwardenReferenceAuthCacheVolumebuilder
Mounts a named volume and configures the Bitwarden SDK to store its auth cache there, for the connection associated with source. Use this for container resources. For process resources or when the container path is already known, use WithBitwardenAuthCacheDirectory instead.
WithBitwardenReferenceAuthCacheVolume(
source BitwardenSecretManagerResource,
options ...*WithBitwardenReferenceAuthCacheVolumeOptions,
) ResourceWithEnvironment
sourceBitwardenSecretManagerResourceThe Bitwarden resource whose connection name to target.
options...*WithBitwardenReferenceAuthCacheVolumeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithBitwardenReferenceAuthCacheVolumeOptions argument.

VolumeName*stringThe Docker volume name. Defaults to {resourceName}-{connectionName}-bitwarden-auth when null.
ContainerDirectory*stringThe directory inside the container where the volume is mounted. Defaults to /var/lib/bitwarden.
ResourceWithEnvironment

The destination resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeCSharpAppResource
typeContainerResource
typeDotnetToolResource
typeExecutableResource
typeProjectResource