import type { ContainerConfig, ContainerStatus, DockerContainerInspect } from '../types'; import DockerManager from './DockerManager'; export default class DockerManagerOfOwnContainers extends DockerManager { #private; readonly forceRestart: boolean; constructor(options: { dockerApi?: { host?: string; port?: number | string; protocol?: 'http' | 'https'; ca?: string; cert?: string; key?: string; }; adapterDir?: string; logger: ioBroker.Logger; namespace: `${string}.${number}`; forceRestart?: boolean; }, containers?: ContainerConfig[]); /** * Convert information from `inspect` to docker configuration to start it * * @param inspect Inspect information */ static mapInspectToConfig(inspect: DockerContainerInspect): ContainerConfig; init(): Promise; getDefaultContainerName(): string; /** Modify the configuration of own container by name */ ownContainerModify(containerName: string | undefined, changes: Partial): Promise; /** Add new own container */ ownContainerAdd(container: ContainerConfig): Promise; /** Remove own container by name */ ownContainerRemove(containerName?: string): Promise; /** Wait till all own containers are checked */ ownContainerCheckedAll(): Promise; /** Read own container stats */ getOwnContainerStats(): { [name: string]: ContainerStatus; }; /** Stop own containers if necessary */ destroy(): Promise; }