get tags information
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
interface Tag {
|
||||
label: string;
|
||||
architecture: string;
|
||||
}
|
||||
import Tag from "./Tag";
|
||||
|
||||
interface Repository {
|
||||
name: string;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
interface Tag {
|
||||
label: string;
|
||||
architecture: string;
|
||||
os: string;
|
||||
created: Date | undefined;
|
||||
digest: string;
|
||||
}
|
||||
|
||||
export default Tag;
|
||||
@@ -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 };
|
||||
Reference in New Issue
Block a user