UNPKG

caprover-api

Version:
30 lines (29 loc) 751 B
import { IAppDef } from './AppDefinition'; export type CaptainError = { captainErrorType: number; apiMessage: string; }; export type AnyError = any; export type PreDeployFunction = (appDef: IAppDef | undefined, updatedData: any) => Promise<void>; export interface IDockerApiPort { Protocol: string; TargetPort: number; PublishedPort: number; PublishMode?: 'ingress' | 'host'; } export interface IDockerContainerResource { Limits?: { NanoCPUs?: number; MemoryBytes?: number; }; Reservation?: { NanoCPUs?: number; MemoryBytes?: number; }; } export interface ITemplate { templateName: string; dockerHubImageName: string; tagSuffix: string; postFromLines?: string; }