k8ts
Version:
Powerful framework for building Kubernetes manifests in TypeScript.
24 lines • 923 B
TypeScript
import { Resource_Top, type DataSource } from "@k8ts/instruments";
export interface Secret_Data_Entry {
as: "base64" | "plain";
value: DataSource;
}
export type Secret_Types = `kubernetes.io/${"service-account-token" | "dockercfg" | "dockerconfigjson" | "basic-auth" | "ssh-auth" | "tls"}` | "bootstrap.kubernetes.io/token";
export interface Secret_Props<Keys extends string = string> {
$type?: Secret_Types;
$data?: Record<Keys, DataSource>;
}
export declare class Secret<Name extends string = string, Keys extends string = string> extends Resource_Top<Name, Secret_Props<Keys>> {
get keys(): Keys[];
get kind(): import("@k8ts/instruments").Kind.Kind<"", "v1", "Secret">;
protected body(): Promise<{
type: string;
data: {
[k: string]: string;
};
stringData: {
[k: string]: string;
};
}>;
}
//# sourceMappingURL=secret.d.ts.map