6 instantiations of ContainerImageConfigInspectionResult
Aspire.Hosting (6)
Publishing\ContainerImageInspectionResult.cs (3)
130
return
new
(
147
return
new
(
157
public static ContainerImageConfigInspectionResult Unsupported { get; } =
new
(
Publishing\ContainerRuntimeBase.cs (3)
121
return new
ContainerImageConfigInspectionResult
(
130
return new
ContainerImageConfigInspectionResult
(
137
return new
ContainerImageConfigInspectionResult
(
16 references to ContainerImageConfigInspectionResult
Aspire.Hosting (6)
Publishing\ContainerImageInspectionResult.cs (3)
126
public static
ContainerImageConfigInspectionResult
Success(ContainerImageConfig config, string? rawJson = null)
143
public static
ContainerImageConfigInspectionResult
Failure(string errorMessage, string? rawJson = null)
157
public static
ContainerImageConfigInspectionResult
Unsupported { get; } = new(
Publishing\ContainerRuntimeBase.cs (1)
100
public virtual async Task<
ContainerImageConfigInspectionResult
> InspectImageConfigAsync(string imageName, CancellationToken cancellationToken)
Publishing\IContainerRuntime.cs (2)
100
Task<
ContainerImageConfigInspectionResult
> InspectImageConfigAsync(string imageName, CancellationToken cancellationToken)
101
=> Task.FromResult(
ContainerImageConfigInspectionResult
.Unsupported);
Aspire.Hosting.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
1073
var
result = await runtime.InspectImageConfigAsync(imageReference, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (7)
Publishing\ContainerRuntimeBaseTests.cs (7)
91
var
configResult = await runtime.InspectImageConfigAsync(
113
var
configResult = await runtime.InspectImageConfigAsync(
130
var
configResult =
ContainerImageConfigInspectionResult
.Success(config, """{"config":true}""");
131
var
configFailure =
ContainerImageConfigInspectionResult
.Failure("config failed", """{"error":true}""");
147
Assert.Equal(ContainerImageInspectionStatus.Unsupported,
ContainerImageConfigInspectionResult
.Unsupported.Status);
Aspire.Hosting.TestUtilities (2)
Publishing\FakeContainerRuntime.cs (2)
117
public Task<
ContainerImageConfigInspectionResult
> InspectImageConfigAsync(string imageName, CancellationToken cancellationToken)
127
return Task.FromResult(
ContainerImageConfigInspectionResult
.Success(config, "{}"));