docker/ts/docker.classes.image.ts

38 lines
842 B
TypeScript
Raw Normal View History

2018-07-16 21:52:50 +00:00
import * as plugins from './dockersock.plugins';
import { DockerHost } from './docker.classes.host';
export class DockerImage {
2019-08-14 12:19:45 +00:00
// STATIC
public static async createFromRegistry(dockerHostArg: DockerHost, dockerImageTag): Promise<DockerImage> {
const resultingImage = new DockerImage();
return resultingImage;
}
public static async createFromExistingImage(dockerHostArg: DockerHost, dockerImageTag) {}
// INSTANCE
2018-07-16 21:52:50 +00:00
/**
* the tags for an image
*/
2019-08-14 12:19:45 +00:00
public tags: string[] = [];
2018-07-16 21:52:50 +00:00
2019-08-14 12:19:45 +00:00
/**
* returns a boolean wether the image has a upstream image
*/
public isUpstreamImage (): boolean {
// TODO: implement isUpastreamImage
return true;
};
/**
*
*/
public async pullLatestImageFromRegistry() : Promise<boolean> {
// TODO: implement pullLatestImageFromRegistry
return true;
2018-07-16 21:52:50 +00:00
}
2019-08-14 12:19:45 +00:00
2018-07-17 06:39:37 +00:00
}