CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

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

A resource that represents an Ollama container.

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

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string expression for the Ollama server.
ConnectionStringExpression() *ReferenceExpression
propertyHostEndpointReferenceExpressionget
Gets the Host property
Host() EndpointReferenceExpression
propertyModels[]stringget
Gets the Models property
Models() ([]string, error)
propertyPortEndpointReferenceExpressionget
Gets the Port property
Port() EndpointReferenceExpression
propertyPrimaryEndpointEndpointReferenceget
Gets the PrimaryEndpoint property
PrimaryEndpoint() EndpointReference
propertyUriExpression*ReferenceExpressionget
Gets the UriExpression property
UriExpression() *ReferenceExpression

Methods

methodWithDataVolumebuilder
Adds a data volume to the Ollama container.
WithDataVolume(options ...*WithDataVolumeOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
options...*WithDataVolumeOptionsOptional settings, described under Options.

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

Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
IsReadOnly*boolA flag that indicates if this is a read-only volume.
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

A reference to the IResourceBuilder.

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

methodWithGPUSupportbuilder
Adds GPU support to the Ollama container.
WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
options...*WithGPUSupportOptionsOptional settings, described under Options.

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

Vendor*OllamaGpuVendorThe GPU vendor, defaults to Nvidia.
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

A reference to the IResourceBuilder.

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