@wocker/ws 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ws.js +1 -1
- package/lib/App.d.ts +1 -6
- package/lib/App.js +1 -27
- package/lib/AppModule.d.ts +6 -0
- package/lib/AppModule.js +97 -0
- package/lib/controllers/CompletionController.d.ts +6 -0
- package/lib/controllers/CompletionController.js +32 -0
- package/lib/controllers/ImageController.d.ts +5 -8
- package/lib/controllers/ImageController.js +27 -12
- package/lib/controllers/PluginController.d.ts +9 -13
- package/lib/controllers/PluginController.js +56 -18
- package/lib/controllers/PresetController.d.ts +9 -15
- package/lib/controllers/PresetController.js +41 -22
- package/lib/controllers/ProjectController.d.ts +27 -69
- package/lib/controllers/ProjectController.js +336 -261
- package/lib/controllers/ProxyController.d.ts +15 -25
- package/lib/controllers/ProxyController.js +142 -96
- package/lib/controllers/index.d.ts +1 -0
- package/lib/controllers/index.js +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -11
- package/lib/main.d.ts +3 -0
- package/lib/main.js +11 -0
- package/lib/makes/Logger.d.ts +2 -2
- package/lib/makes/Logger.js +19 -8
- package/lib/makes/Preset.d.ts +3 -4
- package/lib/makes/Preset.js +19 -8
- package/lib/makes/index.d.ts +0 -6
- package/lib/makes/index.js +0 -6
- package/lib/plugins/ElasticSearchPlugin.d.ts +5 -6
- package/lib/plugins/ElasticSearchPlugin.js +19 -8
- package/lib/plugins/LocaltunnelPlugin.d.ts +8 -8
- package/lib/plugins/LocaltunnelPlugin.js +25 -10
- package/lib/plugins/MaildevPlugin.d.ts +5 -6
- package/lib/plugins/MaildevPlugin.js +21 -8
- package/lib/plugins/MongodbPlugin.d.ts +5 -5
- package/lib/plugins/MongodbPlugin.js +26 -11
- package/lib/plugins/NgrokPlugin.d.ts +7 -6
- package/lib/plugins/NgrokPlugin.js +32 -17
- package/lib/plugins/PageKitePlugin.d.ts +10 -8
- package/lib/plugins/PageKitePlugin.js +36 -20
- package/lib/plugins/ProxmoxPlugin.d.ts +8 -5
- package/lib/plugins/ProxmoxPlugin.js +25 -9
- package/lib/plugins/RedisPlugin.d.ts +4 -6
- package/lib/plugins/RedisPlugin.js +19 -8
- package/lib/plugins/index.d.ts +0 -2
- package/lib/plugins/index.js +0 -2
- package/lib/services/AppConfigService.d.ts +3 -3
- package/lib/services/AppConfigService.js +16 -2
- package/lib/services/AppEventsService.d.ts +1 -2
- package/lib/services/AppEventsService.js +11 -2
- package/lib/services/DockerService.d.ts +9 -39
- package/lib/services/DockerService.js +122 -4
- package/lib/services/LogService.d.ts +3 -5
- package/lib/services/LogService.js +19 -4
- package/lib/services/PluginService.d.ts +4 -9
- package/lib/services/PluginService.js +18 -8
- package/lib/services/PresetService.d.ts +5 -5
- package/lib/services/PresetService.js +11 -2
- package/lib/services/ProjectService.d.ts +9 -6
- package/lib/services/ProjectService.js +62 -31
- package/lib/utils/get-config.d.ts +2 -2
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/set-config.d.ts +2 -2
- package/package.json +4 -4
- package/presets/node/config.json +1 -1
- package/presets/php-fpm/Dockerfile +1 -1
- package/lib/decorators/Inject.d.ts +0 -1
- package/lib/decorators/Inject.js +0 -8
- package/lib/decorators/Injectable.d.ts +0 -4
- package/lib/decorators/Injectable.js +0 -17
- package/lib/decorators/index.d.ts +0 -1
- package/lib/decorators/index.js +0 -17
- package/lib/makes/Controller.d.ts +0 -5
- package/lib/makes/Controller.js +0 -8
- package/lib/makes/DI.d.ts +0 -7
- package/lib/makes/DI.js +0 -27
- package/lib/makes/Docker.d.ts +0 -58
- package/lib/makes/Docker.js +0 -320
- package/lib/makes/Plugin.d.ts +0 -13
- package/lib/makes/Plugin.js +0 -61
- package/lib/makes/Project.d.ts +0 -45
- package/lib/makes/Project.js +0 -127
- package/lib/makes/Repository.d.ts +0 -11
- package/lib/makes/Repository.js +0 -22
- package/lib/plugins/PostgresPlugin.d.ts +0 -16
- package/lib/plugins/PostgresPlugin.js +0 -121
- package/lib/types/Config.d.ts +0 -12
- package/lib/types/Config.js +0 -2
- package/lib/types/EnvConfig.d.ts +0 -3
- package/lib/types/EnvConfig.js +0 -2
- package/lib/types/index.d.ts +0 -2
- package/lib/types/index.js +0 -18
- package/lib/utils/demuxOutput.d.ts +0 -2
- package/lib/utils/demuxOutput.js +0 -19
|
@@ -1,72 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type ListOptions = {
|
|
10
|
-
all?: boolean;
|
|
11
|
-
};
|
|
12
|
-
type StartOptions = {
|
|
13
|
-
name?: string;
|
|
14
|
-
rebuild?: boolean;
|
|
15
|
-
detach?: boolean;
|
|
16
|
-
};
|
|
17
|
-
type StopOptions = {
|
|
18
|
-
name?: string;
|
|
19
|
-
};
|
|
20
|
-
type AttachOptions = {
|
|
21
|
-
name?: string;
|
|
22
|
-
};
|
|
23
|
-
type ConfigOptions = {
|
|
24
|
-
name?: string;
|
|
25
|
-
global?: boolean;
|
|
26
|
-
};
|
|
27
|
-
type BuildArgsOptions = {
|
|
28
|
-
name?: string;
|
|
29
|
-
};
|
|
30
|
-
type VolumeOptions = {
|
|
31
|
-
name?: string;
|
|
32
|
-
};
|
|
33
|
-
type LogsOptions = {
|
|
34
|
-
name?: string;
|
|
35
|
-
global?: boolean;
|
|
36
|
-
detach?: boolean;
|
|
37
|
-
follow?: boolean;
|
|
38
|
-
};
|
|
39
|
-
type ExecOptions = {
|
|
40
|
-
name?: string;
|
|
41
|
-
};
|
|
42
|
-
declare class ProjectController extends Controller {
|
|
43
|
-
protected di: DI;
|
|
44
|
-
protected appConfigService: AppConfigService;
|
|
45
|
-
protected appEventsService: AppEventsService;
|
|
46
|
-
protected projectService: ProjectService;
|
|
47
|
-
protected dockerService: DockerService;
|
|
48
|
-
constructor(di: DI);
|
|
49
|
-
install(cli: Cli): void;
|
|
1
|
+
import { AppConfigService, AppEventsService, ProjectService, DockerService, LogService } from "../services";
|
|
2
|
+
export declare class ProjectController {
|
|
3
|
+
protected readonly appConfigService: AppConfigService;
|
|
4
|
+
protected readonly appEventsService: AppEventsService;
|
|
5
|
+
protected readonly projectService: ProjectService;
|
|
6
|
+
protected readonly dockerService: DockerService;
|
|
7
|
+
protected readonly logService: LogService;
|
|
8
|
+
constructor(appConfigService: AppConfigService, appEventsService: AppEventsService, projectService: ProjectService, dockerService: DockerService, logService: LogService);
|
|
50
9
|
protected getProjectNames(): Promise<string[]>;
|
|
51
10
|
protected getScripts(): Promise<string[]>;
|
|
52
|
-
init(
|
|
53
|
-
projectList(
|
|
54
|
-
start(
|
|
55
|
-
stop(
|
|
56
|
-
run(script: string): Promise<void>;
|
|
57
|
-
attach(
|
|
58
|
-
configList(
|
|
59
|
-
configGet(
|
|
60
|
-
configSet(
|
|
61
|
-
configUnset(
|
|
62
|
-
buildArgsList(
|
|
63
|
-
buildArgsGet(
|
|
64
|
-
buildArgsSet(
|
|
65
|
-
buildArgsUnset(
|
|
66
|
-
volumeList(
|
|
67
|
-
volumeMount(
|
|
68
|
-
volumeUnmount(
|
|
69
|
-
logs(
|
|
70
|
-
exec(
|
|
11
|
+
init(name: string, type: string, preset: string): Promise<void>;
|
|
12
|
+
projectList(all: boolean): Promise<string>;
|
|
13
|
+
start(name?: string, detach?: boolean, rebuild?: boolean, restart?: boolean): Promise<void>;
|
|
14
|
+
stop(name: string): Promise<void>;
|
|
15
|
+
run(name: string, script: string): Promise<void>;
|
|
16
|
+
attach(name?: string): Promise<void>;
|
|
17
|
+
configList(name?: string, global?: boolean): Promise<string>;
|
|
18
|
+
configGet(name: string, global: boolean, key: string): Promise<string>;
|
|
19
|
+
configSet(name: string, global: boolean, configs: string[]): Promise<void>;
|
|
20
|
+
configUnset(name: string, global: boolean, configs: string[]): Promise<void>;
|
|
21
|
+
buildArgsList(name?: string): Promise<string>;
|
|
22
|
+
buildArgsGet(name: string, args: string[]): Promise<string>;
|
|
23
|
+
buildArgsSet(name: string, args: string[]): Promise<void>;
|
|
24
|
+
buildArgsUnset(name: string, args: string[]): Promise<void>;
|
|
25
|
+
volumeList(name?: string): Promise<string>;
|
|
26
|
+
volumeMount(name: string, volumes: string[]): Promise<void>;
|
|
27
|
+
volumeUnmount(name: string, volumes: string[]): Promise<void>;
|
|
28
|
+
logs(name: string, global: boolean, detach: boolean, follow: boolean): Promise<void>;
|
|
29
|
+
exec(name?: string, command?: string[]): Promise<void>;
|
|
71
30
|
}
|
|
72
|
-
export { ProjectController };
|