josal/entities/deployment.d.ts

24 lines
459 B
TypeScript

import type { Compose } from "./compose.d.ts"
import type { Unit } from "./unit.d.ts"
type Spec = string | Compose | Simple
type Simple = {
container: string
cpu?: Unit
ram?: Unit
name?: string
envs?: string[]
volumes?: string[]
}
export type Deployment = {
kind: "compose" | "simple" | "deployment"
spec: Spec
promocode?: string
}
export type DeploymentResponse = Deployment & {
uuid: string
payLink: string
}