41 references to ContainerMountType
Aspire.Hosting (10)
ContainerResourceBuilderExtensions.cs (3)
64var annotation = new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly);
80var annotation = new ContainerMountAnnotation(null, target, ContainerMountType.Volume, false);
99var annotation = new ContainerMountAnnotation(Path.GetFullPath(source, builder.ApplicationBuilder.AppHostDirectory), target, ContainerMountType.BindMount, isReadOnly);
Aspire.Hosting.Azure.AppContainers (8)
AzureContainerAppsInfrastructure.cs (8)
555ContainerMountType.BindMount => ($"{bindMountIndex}", $"bm{bindMountIndex}"),
556ContainerMountType.Volume => ($"{volumeIndex}", $"v{volumeIndex}"),
560if (volume.Type == ContainerMountType.BindMount)
712private ProvisioningParameter AllocateVolumeStorageAccount(ContainerMountType type, string volumeIndex) =>
980private sealed class VolumeStorageExpression(IResource resource, ContainerMountType type, string index) : IManifestExpressionProvider
984ContainerMountType.BindMount => $"{{{resource.Name}.bindMounts.{index}.storage}}",
985ContainerMountType.Volume => $"{{{resource.Name}.volumes.{index}.storage}}",
989public static IManifestExpressionProvider GetVolumeStorage(IResource resource, ContainerMountType type, string index) =>
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Tests (8)
Aspire.Hosting.Containers.Tests (3)
ContainerMountAnnotationTests.cs (3)
17Assert.Throws<ArgumentNullException>("source", () => new ContainerMountAnnotation(source, "/usr/foo", ContainerMountType.BindMount, false));
24Assert.Throws<ArgumentException>("source", () => new ContainerMountAnnotation("usr/foo", "/usr/foo", ContainerMountType.BindMount, false));
30Assert.Throws<ArgumentException>("isReadOnly", () => new ContainerMountAnnotation(null, "/usr/foo", ContainerMountType.Volume, true));
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Keycloak.Tests (3)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Valkey.Tests (2)
Aspire.Playground.Tests (2)