Watch Aspire live streamsDocsTry Aspire

ContainerImageManifestInspectionResult Methods

ClassMethods3 members
Represents the result of inspecting a container image manifest.
Creates a failed image manifest inspection result.
public sealed class ContainerImageManifestInspectionResult
{
public static ContainerImageManifestInspectionResult Failure(
string errorMessage,
string? rawJson = null)
{
// ...
}
}
errorMessagestringThe failure description.
rawJsonstring?optionalThe runtime-native JSON returned by the inspection command, when available.
ContainerImageManifestInspectionResultA failed image manifest inspection result.
Creates a successful image manifest inspection result.
public sealed class ContainerImageManifestInspectionResult
{
public static ContainerImageManifestInspectionResult Success(
IReadOnlyList<ContainerImageManifest> manifests,
string? rawJson = null)
{
// ...
}
}
manifestsIReadOnlyList<ContainerImageManifest>The inspected platform-specific image manifests.
rawJsonstring?optionalThe runtime-native JSON returned by the inspection command, when available.
ContainerImageManifestInspectionResultA successful image manifest inspection result.
TryGetManifest(string, string, ContainerImageManifest?)Section titled TryGetManifest(string, string, ContainerImageManifest?)bool
Attempts to retrieve a manifest for the requested platform.
public sealed class ContainerImageManifestInspectionResult
{
public bool TryGetManifest(
string operatingSystem,
string architecture,
out ContainerImageManifest? manifest)
{
// ...
}
}
operatingSystemstringThe target operating system.
architecturestringThe target architecture.
manifestContainerImageManifest?The matching manifest when one is available.
booltrue when a matching manifest is available; otherwise, false.