import type { DockerHost } from './classes.host.js'; import type { ISecretCreationDescriptor, ISecretSpec } from './interfaces/secret.js'; import type { TLabels } from './interfaces/label.js'; import { DockerResource } from './classes.base.js'; export declare class DockerSecret extends DockerResource { /** * Internal: Get all secrets * Public API: Use dockerHost.listSecrets() instead */ static _list(dockerHostArg: DockerHost): Promise; /** * Internal: Get secret by ID * Public API: Use dockerHost.getSecretById(id) instead */ static _fromId(dockerHostArg: DockerHost, idArg: string): Promise; /** * Internal: Get secret by name * Public API: Use dockerHost.getSecretByName(name) instead */ static _fromName(dockerHostArg: DockerHost, nameArg: string): Promise; /** * Internal: Create a secret * Public API: Use dockerHost.createSecret(descriptor) instead */ static _create(dockerHostArg: DockerHost, secretDescriptorArg: ISecretCreationDescriptor): Promise; ID: string; Spec: ISecretSpec; Version: { Index: number; }; constructor(dockerHostArg: DockerHost); /** * Refreshes this secret through direct ID inspection. * @throws If Docker no longer has the secret or inspection fails. */ refresh(): Promise; /** * Replaces the complete label map, preserves the inspected Spec, and refreshes. * @param replacementLabelsArg The complete replacement label map. */ updateLabels(replacementLabelsArg: TLabels): Promise; /** * Removes this secret. Docker must respond with status 204. */ remove(): Promise; /** * Returns the version label stored in the secret Spec. */ getVersion(): Promise; }