@cloudbase/manager-node 4.9.0 → 4.10.0
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/lib/cloudrun/index.js
CHANGED
|
@@ -401,6 +401,13 @@ class CloudRunService {
|
|
|
401
401
|
Offset: 0,
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
+
async getProcessLog(params) {
|
|
405
|
+
const envConfig = this.environment.lazyEnvironmentConfig;
|
|
406
|
+
return this.tcbrService.request('DescribeCloudRunProcessLog', {
|
|
407
|
+
EnvId: envConfig.EnvId,
|
|
408
|
+
RunId: params.RunId,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
404
411
|
}
|
|
405
412
|
exports.CloudRunService = CloudRunService;
|
|
406
413
|
__decorate([
|
|
@@ -436,6 +443,9 @@ __decorate([
|
|
|
436
443
|
__decorate([
|
|
437
444
|
(0, utils_1.preLazy)()
|
|
438
445
|
], CloudRunService.prototype, "getBuildLog", null);
|
|
446
|
+
__decorate([
|
|
447
|
+
(0, utils_1.preLazy)()
|
|
448
|
+
], CloudRunService.prototype, "getProcessLog", null);
|
|
439
449
|
async function codeToZip(cwd, options) {
|
|
440
450
|
const archive = (0, archiver_1.default)('zip', {
|
|
441
451
|
zlib: { level: 1 } // 保持与之前相同的压缩级别
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '../environment';
|
|
2
2
|
import { IResponseInfo } from '../interfaces';
|
|
3
|
-
import { CloudrunServerType, ICloudrunDetailResponse, ICloudrunListResponse, ICloudrunServerBaseConfig, ICloudrunServerBaseInfo, IBuildLogResponse, IDiffConfigItem, ITemplate, ReleaseTypeEnum, IDescribeCloudRunDeployRecordResponse } from './type';
|
|
3
|
+
import { CloudrunServerType, ICloudrunDetailResponse, ICloudrunListResponse, ICloudrunServerBaseConfig, ICloudrunServerBaseInfo, IBuildLogResponse, IProcessLogResponse, IDiffConfigItem, ITemplate, ReleaseTypeEnum, IDescribeCloudRunDeployRecordResponse } from './type';
|
|
4
4
|
/**
|
|
5
5
|
* 云托管服务管理类
|
|
6
6
|
* 提供云托管服务的初始化、下载、列表查询和删除等功能
|
|
@@ -147,6 +147,9 @@ export declare class CloudRunService {
|
|
|
147
147
|
serverName: string;
|
|
148
148
|
buildId?: number;
|
|
149
149
|
}): Promise<IBuildLogResponse>;
|
|
150
|
+
getProcessLog(params: {
|
|
151
|
+
RunId: string;
|
|
152
|
+
}): Promise<IProcessLogResponse>;
|
|
150
153
|
}
|
|
151
154
|
export declare function codeToZip(cwd: string, options?: {
|
|
152
155
|
installDependency?: boolean;
|
package/types/cloudrun/type.d.ts
CHANGED
|
@@ -460,3 +460,12 @@ export interface IBuildLogResponse {
|
|
|
460
460
|
Log: IBuildLog;
|
|
461
461
|
RequestId: string;
|
|
462
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* DescribeCloudRunProcessLog 响应
|
|
465
|
+
*/
|
|
466
|
+
export interface IProcessLogResponse {
|
|
467
|
+
/** 日志内容数组 */
|
|
468
|
+
Logs: string[];
|
|
469
|
+
/** 请求ID */
|
|
470
|
+
RequestId: string;
|
|
471
|
+
}
|