kaven-utils
Version:
Utils for Node.js.
45 lines (44 loc) • 1.37 kB
TypeScript
/********************************************************************
* @author: Kaven
* @email: kaven@wuwenkai.com
* @website: http://blog.kaven.xyz
* @file: [Kaven-Utils] /src/DockerRegistry.ts
* @create: 2023-12-07 15:01:55.009
* @modify: 2026-03-12 14:22:09.450
* @version: 6.1.3
* @times: 17
* @lines: 88
* @copyright: Copyright © 2023-2026 Kaven. All Rights Reserved.
* @description: [description]
* @license: [license]
********************************************************************/
/**
* @since 5.4.0
* @version 2023-12-07
*/
export declare class DockerRegistry {
private readonly url;
private readonly authorization?;
constructor(url: string, credentials?: {
username: string;
password: string;
});
ListImages(): Promise<string[] | undefined>;
ListTags(repository: string): Promise<{
name: string;
tags: string[];
} | undefined>;
/**
* Pulling an Image Manifest
* @see https://distribution.github.io/distribution/spec/api/#pulling-an-image-manifest
*/
GetImageManifest(name: string, reference: string): Promise<{
name: string;
tags: string[];
} | undefined>;
ListImageWithTags(): Promise<{
name: string;
tags: string[];
}[]>;
private CreateRequest;
}