10 references to ContainerMountAnnotation
Aspire.Hosting (3)
ContainerResourceBuilderExtensions.cs (1)
327var annotation = new ContainerMountAnnotation(sourcePath, target, ContainerMountType.BindMount, isReadOnly);
VolumeResourceBuilderExtensions.cs (2)
68builder.WithAnnotation(new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly)); 85builder.WithAnnotation(new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly));
Aspire.Hosting.Containers.Tests (4)
ContainerMountAnnotationTests.cs (4)
16Assert.Throws<ArgumentNullException>("source", () => new ContainerMountAnnotation(source, "/usr/foo", ContainerMountType.BindMount, false)); 23Assert.Throws<ArgumentException>("source", () => new ContainerMountAnnotation("usr/foo", "/usr/foo", ContainerMountType.BindMount, false)); 29Assert.Throws<ArgumentException>("isReadOnly", () => new ContainerMountAnnotation(null, "/usr/foo", ContainerMountType.Volume, true)); 35var annotation = new ContainerMountAnnotation("/var/run/docker.sock", "/var/run/docker.sock", ContainerMountType.BindMount, false);
Aspire.Hosting.Kubernetes (2)
KubernetesEnvironmentExtensions.cs (1)
296annotations[i] = new ContainerMountAnnotation(localVolumeName, mount.Target, mount.Type, mount.IsReadOnly);
KubernetesPersistentVolumeExtensions.cs (1)
442builder.WithAnnotation(new ContainerMountAnnotation(
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
75var newMount = new ContainerMountAnnotation(newName, volume.Target, ContainerMountType.Volume, volume.IsReadOnly);