UNPKG

k8ts

Version:

Powerful framework for building Kubernetes manifests in TypeScript.

32 lines 1.54 kB
import type { CDK } from "../../../_imports"; import { Volume } from "../volume"; import type { Device } from "../volume/devices"; export type Mount = Mount.ContainerVolumeMount | Mount.ContainerDeviceMount; export declare namespace Mount { type Path_Rooted = `/${string}`; export type Path = `${"" | "." | ".."}${Path_Rooted}`; export interface Props { readOnly?: boolean; subPath?: string; volume: Volume; } export class ContainerVolumeMount { readonly props: Props; readonly kind: import("@k8ts/instruments").Kind.SubKind<"VolumeMount", import("@k8ts/instruments").Kind.SubKind<"Container", import("@k8ts/instruments").Kind.Kind<"Pod", import("@k8ts/instruments").Kind.Version<"v1", import("@k8ts/instruments").Kind.Group<"">>>>>; constructor(props: Props); get volume(): Volume; submanifest(mountPath: string): CDK.VolumeMount; } export interface DeviceMountProps { device: Device; } export class ContainerDeviceMount { readonly props: DeviceMountProps; kind: import("@k8ts/instruments").Kind.SubKind<"DeviceMount", import("@k8ts/instruments").Kind.SubKind<"Container", import("@k8ts/instruments").Kind.Kind<"Pod", import("@k8ts/instruments").Kind.Version<"v1", import("@k8ts/instruments").Kind.Group<"">>>>>; get volume(): Device.PodDevice; constructor(props: DeviceMountProps); submanifest(devicePath: string): CDK.VolumeDevice; } export {}; } //# sourceMappingURL=mounts.d.ts.map