UNPKG

docker-hub-tags

Version:

NodeJS lib, with which you can easily find the latest version of Docker Hub images

15 lines (14 loc) 743 B
import { DockerHubTagsFilter, DockerHubTagsOptions, ParsedVersionLevel, Tag, TagDetailed } from './types'; export declare const OFFICIALIMAGES_NAMESPACE = "library"; export declare class DockerHubTags { private tags; private constructor(); private static fetch; static init: (namespace: string, repository: string, filter?: Partial<DockerHubTagsFilter>, options?: Partial<DockerHubTagsOptions>) => Promise<DockerHubTags>; static createFromJson: (json: string) => DockerHubTags; exportToJson: () => string; getAllTags: () => Tag[]; getLatest: () => TagDetailed | undefined; getTag: (tag: string) => TagDetailed | undefined; getRecent: (version: string | ParsedVersionLevel) => TagDetailed | undefined; }