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 an Ollama container.
type CommunityToolkit_Aspire_Hosting_OllamaOllamaResource interface { ExpressionValue IComputeResource OllamaResource Resource ResourceWithArgs ResourceWithConnectionString ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}ConnectionStringExpression *ReferenceExpression getConnectionStringExpression() *ReferenceExpressionHostEndpointReferenceExpression getHost() EndpointReferenceExpressionModels[]string getModels() ([]string, error)PortEndpointReferenceExpression getPort() EndpointReferenceExpressionPrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceUriExpression *ReferenceExpression getUriExpression() *ReferenceExpressionWithDataVolume(options ...*WithDataVolumeOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourceParameters
options...*WithDataVolumeOptions Optional settings, described under Options.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.Returns
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource A reference to the I.
Returns a handle; failures surface later via Err().
WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourceParameters
options...*WithGPUSupportOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithGPUSupportOptions argument.
Vendor*OllamaGpuVendor The GPU vendor, defaults to Nvidia.Returns
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource A reference to the I.
Returns a handle; failures surface later via Err().