m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-16 09:03:46 -05:00

Nearly complete versioning support. Fixed old bugs where not all tags were fetched.

This commit is contained in:
Sergio
2024-11-15 13:21:30 +02:00
parent c11b5e6432
commit d94abecf35
30 changed files with 1288 additions and 962 deletions

View File

@@ -2,7 +2,11 @@ export interface Data {
metrics: {
monitored_images: number;
up_to_date: number;
update_available: number;
updates_available: number;
major_updates: number;
minor_updates: number;
patch_updates: number;
other_updates: number;
unknown: number;
};
images: Image[];
@@ -16,11 +20,22 @@ export interface Image {
repository: string;
tag: string;
};
local_digests: string[];
remote_digest: string;
result: {
has_update: boolean | null;
info: VersionInfo | DigestInfo | null;
error: string | null;
};
time: number;
}
interface VersionInfo {
"type": "version",
version_update_type: "major" | "minor" | "patch",
new_version: string
}
interface DigestInfo {
"type": "digest",
local_digests: string[],
remote_digest: string
}