josal/entities/deployment.d.ts

25 lines
459 B
TypeScript
Raw 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"
2024-09-05 21:02:35 +03:00
spec: Spec
promocode?: string
}
export type DeploymentResponse = Deployment & {
uuid: string
payLink: string
}