josal/entities/deployment.d.ts

25 lines
426 B
TypeScript
Raw Permalink Normal View History

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[]
}
2024-09-05 21:02:35 +03:00
export type Deployment = {
kind: "compose" | "simple" | "deployment"
spec: Spec
promocode?: string
2024-09-05 21:02:35 +03:00
}
export type DeploymentResponse = Deployment & {
uuid: string
payLink: string
}