BREAKING CHANGE(DockerHost): Refactor public API to DockerHost facade; introduce DockerResource base; make resource static methods internal; support flexible descriptors and stream compatibility
This commit is contained in:
@@ -5,13 +5,20 @@ import { DockerNetwork } from '../classes.network.js';
|
||||
import { DockerSecret } from '../classes.secret.js';
|
||||
import { DockerImage } from '../classes.image.js';
|
||||
|
||||
/**
|
||||
* Service creation descriptor supporting both string references and class instances.
|
||||
* Strings will be resolved to resources internally.
|
||||
*/
|
||||
export interface IServiceCreationDescriptor {
|
||||
name: string;
|
||||
image: DockerImage;
|
||||
/** Image tag (string) or DockerImage instance */
|
||||
image: string | DockerImage;
|
||||
labels: interfaces.TLabels;
|
||||
networks: DockerNetwork[];
|
||||
/** Network names (strings) or DockerNetwork instances */
|
||||
networks: (string | DockerNetwork)[];
|
||||
networkAlias: string;
|
||||
secrets: DockerSecret[];
|
||||
/** Secret names (strings) or DockerSecret instances */
|
||||
secrets: (string | DockerSecret)[];
|
||||
ports: string[];
|
||||
accessHostDockerSock?: boolean;
|
||||
resources?: {
|
||||
|
||||
Reference in New Issue
Block a user