import * as plugins from './plugins.js'; import * as interfaces from './interfaces/index.js'; import { DockerHost } from './classes.host.js'; import { DockerResource } from './classes.base.js'; /** * represents a docker image on the remote docker host */ export declare class DockerImage extends DockerResource { #private; /** * Internal: Get all images * Public API: Use dockerHost.listImages() instead */ static _list(dockerHost: DockerHost, optionsArg?: interfaces.IImageListOptions): Promise; /** * Internal: Inspect an image by a complete local reference. */ static _fromReference(dockerHostArg: DockerHost, referenceArg: string, signalArg?: AbortSignal): Promise; /** * Internal: Inspect an image through its immutable local ID. */ static _fromId(dockerHostArg: DockerHost, idArg: string): Promise; /** * Pulls a complete registry reference and verifies the expected repository * digest before exposing the resolved local image ID. */ static _pull(dockerHostArg: DockerHost, descriptorArg: interfaces.IImagePullDescriptor): Promise; /** * Pulls an explicitly tagged mutable application image and returns its * directly inspected DockerImage with an immutable local Id. */ static _pullMutable(dockerHostArg: DockerHost, descriptorArg: interfaces.IImageMutablePullDescriptor): Promise; private static assertPullResponseHasNoError; /** * Internal: Create image from tar stream * Public API: Use dockerHost.createImageFromTarStream(stream, descriptor) instead */ static _createFromTarStream(dockerHostArg: DockerHost, optionsArg: { creationObject: interfaces.IImageCreationDescriptor; tarStream: plugins.smartstream.stream.Readable; }): Promise; static tagImageByIdOrName(dockerHost: DockerHost, idOrNameArg: string, newTagArg: string): Promise; /** * Internal: Build image from Dockerfile * Public API: Use dockerHost.buildImage(tag) instead */ static _build(dockerHostArg: DockerHost, dockerImageTag: any): Promise; /** * the tags for an image */ Containers: number; Created: number; Id: string; Labels: interfaces.TLabels; ParentId: string; RepoDigests: string[]; RepoTags: string[]; Os?: string; Architecture?: string; SharedSize: number; Size: number; VirtualSize: number; /** Complete reference used for direct inspection or verified pull. */ Reference?: string; /** RepoDigest verified during this pull operation. */ VerifiedRepoDigest?: string; /** Checks pull-time proof that is not represented by caller-writable public fields. */ hasVerifiedRepoDigest(referenceArg: string): boolean; /** Checks exact mutable-reference pull proof that caller-writable fields cannot represent. */ hasPulledMutableReference(referenceArg: string): boolean; private readonly immutableId; constructor(dockerHostArg: DockerHost, dockerImageObjectArg: Record); /** * Refreshes this image's state from the Docker daemon */ refresh(): Promise; /** * tag an image * @param newTag */ tagImage(newTag: any): Promise; /** * Removes this image from the Docker daemon */ remove(options?: { force?: boolean; noprune?: boolean; }): Promise; getVersion(): Promise; /** * exports an image to a tar ball */ exportToTarStream(): Promise; }