get tags information

This commit is contained in:
CodeServer
2022-04-09 12:41:13 +01:00
parent 07d16b9aef
commit 0714b3e561
4 changed files with 96 additions and 8 deletions
+1 -4
View File
@@ -1,7 +1,4 @@
interface Tag {
label: string;
architecture: string;
}
import Tag from "./Tag";
interface Repository {
name: string;
+9
View File
@@ -0,0 +1,9 @@
interface Tag {
label: string;
architecture: string;
os: string;
created: Date | undefined;
digest: string;
}
export default Tag;
+10
View File
@@ -0,0 +1,10 @@
const digestDisplay = (digest: string): string => {
let digestInfo = digest.split(':');
if (digestInfo.length >= 2) {
return digestInfo[1].slice(0,12);
}
return digest;
};
export { digestDisplay };