Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithBindFileSync

Method
📦 CommunityToolkit.Aspire.Hosting.Flagd v13.6.1
func (FlagdResource) WithBindFileSync(
fileSource string,
options ...*WithBindFileSyncOptions,
) FlagdResource

Signature

methodWithBindFileSyncbuilder
Configures flagd to use a bind mount as the source of flags.
WithBindFileSync(
fileSource string,
options ...*WithBindFileSyncOptions,
) FlagdResource
fileSourcestringThe path to the host directory that contains the flag configuration file.
options...*WithBindFileSyncOptionsOptional settings, described under Options.

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

Filename*stringThe name of the flag configuration file. Defaults to "flagd.json".
FlagdResource

The IResourceBuilder.

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

Applies to

This method applies to the following types: