mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-14 08:03:48 -05:00
V3
Many many many changes, honestly just read the release notes
This commit is contained in:
@@ -2,9 +2,43 @@ 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: Record<string, boolean | null>;
|
||||
images: Image[];
|
||||
last_updated: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
reference: string;
|
||||
parts: {
|
||||
registry: string;
|
||||
repository: string;
|
||||
tag: string;
|
||||
};
|
||||
result: {
|
||||
has_update: boolean | null;
|
||||
info: VersionInfo | DigestInfo | null;
|
||||
error: string | null;
|
||||
};
|
||||
time: number;
|
||||
server: string | null;
|
||||
}
|
||||
|
||||
interface VersionInfo {
|
||||
type: "version";
|
||||
version_update_type: "major" | "minor" | "patch";
|
||||
new_tag: string;
|
||||
current_version: string;
|
||||
new_version: string;
|
||||
}
|
||||
|
||||
interface DigestInfo {
|
||||
type: "digest";
|
||||
local_digests: string[];
|
||||
remote_digest: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user