Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
Signals CI & Image / signals-ci (push) Has been cancelled
Signals Reachability Scoring & Events / reachability-smoke (push) Has been cancelled
Signals Reachability Scoring & Events / sign-and-upload (push) Has been cancelled
112 lines
2.8 KiB
C#
112 lines
2.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace StellaOps.Cli.Services.Models;
|
|
|
|
internal sealed record OfflineKitBundleDescriptor(
|
|
string BundleId,
|
|
string BundleName,
|
|
string BundleSha256,
|
|
long BundleSize,
|
|
Uri BundleDownloadUri,
|
|
string ManifestName,
|
|
string ManifestSha256,
|
|
Uri ManifestDownloadUri,
|
|
DateTimeOffset CapturedAt,
|
|
string? Channel,
|
|
string? Kind,
|
|
bool IsDelta,
|
|
string? BaseBundleId,
|
|
string? BundleSignatureName,
|
|
Uri? BundleSignatureDownloadUri,
|
|
string? ManifestSignatureName,
|
|
Uri? ManifestSignatureDownloadUri,
|
|
long? ManifestSize);
|
|
|
|
internal sealed record OfflineKitDownloadResult(
|
|
OfflineKitBundleDescriptor Descriptor,
|
|
string BundlePath,
|
|
string ManifestPath,
|
|
string? BundleSignaturePath,
|
|
string? ManifestSignaturePath,
|
|
string MetadataPath,
|
|
bool FromCache);
|
|
|
|
internal sealed record OfflineKitImportRequest(
|
|
string BundlePath,
|
|
string? ManifestPath,
|
|
string? BundleSignaturePath,
|
|
string? ManifestSignaturePath,
|
|
string? BundleId,
|
|
string? BundleSha256,
|
|
long? BundleSize,
|
|
DateTimeOffset? CapturedAt,
|
|
string? Channel,
|
|
string? Kind,
|
|
bool? IsDelta,
|
|
string? BaseBundleId,
|
|
string? ManifestSha256,
|
|
long? ManifestSize);
|
|
|
|
internal sealed record OfflineKitImportResult(
|
|
string? ImportId,
|
|
string? Status,
|
|
DateTimeOffset SubmittedAt,
|
|
string? Message);
|
|
|
|
internal sealed record OfflineKitStatus(
|
|
string? BundleId,
|
|
string? Channel,
|
|
string? Kind,
|
|
bool IsDelta,
|
|
string? BaseBundleId,
|
|
DateTimeOffset? CapturedAt,
|
|
DateTimeOffset? ImportedAt,
|
|
string? BundleSha256,
|
|
long? BundleSize,
|
|
IReadOnlyList<OfflineKitComponentStatus> Components);
|
|
|
|
internal sealed record OfflineKitComponentStatus(
|
|
string Name,
|
|
string? Version,
|
|
string? Digest,
|
|
DateTimeOffset? CapturedAt,
|
|
long? SizeBytes);
|
|
|
|
internal sealed record OfflineKitMetadataDocument
|
|
{
|
|
public string? BundleId { get; init; }
|
|
|
|
public string BundleName { get; init; } = string.Empty;
|
|
|
|
public string BundleSha256 { get; init; } = string.Empty;
|
|
|
|
public long BundleSize { get; init; }
|
|
|
|
public string BundlePath { get; init; } = string.Empty;
|
|
|
|
public DateTimeOffset CapturedAt { get; init; }
|
|
|
|
public DateTimeOffset DownloadedAt { get; init; }
|
|
|
|
public string? Channel { get; init; }
|
|
|
|
public string? Kind { get; init; }
|
|
|
|
public bool IsDelta { get; init; }
|
|
|
|
public string? BaseBundleId { get; init; }
|
|
|
|
public string ManifestName { get; init; } = string.Empty;
|
|
|
|
public string ManifestSha256 { get; init; } = string.Empty;
|
|
|
|
public long? ManifestSize { get; init; }
|
|
|
|
public string ManifestPath { get; init; } = string.Empty;
|
|
|
|
public string? BundleSignaturePath { get; init; }
|
|
|
|
public string? ManifestSignaturePath { get; init; }
|
|
}
|