Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

FlagdResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Flagd v13.6.1

A resource that represents a flagd container.

type FlagdResource interface {
ExpressionValue
IComputeResource
Resource
ResourceWithArgs
ResourceWithConnectionString
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string expression for the flagd server.
ConnectionStringExpression() *ReferenceExpression
propertyHealthCheckEndpointEndpointReferenceget
Gets the health check HTTP endpoint for the flagd server.
HealthCheckEndpoint() EndpointReference
propertyHostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
Host() EndpointReferenceExpression
propertyOfrepEndpointEndpointReferenceget
Gets the OFREP endpoint for the flagd server.
OfrepEndpoint() EndpointReference
propertyPortEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
Port() EndpointReferenceExpression
propertyPrimaryEndpointEndpointReferenceget
Gets the primary HTTP endpoint for the flagd server.
PrimaryEndpoint() EndpointReference
propertyUriExpression*ReferenceExpressionget
Gets the connection URI expression for the flagd server.
UriExpression() *ReferenceExpression

Methods

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().