fix(imagemanager): prepare proper storage and retrieval of container images

This commit is contained in:
2024-06-02 21:39:31 +02:00
parent b8dd84b8a6
commit f453ce3126
9 changed files with 233 additions and 85 deletions

View File

@@ -26,4 +26,12 @@ export class Image extends plugins.smartdata.SmartDataDbDoc<Image, plugins.serve
public data: plugins.servezoneInterfaces.data.IImage['data'];
public async getVersions() {}
/**
* returns a storage path
* note: this is relative to the storage method defined by the imageManager
*/
public async getStoragePath(versionStringArg: string) {
return `${this.data.name}:${versionStringArg}`.replace('/', '__')
}
}