caprover-lib
Version:
A library to communicate with CapRover instances
59 lines • 1.38 kB
TypeScript
export interface IAppEnvVar {
key: string;
value: string;
}
interface IAppVolume {
containerPath: string;
volumeName?: string;
hostPath?: string;
}
interface IAppPort {
containerPort: number;
hostPort: number;
protocol?: 'udp' | 'tcp';
publishMode?: 'ingress' | 'host';
}
export interface RepoInfo {
repo: string;
branch: string;
user: string;
password: string;
}
export interface IAppVersion {
version: number;
deployedImageName?: string;
timeStamp: string;
gitHash: string | undefined;
}
interface IAppCustomDomain {
publicDomain: string;
hasSsl: boolean;
}
interface IAppDefinitionBase {
deployedVersion: number;
notExposeAsWebApp: boolean;
hasPersistentData: boolean;
hasDefaultSubDomainSsl: boolean;
forceSsl: boolean;
nodeId?: string;
instanceCount: number;
preDeployFunction?: string;
customNginxConfig?: string;
networks: string[];
customDomain: IAppCustomDomain[];
ports: IAppPort[];
volumes: IAppVolume[];
envVars: IAppEnvVar[];
versions: IAppVersion[];
}
export interface IAppDef extends IAppDefinitionBase {
appPushWebhook?: {
repoInfo: RepoInfo;
tokenVersion?: string;
pushWebhookToken?: string;
};
appName?: string;
isAppBuilding?: boolean;
}
export {};
//# sourceMappingURL=AppDef.d.ts.map