feat(appstore): add service volumes and published ports
This commit is contained in:
@@ -16,7 +16,8 @@ export interface IAppVersionConfig {
|
||||
image: string;
|
||||
port: number;
|
||||
envVars?: Array<{ key: string; value: string; description: string; required?: boolean }>;
|
||||
volumes?: string[];
|
||||
volumes?: Array<string | data.IServiceVolume>;
|
||||
publishedPorts?: data.IServicePublishedPort[];
|
||||
platformRequirements?: {
|
||||
mongodb?: boolean;
|
||||
s3?: boolean;
|
||||
@@ -27,6 +28,17 @@ export interface IAppVersionConfig {
|
||||
minOneboxVersion?: string;
|
||||
}
|
||||
|
||||
export interface IAppInstallOptions {
|
||||
appId: string;
|
||||
version?: string;
|
||||
serviceName: string;
|
||||
domain?: string;
|
||||
port?: number;
|
||||
publishedPorts?: data.IServicePublishedPort[];
|
||||
envVars?: Record<string, string>;
|
||||
autoDNS?: boolean;
|
||||
}
|
||||
|
||||
export interface IAppMeta {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -76,6 +88,20 @@ export interface IReq_GetAppConfig extends plugins.typedrequestInterfaces.implem
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_InstallAppTemplate extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_InstallAppTemplate
|
||||
> {
|
||||
method: 'installAppTemplate';
|
||||
request: {
|
||||
identity: data.IIdentity;
|
||||
install: IAppInstallOptions;
|
||||
};
|
||||
response: {
|
||||
service: data.IService;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_GetUpgradeableServices extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_GetUpgradeableServices
|
||||
|
||||
Reference in New Issue
Block a user