caprover-api
Version:
API client for CapRover
33 lines (26 loc) • 709 B
text/typescript
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
}